/* Practice Exam Styles */

.mini-list-item .item-link, .mini-list-item .mini-image img {
    width: 40px;
    min-width: 40px;
    display: block;
    min-height: 40px;
    height: auto;
}

.service-wrap .box {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-wrap .box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.service-wrap .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-wrap .service-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.badge {
    font-size: 0.7rem;
    margin: 0 3px;
    padding: 0.35em 0.65em;
    border-radius: 8px;
}

.sidebar-widget {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mini-list-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.mini-list-item:last-child {
    border-bottom: none;
}

.mini-list-item .item-title {
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.mini-list-item .item-title:hover {
    color: #007bff;
}

.alert-info {
    border-radius: 8px;
    border: 1px solid #b3d7ff;
    background: #e7f3ff;
}

.btn-sm {
    font-size: 0.8rem;
    margin: 0 3px;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-sm:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-primary {
    background-color: #007bff !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Exam details styling */
.exam-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.75rem 0;
}

.exam-details .row > div {
    padding: 0.25rem;
}

.exam-details small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-details strong {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Animation cho các card */
.service-wrap {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.service-wrap:nth-child(1) { animation-delay: 0.1s; }
.service-wrap:nth-child(2) { animation-delay: 0.2s; }
.service-wrap:nth-child(3) { animation-delay: 0.3s; }
.service-wrap:nth-child(4) { animation-delay: 0.4s; }
.service-wrap:nth-child(5) { animation-delay: 0.5s; }
.service-wrap:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Icon styling */
.service-icon img {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.service-wrap:hover .service-icon img {
    transform: scale(1.1);
}



/* Count badges in sidebar */
.count {
  
    border-radius: 12px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .service-wrap .box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .search-input {
        width: 150px;
    }
    
    .exam-details .row > div {
        margin-bottom: 0.5rem;
    }
    
    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        margin: 0.1rem;
    }
}

@media (max-width: 576px) {
    .service-wrap .service-content h3 {
        font-size: 1rem;
    }
    
    .exam-details {
        padding: 0.5rem;
    }
    
    .badge {
        font-size: 0.65rem;
        margin: 0.1rem;
    }
    
    .search-input {
        width: 120px;
    }
}

/* Hover effect cho badges */
.badge:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Loading state cho buttons */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scroll cho sidebar links */
html {
    scroll-behavior: smooth;
}

/* Focus states cho accessibility */
.btn:focus,
.search-input:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .sidebar, .toolbar, .pagination {
        display: none !important;
    }
    
    .main-col {
        width: 100% !important;
    }
    
    .service-wrap .box {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
} 