/* ========================================
   Üsküdar Üniversitesi - Yüksek İnsani Değerler Ödülleri
   Jüri Değerlendirme Paneli Stilleri
   ======================================== */

:root {
    /* Primary Colors - Bej/Altın Tema */
    --primary-teal: #C9A96E;
    --primary-teal-dark: #B8956A;
    --primary-teal-light: #E0C99A;
    --accent-cyan: #D4B87A;

    /* Neutral Colors */
    --bg-dark: #3D3929;
    --bg-sidebar: #4A4435;
    --bg-content: #FAF7F2;
    --bg-white: #ffffff;

    /* Text Colors */
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.75);
    --text-dark: #3D3929;
    --text-gray: #7A7567;

    /* Status Colors */
    --status-pending: #E8D4A8;
    --status-progress: #C9A96E;
    --status-complete: #8B9A6D;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(61, 57, 41, 0.12);
    --shadow-md: 0 4px 6px rgba(61, 57, 41, 0.1);
    --shadow-lg: 0 10px 25px rgba(61, 57, 41, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-content);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   App Container
   ======================================== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================
   Top Header
   ======================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.award-title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.award-title:hover {
    opacity: 0.9;
}

.dropdown-icon {
    font-size: 0.65rem;
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* ========================================
   Main Layout
   ======================================== */
.main-layout {
    display: flex;
    flex: 1;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    flex-shrink: 0;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    gap: 0.75rem;
}

.section-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.section-header.active {
    background: rgba(0, 151, 167, 0.15);
    border-left: 3px solid var(--accent-cyan);
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.section-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.section-toggle {
    font-size: 1rem;
    opacity: 0.6;
    font-weight: 300;
}

.section-menu {
    list-style: none;
    padding: 0 0 0.5rem 0;
    display: block;
    /* Her zaman açık */
}

.section-toggle {
    display: none;
    /* Toggle işaretini gizle */
}

.menu-link {
    display: block;
    padding: 0.6rem 1.25rem 0.6rem 3.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.menu-link:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.menu-link.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--primary-teal);
    padding-left: calc(3.25rem - 3px);
    font-weight: 500;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.made-by-sidebar {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.6;
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-content);
}

/* ========================================
   Hero Banner
   ======================================== */
.hero-banner {
    position: relative;
    overflow: hidden;
    margin: 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   Info Panel
   ======================================== */
.info-panel {
    background: var(--bg-white);
    margin: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.info-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.info-header:hover {
    background: rgba(0, 151, 167, 0.05);
}

.info-icon {
    display: flex;
    align-items: center;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-cyan);
    flex: 1;
}

.info-toggle {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.info-content {
    padding: 0 1.5rem 1.5rem;
}

.info-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.tips-list {
    padding-left: 1.25rem;
}

.tips-list li {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.tips-list li em {
    font-style: italic;
    color: var(--text-dark);
}

/* ========================================
   Status Badges
   ======================================== */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.pending {
    background: rgba(246, 173, 85, 0.15);
    color: #c05621;
}

.status-badge.in-progress {
    background: rgba(66, 153, 225, 0.15);
    color: #2b6cb0;
}

.status-badge.complete {
    background: rgba(72, 187, 120, 0.15);
    color: #276749;
}

/* ========================================
   Entries Table
   ======================================== */
.entries-panel {
    background: var(--bg-white);
    margin: 0 1.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.75rem;
    margin: 0 1.5rem 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: var(--bg-white);
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.filter-btn.active {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
}

.entries-table {
    width: 100%;
    border-collapse: collapse;
}

.entries-table thead {
    background: #fafbfc;
    border-bottom: 2px solid #e2e8f0;
}

.entries-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entries-table th.th-sortable {
    cursor: pointer;
    user-select: none;
}

.entries-table th.th-sortable:hover {
    color: var(--accent-cyan);
}

.entries-table th.th-image {
    width: 60px;
}

.entries-table th.th-pdf {
    width: 50px;
}

.entry-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background var(--transition-fast);
}

.entry-row:hover {
    background: rgba(0, 151, 167, 0.03);
}

.entry-row:last-child {
    border-bottom: none;
}

.entries-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    vertical-align: middle;
}

.td-image {
    width: 60px;
    padding: 0.5rem 1rem;
}

.td-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.td-id {
    font-weight: 500;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.td-entry {
    min-width: 200px;
}

.entry-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.entry-link:hover {
    color: var(--primary-teal-dark);
    text-decoration: underline;
}

.td-score {
    font-weight: 500;
    color: var(--text-gray);
}

.td-pdf {
    width: 50px;
    text-align: center;
}

.pdf-btn {
    background: #dc2626;
    border: none;
    color: white;
    padding: 0.375rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdf-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* ========================================
   Statistics Cards
   ======================================== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.stat-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pending-icon {
    background: linear-gradient(135deg, #fed7aa 0%, #fbd38d 100%);
    color: #c05621;
}

.progress-icon {
    background: linear-gradient(135deg, #bee3f8 0%, #90cdf4 100%);
    color: #2b6cb0;
}

.complete-icon {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #276749;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

/* ========================================
   Footer
   ======================================== */
.content-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-time {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .logo-container {
        flex-direction: column;
        gap: 1rem;
    }

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

@media (max-width: 576px) {
    .sidebar {
        display: none;
    }

    .hero-banner {
        height: 200px;
    }

    .info-panel {
        margin: 1rem;
    }

    .stats-container {
        padding: 0 1rem 1rem;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-panel,
.stat-card {
    animation: fadeIn 0.5s ease forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ========================================
   Page System
   ======================================== */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.page-header {
    padding: 1.5rem;
    background: var(--bg-white);
    border-bottom: 1px solid #e2e8f0;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ========================================
   Detail Page
   ======================================== */
.detail-container {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.breadcrumb-link:hover {
    color: var(--primary-teal-dark);
}

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

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.detail-id {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: block;
    margin-bottom: 0.5rem;
}

.detail-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.detail-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.prev-btn,
.next-btn {
    background: var(--primary-teal);
    color: white;
}

.prev-btn:hover:not(:disabled),
.next-btn:hover:not(:disabled) {
    background: var(--primary-teal-dark);
}

.close-btn {
    background: #4a5568;
    color: white;
}

.close-btn:hover {
    background: #2d3748;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.abstain-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer;
}

.abstain-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.detail-left,
.detail-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Candidate Photo */
.candidate-photo-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.candidate-photo {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Info Sections */
.info-section {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
}

.info-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem 1.25rem;
    background: #fafbfc;
    border-bottom: 1px solid #e2e8f0;
}

.info-section-content {
    padding: 1.25rem;
    border-left: 3px solid var(--accent-cyan);
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

.info-section-content p {
    margin-bottom: 1rem;
}

.info-section-content p:last-child {
    margin-bottom: 0;
}

.external-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}

.external-link:hover {
    text-decoration: underline;
}

/* Scoring Sections */
.scoring-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

.scoring-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.scoring-description {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.scoring-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.score-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.score-input {
    width: 60px;
    height: 50px;
    border: 2px solid #8b2d5c;
    border-radius: 6px;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    background: white;
    color: var(--text-dark);
}

.score-input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 131, 143, 0.1);
}

.score-max {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-gray);
}

.scoring-guidelines {
    flex: 1;
}

.scoring-guidelines ul {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.scoring-guidelines li {
    margin-bottom: 0.25rem;
}

/* Comment Section */
.comment-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

.comment-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.comment-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-icon {
    font-size: 1.25rem;
}

.comment-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.comment-input::placeholder {
    color: #a0aec0;
}

/* Save Section */
.save-section {
    margin-top: 0.5rem;
}

.save-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Detail Page */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-right {
        order: -1;
    }

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

    .stat-card {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {

    /* App container */
    .app-container {
        height: auto;
        min-height: 100vh;
    }

    /* Ana layout */
    .app-layout {
        flex-direction: column;
    }

    /* Main layout */
    .main-layout {
        flex-direction: column;
    }

    /* Sidebar - mobilde üstte yatay menü bar */
    .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        position: relative;
        padding: 0.5rem;
        overflow: visible;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        background: var(--bg-sidebar);
    }

    .sidebar-section {
        display: contents;
        /* Section container'ı kaldır, içeriği dışarı taşı */
        border: none;
    }

    .section-header {
        display: none !important;
        /* Başlıkları gizle */
    }

    .section-menu {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }

    .section-menu li {
        flex: 1;
        min-width: fit-content;
        list-style: none;
    }

    .menu-link {
        display: block;
        text-align: center;
        padding: 0.6rem 1rem;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        font-size: 0.85rem;
        color: var(--text-light);
    }

    .menu-link:hover,
    .menu-link.active {
        background: rgba(255, 255, 255, 0.25);
    }

    /* Main content */
    .main-content {
        padding: 0.5rem;
    }

    /* Sidebar footer mobilde gizle */
    .sidebar-footer {
        display: none;
    }

    /* Header */
    .detail-header {
        flex-direction: column;
        gap: 1rem;
    }

    .detail-nav-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-btn {
        flex: 1;
        min-width: 80px;
    }

    .scoring-row {
        flex-direction: column;
    }

    /* Hero */
    .hero-content h2 {
        font-size: 1.25rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    /* Tablo - yatay scroll */
    .entries-table-container {
        display: block;
        width: 100%;
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch;
    }

    .entries-table {
        min-width: 550px;
    }

    .entries-table th,
    .entries-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }

    .entries-table .candidate-mini-photo {
        width: 35px;
        height: 35px;
    }

    /* PDF ve Durum sütunları mobilde gizle */
    .th-pdf,
    .entries-table th:nth-last-child(2),
    .entries-table td:nth-last-child(2),
    .entries-table td:last-child {
        display: none;
    }

    /* User info */
    .user-info {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .user-name {
        display: none;
    }

    /* İstatistikler */
    .stats-container {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    /* Detay sayfası */
    .detail-container {
        padding: 1rem;
    }

    .candidate-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    /* Raporlama */
    .results-container {
        padding: 1rem;
    }

    .results-header {
        flex-direction: column;
        text-align: center;
    }

    .results-summary {
        justify-content: center;
    }

    .summary-card {
        flex: 1;
        min-width: 100px;
        padding: 1rem;
    }

    .results-table-container {
        overflow-x: auto;
    }

    .results-table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {

    /* Header */
    .main-header {
        padding: 0.5rem 1rem;
    }

    .award-title {
        font-size: 0.9rem;
    }

    .logout-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    /* Sidebar */
    .sidebar {
        padding: 0;
    }

    .sidebar-section {
        padding: 0.25rem;
    }

    .menu-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Hero */
    .hero-banner {
        height: 100px;
    }

    .hero-content h2 {
        font-size: 0.95rem;
    }

    .hero-content p {
        display: none;
    }

    .info-panel {
        display: block;
        margin: 0.5rem;
        padding: 1rem;
    }

    /* İstatistikler */
    .stats-container {
        padding: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .nav-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .login-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .login-title {
        font-size: 1.25rem;
    }

    /* Modal */
    .vote-modal {
        width: 95%;
        max-height: 90vh;
    }

    .vote-detail-table th,
    .vote-detail-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   Login Page
   ======================================== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-sidebar) 100%);
    padding: 2rem;
}

.login-container {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.login-logo {
    margin-bottom: 1.5rem;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #2f2f2f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.login-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.microsoft-icon {
    flex-shrink: 0;
}

.login-note {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 1.5rem;
}

.made-by {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.5;
}

.login-error {
    margin-bottom: 1.5rem;
}

.error-message {
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
}

.error-message strong {
    display: block;
    margin-bottom: 0.5rem;
}

.error-message p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* ========================================
   User Info (Header)
   ======================================== */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
}

.user-name {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   Spinner Animation
   ======================================== */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Save Note
   ======================================== */
.save-note {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-align: center;
    margin-top: 0.5rem;
}

/* ========================================
   Results Page (Admin)
   ======================================== */
.results-container {
    padding: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.results-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.results-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0.25rem 0 0 0;
}

.export-btn {
    padding: 10px 20px;
    background: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.export-btn:hover {
    background: var(--primary-teal-dark);
    transform: translateY(-2px);
}

.results-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.summary-card {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-teal);
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

.results-table-container {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background: var(--bg-dark);
    color: var(--text-light);
    font-weight: 600;
}

.results-table tr:hover {
    background: #f9f9f9;
}

.detail-votes-btn {
    padding: 6px 12px;
    background: var(--accent-cyan);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.detail-votes-btn:hover {
    background: var(--primary-teal);
}

/* ========================================
   Vote Detail Modal
   ======================================== */
.vote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.vote-modal {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vote-modal-header {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1.5rem 2rem;
    position: relative;
}

.vote-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    opacity: 1;
}

.vote-modal-body {
    padding: 1.5rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.vote-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.vote-detail-table th,
.vote-detail-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.vote-detail-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.vote-detail-table th small {
    display: block;
    font-weight: 400;
    color: var(--text-gray);
}

.vote-detail-table .jury-name {
    text-align: left;
    font-weight: 500;
}

.vote-detail-table .comment-cell {
    width: 40px;
    padding: 0.5rem;
}

.comment-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.comment-row {
    background: #f8fafb;
}

.comment-text {
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
    padding: 0.5rem;
    border-left: 3px solid var(--accent-cyan);
    margin-left: 1rem;
}

.vote-detail-table tfoot .averages-row {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-sidebar) 100%);
    color: var(--text-light);
}

.vote-detail-table tfoot .averages-row td {
    border-bottom: none;
    font-size: 1rem;
}

.no-votes {
    text-align: center;
    color: var(--text-gray);
    padding: 2rem;
}

/* ========================================
   Juries Management Page
   ======================================== */
.juries-container {
    padding: 2rem;
}

.juries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.juries-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.juries-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0.25rem 0 0 0;
}

.add-jury-btn {
    padding: 12px 24px;
    background: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.add-jury-btn:hover {
    background: var(--primary-teal-dark);
    transform: translateY(-2px);
}

.juries-table-container {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.juries-table {
    width: 100%;
    border-collapse: collapse;
}

.juries-table th {
    padding: 1rem;
    background: #fafbfc;
    text-align: left;
    font-weight: 600;
    color: var(--text-gray);
    border-bottom: 2px solid #e2e8f0;
}

.juries-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-dark);
}

.juries-table tbody tr:hover {
    background: #f7fafc;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-badge.admin {
    background: #FEF3C7;
    color: #92400E;
}

.role-badge.jury {
    background: #D1FAE5;
    color: #065F46;
}

.action-btns {
    display: flex;
    gap: 0.5rem;
}

.edit-btn,
.delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.edit-btn {
    background: #EBF5FF;
    color: #1E40AF;
}

.edit-btn:hover {
    background: #DBEAFE;
}

.delete-btn {
    background: #FEE2E2;
    color: #DC2626;
}

.delete-btn:hover {
    background: #FECACA;
}

/* ========================================
   Logs Page Styles
   ======================================== */
.logs-container {
    padding: 2rem;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logs-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.logs-subtitle {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.logs-filters {
    display: flex;
    gap: 0.5rem;
}

.logs-table-container {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table th {
    padding: 1rem;
    background: #fafbfc;
    text-align: left;
    font-weight: 600;
    color: var(--text-gray);
    border-bottom: 2px solid #e2e8f0;
}

.logs-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #edf2f7;
}

.logs-table tbody tr:hover {
    background: #fafbfc;
}

.log-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.log-type.login {
    background: #c6f6d5;
    color: #276749;
}

.log-type.logout {
    background: #fed7d7;
    color: #c53030;
}

.log-type.vote {
    background: #bee3f8;
    color: #2b6cb0;
}

/* ========================================
   Modal Styles
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 450px;
    z-index: 1001;
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cancel-btn,
.submit-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cancel-btn {
    background: #e2e8f0;
    color: var(--text-dark);
}

.cancel-btn:hover {
    background: #cbd5e0;
}

.submit-btn {
    background: var(--primary-teal);
    color: white;
}

.submit-btn:hover {
    background: var(--primary-teal-dark);
}