/* Header CSS Include */
/* Navigation Tabs */
.nav-tab {
    position: relative;
    background-color: rgb(249 250 251); /* bg-gray-50 */
    color: rgb(75 85 99); /* text-gray-600 */
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem; /* rounded-b-lg */
    border: 1px solid rgb(251 146 60); /* border-orange-300 */
    border-top: 0; /* border-t-0 */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
    margin-top: -1px; /* -mt-px */
    transition: all 0.2s;
}

.nav-tab:hover {
    background-color: white !important;
    color: rgb(37 99 235) !important; /* text-blue-600 */
    border-color: rgb(249 115 22) !important; /* border-orange-500 */
    transform: translateY(-1px);
}

.nav-tab.active {
    background-color: white;
    color: rgb(37 99 235); /* text-blue-600 */
}

/* Header and Navigation Backgrounds */
.header-background {
    background-color: #c5dafb; /* Reverted back to original color */
}

.subnav-background {
    background-color: #c5dafb;
}

/* Custom Button Styles */
.btn-primary {
    background-color: rgb(37 99 235); /* bg-blue-600 */
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: rgb(29 78 216); /* bg-blue-700 */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Header Button Styles */
.header-btn {
    background-color: rgb(59 130 246); /* bg-blue-500 */
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-size: 0.875rem;
}

.header-btn:hover {
    background-color: rgb(37 99 235); /* bg-blue-600 */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.header-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: rgb(75 85 99); /* bg-gray-600 */
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgb(55 65 81); /* bg-gray-700 */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(75, 85, 99, 0.3);
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.375rem;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(59 130 246);
    border-color: transparent;
}

.form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.375rem;
    outline: none;
    transition: all 0.2s;
}

.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(59 130 246);
    border-color: transparent;
}

/* Loading and Empty States */
.loading-spinner {
    animation: spin 1s linear infinite;
    border-radius: 9999px;
    height: 2rem;
    width: 2rem;
    border-bottom: 2px solid rgb(37 99 235);
}

.empty-state-icon {
    margin: 0 auto;
    height: 3rem;
    width: 3rem;
    color: rgb(156 163 175);
}

/* Responsive Grid */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .responsive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Pagination */
.pagination-container {
    background-color: rgb(249 250 251);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgb(229 231 235);
}

.pagination-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(107 114 128);
    background-color: white;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.pagination-button:hover {
    background-color: rgb(249 250 251);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: rgb(156 163 175);
}

.pagination-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

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

/* Search and Filter Bar */
.search-filter-bar {
    padding: 1.5rem;
    border-bottom: 1px solid rgb(229 231 235);
    background: linear-gradient(to right, rgb(249 250 251), white);
}

/* Card Headers */
.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgb(229 231 235);
    background: linear-gradient(to right, rgb(249 250 251), white);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
