/* Components CSS - Specific component styles */

/* Card Styles */
.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.1);
}

/* Button Styles */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn i {
    margin-right: 0.5rem;
}

/* Restringe estilo de botão primário apenas em auth */
.auth-form .btn-primary,
.auth-header + .auth-form .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-form .btn-primary:hover,
.auth-header + .auth-form .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}


.btn-outline-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

/* Layout Styles */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/*  Modern Navigation  */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #164B24 100%) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
    position: relative;
    z-index: 1030;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar container */
.navbar > .container {
    padding: 0 1.5rem;
    max-width: 1440px;
}

/* Navbar brand/logo */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    padding: 0.5rem 0;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand img {
    height: 36px;
    width: auto;
    transition: transform 0.3s ease;
}

/* Navigation links */
.navbar-nav {
    gap: 0.25rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.25rem;
    position: relative;
    font-size: 0.95rem;
}

.nav-link i {
    font-size: 1.1em;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.nav-link:hover, 
.nav-link:focus, 
.nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-link:hover i {
    transform: translateX(2px);
}

/* Active link indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* Dropdown menu */
.dropdown-menu {
    border: none;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform-origin: top center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    color: var(--gray-800) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.dropdown-item i {
    margin-right: 0.75rem;
    color: var(--gray-500);
    width: 18px;
    text-align: center;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background: var(--primary-50) !important;
    color: var(--primary-blue) !important;
    transform: translateX(3px);
}

.dropdown-divider {
    border-color: var(--gray-200);
    margin: 0.5rem 0;
}

/* Pro Generator button - Modern Style */
.nav-link-pro {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #1a365d !important;
    border-radius: 50px;
    padding: 0.6rem 1.25rem !important;
    margin-left: 0.5rem;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #1a1a2e !important;
}

.nav-link-pro:hover::before {
    opacity: 1;
}

.nav-link-pro:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.nav-link-pro svg {
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.nav-link-pro:hover svg {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}

/* Navbar toggler for mobile */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: white !important;
    transition: all 0.2s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em;
    height: 1.5em;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem;
        background: rgba(14, 32, 63, 0.98);
        border-radius: 0.75rem;
        margin-top: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }

    .nav-link-pro {
        margin: 0.5rem 0 0;
        width: 100%;
        justify-content: center;
    }
}

/* Animation for nav items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav > * {
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
}

.navbar-nav > *:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav > *:nth-child(2) { animation-delay: 0.15s; }
.navbar-nav > *:nth-child(3) { animation-delay: 0.2s; }
.navbar-nav > *:nth-child(4) { animation-delay: 0.25s; }
.navbar-nav > *:nth-child(5) { animation-delay: 0.3s; }
.navbar-nav > *:nth-child(6) { animation-delay: 0.35s; }

/* Navbar scroll effect */
.navbar-scrolled {
    background: #1C2C1D !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.3rem 0;
}

/* Dropdown Menu */
.navbar .dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: white;
}

.navbar .dropdown-item {
    padding: 0.5rem 1.25rem;
    color: var(--gray-800);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--primary-50);
    color: var(--primary);
}

.navbar .dropdown-item i {
    width: 18px;
    margin-right: 0.75rem;
    color: var(--gray-600);
    text-align: center;
}

.navbar .dropdown-divider {
    border-color: var(--gray-200);
    margin: 0.5rem 0;
}

/* Authentication Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
    background-color: var(--gray-50);
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.auth-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
}

.auth-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.auth-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.auth-form {
    padding: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: var(--primary-500);
    border: none;
    transition: all 0.2s;
}

.auth-form .btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.auth-footer a {
    color: var(--primary-600);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Profile Styles */
.profile-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.profile-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
}

.profile-avatar {
    position: relative;
    margin-right: 1.5rem;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.profile-img-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.profile-info h2 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
}

.profile-details {
    padding: 2rem;
}

/* Form overrides */
.form-control:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.help-block {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .auth-card {
        margin: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin: 0 0 1rem 0;
    }
}


/* Badge Component */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-secondary {
    background-color: var(--gray-100);
    color: var(--gray-800);
}

.badge-purple {
    background-color: var(--purple-100);
    color: var(--purple-800);
}

/* Card Component Enhancements */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: none;
    overflow: hidden;
}

.card-body {
    padding: var(--spacing-6);
}

/* Custom Select Enhancements */
.custom-select option {
    padding: var(--spacing-2);
    background: white;
    color: var(--gray-900);
}

.custom-select option:hover {
    background-color: var(--gray-50);
}

.custom-select option:disabled {
    color: var(--gray-400);
    background-color: var(--gray-100);
}

/* Icon Components */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    vertical-align: middle;
}

.icon-sm {
    width: 0.875rem;
    height: 0.875rem;
}

.icon-md {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-xl {
    width: 1.5rem;
    height: 1.5rem;
}

/* Loading Spinner Component */
.spinner-sm {
    width: 16px;
    height: 16px;
    border: 1px solid var(--gray-200);
    border-top: 1px solid currentColor;
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

.spinner-md {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid currentColor;
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid white;
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

/* Tooltip Component */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--gray-900);
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    padding: var(--spacing-2);
    font-size: 0.75rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--gray-900) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Modal Component */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: var(--spacing-6) var(--spacing-6) 0;
    border-bottom: 1px solid var(--gray-200);
}

.modal-body {
    padding: var(--spacing-6);
}

.modal-footer {
    padding: 0 var(--spacing-6) var(--spacing-6);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-3);
}

/* Dropdown Component */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Padrão para dropdown custom */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Compatibilidade com Bootstrap */
.dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}


.dropdown-item {
    display: block;
    width: 100%;
    padding: var(--spacing-2) var(--spacing-4);
    color: var(--gray-700);
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--gray-900);
}

.dropdown-item:first-child {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.dropdown-item:last-child {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* Progress Bar Component */
.progress {
    width: 100%;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-indigo) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* Accordion Component */
.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-2);
    overflow: hidden;
}

.accordion-header {
    background: var(--gray-50);
    padding: var(--spacing-4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background-color: var(--gray-100);
}

.accordion-title {
    font-weight: 500;
    margin: 0;
}

.accordion-icon {
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: var(--spacing-4);
    border-top: 1px solid var(--gray-200);
}

/* Tab Component */
.tabs {
    width: 100%;
}

.tab-list {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-4);
}

.tab-button {
    background: none;
    border: none;
    padding: var(--spacing-3) var(--spacing-4);
    cursor: pointer;
    color: var(--gray-600);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.tab-button:hover {
    color: var(--gray-900);
}

.tab-button.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Notification Component */
.notification {
    position: fixed;
    top: 80px; /* Aumenta a distância do topo para ficar abaixo da nav */
    right: var(--spacing-4);
    max-width: 400px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-4);
    z-index: 1050; /* Z-index MAIOR que o da navbar (1030) */
    transform: translateX(110%); /* Inicia um pouco mais fora da tela */
    transition: transform var(--transition-normal);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--green-600);
}

.notification-error {
    border-left: 4px solid #dc2626;
}

.notification-warning {
    border-left: 4px solid var(--amber-600);
}

.notification-info {
    border-left: 4px solid var(--primary-blue);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-2);
}

.notification-title {
    font-weight: 600;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--gray-600);
}

.notification-body {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Breadcrumb Component */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.breadcrumb-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--blue-800);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--gray-400);
}

/* Pagination Component */
.pagination {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    justify-content: center;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination-item:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.pagination-item.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.pagination-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search Component */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    padding-left: 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: var(--spacing-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

/* Avatar Component */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background-color: var(--gray-200);
    color: var(--gray-600);
    font-weight: 500;
    overflow: hidden;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.avatar-md {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.avatar-xl {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Switch Component */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
}

.switch-input:checked + .switch-slider {
    background-color: var(--primary-blue);
}

.switch-input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .notification {
        left: var(--spacing-4);
        right: var(--spacing-4);
        max-width: none;
    }
    
    .modal-content {
        margin: var(--spacing-4);
        max-width: none;
    }
    
    .dropdown-menu {
        left: auto;
        right: 0;
        min-width: 200px;
    }
    
    .pagination {
        gap: var(--spacing-1);
    }
    
    .pagination-item {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}
