/* ========================================
   CINELOG - CSS STYLESHEET
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4526e;
    --dark-bg: #141414;
    --light-bg: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-gold: #ffd700;
    --success-green: #2ecc71;
    --border-color: #333333;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(31, 31, 31, 0.95) 100%);
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(212, 82, 110, 0.3);
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(212, 82, 110, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   AUTHENTICATION CONTAINER
   ======================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 50%, #0f0f0f 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 82, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(212, 82, 110, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-form {
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

.auth-form h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #ff6b8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    background: var(--dark-bg);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: var(--dark-bg);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(212, 82, 110, 0.1), rgba(212, 82, 110, 0.05));
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.auth-form-content {
    display: none;
}

.auth-form-content.active {
    display: block;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--dark-bg), rgba(20, 20, 20, 0.95));
    border: 2px solid rgba(51, 51, 51, 0.8);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 20px rgba(212, 82, 110, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), var(--dark-bg));
    transform: translateY(-2px);
}

.form-group select {
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 400;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary, .btn-secondary, .btn-search, .btn-back {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #b8445d);
    color: white;
    width: 100%;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(212, 82, 110, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8445d, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 82, 110, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-color), #b8445d);
    color: white;
    padding: 1.2rem 2.5rem;
    margin-left: 1rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(212, 82, 110, 0.3);
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: linear-gradient(135deg, #b8445d, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 82, 110, 0.5);
}

.btn-back {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-bottom: 2rem;
}

.btn-back:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ========================================
   APP CONTAINER & PAGES
   ======================================== */

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.5), rgba(25, 25, 25, 0.3));
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========================================
   SEARCH SECTION (HOME PAGE)
   ======================================== */

.search-section {
    margin-bottom: 3rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--light-bg), rgba(31, 31, 31, 0.8));
    border: 2px solid rgba(51, 51, 51, 0.8);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(212, 82, 110, 0.4);
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.95), var(--light-bg));
    transform: translateY(-2px);
}

.search-results {
    margin-top: 2rem;
}

.search-results.loading::after {
    content: "Searching...";
    color: var(--text-secondary);
}

/* ========================================
   RECENT MOVIES SECTION
   ======================================== */

.recent-movies-section {
    margin-top: 3rem;
    position: relative;
}

.recent-movies-section h2 {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.recent-movies-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
    border-radius: 2px;
}

/* ========================================
   MOVIES GRID
   ======================================== */

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.movie-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(212, 82, 110, 0.3);
    border-color: var(--primary-color);
}

.movie-poster {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.movie-info {
    padding: 1rem;
}

.movie-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-year {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.movie-rating {
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ========================================
   MOVIE DETAIL PAGE
   ======================================== */

.movie-detail-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
    min-height: 70vh;
}

.movie-poster-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.movie-poster {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.movie-info-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.release-year {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.movie-overview {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.rating-section {
    margin-bottom: 2rem;
}

.rating-section label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.star:hover,
.star.active {
    color: var(--accent-gold);
    transform: scale(1.2);
}

.review-textarea {
    resize: vertical;
}

#ratingValue {
    color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   FILTER SECTION (MY LOG PAGE)
   ======================================== */

.filter-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, #252525 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 0.75rem 1rem;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-group select:hover {
    border-color: var(--primary-color);
}

.filter-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 82, 110, 0.1);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    margin-top: auto;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 82, 110, 0.3);
}

/* ========================================
   STATS PAGE
   ======================================== */

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, #252525 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(212, 82, 110, 0.2);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stats-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stat-section {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.stat-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--dark-bg);
    border-radius: 6px;
    font-size: 0.95rem;
}

.stat-item-label {
    color: var(--text-primary);
    flex: 1;
}

.stat-item-value {
    color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--light-bg);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

/* ========================================
   MOVIES GRID
   ======================================== */

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.movie-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(212, 82, 110, 0.3);
    border-color: var(--primary-color);
}

.movie-poster {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.movie-info {
    padding: 1rem;
}

.movie-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-year {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.movie-rating {
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Enhanced Movie Cards for My Log */
.movie-card.enhanced {
    position: relative;
}

.movie-card.enhanced .movie-info {
    padding: 0.75rem;
}

.favorite-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.delete-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(220, 38, 38, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    color: white;
}

.movie-card.enhanced:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.delete-btn svg {
    width: 16px;
    height: 16px;
}

.movie-watched {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    background: var(--dark-bg);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

.movie-review-preview {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .auth-form {
        padding: 2rem 1.5rem;
    }

    .auth-form h1 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .movie-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }

    .search-container {
        flex-direction: column;
    }

    .btn-search {
        margin-left: 0;
        width: 100%;
    }

    .filter-section {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-details {
        grid-template-columns: 1fr;
    }

    .movie-poster {
        max-width: 250px;
    }

    .app-container {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .auth-form {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }

    .auth-form h1 {
        font-size: 1.3rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .movie-poster {
        height: 300px;
        min-height: 300px;
        max-width: 250px;
    }

    .movie-card:hover {
        transform: translateY(-4px);
    }

    .movie-detail-container {
        gap: 1.5rem;
    }

    .movie-info-section h1 {
        font-size: 1.8rem;
    }

    .release-year {
        font-size: 0.95rem;
    }

    .movie-overview {
        font-size: 0.9rem;
    }

    .star-rating {
        justify-content: flex-start;
    }

    .star {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .btn-primary, .btn-secondary, .btn-search {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .filter-section {
        padding: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem 1rem;
        max-width: 90%;
    }

    .close {
        font-size: 1.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.text-error {
    color: #ff6b6b;
}

.text-success {
    color: var(--success-green);
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}