/* TTS Frontend Shared Styles */

/* Background Color Classes */
.main-page-background {
    background-color: #c5dafb;
}

.content-container-background {
    background-color: #c5dafb;
}

.search-section-background {
    background-color: #e4edfb;
}

.grid-area-background {
    background-color: #e4edfb;
}

.pagination-background {
    background-color: #e4edfb;
}

.author-card-background {
    background-color: #f1f2f2;
}

.author-photo-border {
    border: 1px solid #e87b35;
}

.source-card-background {
    background-color: #f1f2f2;
}

.term-card-background {
    background-color: #f1f2f2;
}

.loading-state-background {
    background-color: #e4edfb;
}

/* Source Item Styles */
.source-item {
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.source-item:hover {
    border-color: #d1d5db;
    transform: translateX(2px);
}



.empty-state-background {
    background-color: #c5dafb;
}

/* Body and Main Background */
body {
    background: #c5dafb;
    min-height: 100vh;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Main Content Cards */
.main-content-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

/* Author Cards */
.author-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

/* 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;
    color: rgb(31 41 55); /* text-gray-800 */
}

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

/* Header and Navigation Backgrounds */
.nav-background {
    background:#c5dafb;
}

.subnav-background {
    background:#c5dafb;
    /* Removed border-bottom to eliminate the blue line */
}

/* 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;
}

.btn-primary:hover {
    background-color: rgb(29 78 216); /* bg-blue-700 */
}

.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 */
}

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

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

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

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

/* Loading and Empty States */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
    border-radius: 9999px;
    height: 2rem;
    width: 2rem;
    border-bottom: 2px solid #c5dafb; /* content-container-background color */
}

.empty-state-icon {
    margin-left: auto;
    margin-right: auto;
    height: 3rem;
    width: 3rem;
    color: rgb(156 163 175); /* text-gray-400 */
}

/* 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); /* bg-gray-50 */
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgb(229 231 235); /* border-gray-200 */
}

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

.pagination-button:hover {
    background-color: rgb(249 250 251); /* hover:bg-gray-50 */
}

.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); /* border-gray-200 */
    background-color: #c5dafb;
}

/* Card Headers */
.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgb(229 231 235); /* border-gray-200 */
    background-color: #c5dafb;
}

/* 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);
}
