@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global White Theme Override */
body, body.white-content {
    background-color: #f3f4f6 !important;
    font-family: 'Poppins', sans-serif !important;
    color: #1f2937 !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, p {
    font-family: 'Poppins', sans-serif !important;
    color: #111827 !important;
}

/* Sidebar Override */
.sidebar {
    background: #ffffff !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03) !important;
}
.sidebar .sidebar-wrapper {
    background: #ffffff !important;
}
.sidebar .logo .simple-text {
    color: #111827 !important;
    font-weight: 600;
}
.sidebar .nav li>a {
    color: #4b5563 !important;
    margin: 5px 15px;
    border-radius: 8px;
}
.sidebar .nav li.active>a, .sidebar .nav li:hover>a {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #2563eb !important;
}
.sidebar .nav li.active>a i, .sidebar .nav li:hover>a i, .sidebar .nav li>a i {
    color: inherit !important;
}

/* Navbar Override */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: none;
}
.navbar .navbar-brand {
    color: #111827 !important;
    font-weight: 600;
}
.navbar .navbar-toggler-bar {
    background: #111827 !important;
}

/* Cards Override */
.card, .dashboard-card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.dashboard-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}
.card-title, .card-text {
    color: #1f2937 !important;
}
.card-text {
    font-size: 14px;
    color: #6b7280 !important;
}

/* Buttons */
.btn-success {
    background-image: linear-gradient(to bottom right, #3b82f6, #2563eb) !important;
    background-color: #3b82f6 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3) !important;
    border-radius: 8px !important;
    font-weight: 600;
}
.btn-success:hover {
    background-image: linear-gradient(to bottom right, #2563eb, #1d4ed8) !important;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4) !important;
}
.btn-secondary {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    border: none !important;
    box-shadow: none !important;
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.badge-done {
    background-color: #d1fae5 !important;
    color: #059669 !important;
}
.badge-pending {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

/* Icons within cards */
.dashboard-card img {
    filter: none !important;
    opacity: 0.8;
}

/* Full Width Main Panel (Sidebar Removed) */
.main-panel {
    border-top: none !important;
    width: 100% !important;
    float: none !important;
}
.content {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* Override Test Page Elements */
.btn-primary {
    background-image: linear-gradient(to bottom right, #60a5fa, #3b82f6) !important;
    background-color: #3b82f6 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2) !important;
    border-radius: 8px !important;
}
.btn-primary:hover {
    background-image: linear-gradient(to bottom right, #3b82f6, #2563eb) !important;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3) !important;
}
.btn-primary:disabled {
    background-image: none !important;
    background-color: #d1d5db !important;
    box-shadow: none !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}
.card-user .author .block {
    display: none !important;
}
.card-user {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding-top: 30px !important;
}
.iconpage {
    margin: 4px;
    font-weight: bold;
    border-radius: 12px !important;
}
.subtest-card {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.2s;
    border-left: 5px solid #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.subtest-card:hover {
    transform: translateX(5px);
}
.pagination-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.pagination-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.pagination-wrapper .iconpage {
    flex-shrink: 0;
}
