/*ADMIN STYLES*/

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #2d2a26;
    line-height: 1.6;
    visibility: hidden;
}

/* Show content when authenticated */
body.authenticated {
    visibility: visible;
}

/* =====================================================
   LAYOUT & CONTAINERS
   ===================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
}

/* =====================================================
   HEADER STYLES
   ===================================================== */
/* =====================================================
   MODERN HEADER - COMPATIBLE VERSION
   ===================================================== */
header {
    background-color: #ffffff;
    color: #2d2a26;
    padding: 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #f26522;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    position: relative; /* ⬅️ Add this */
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

/* Logo Section - keeping original class names */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Center Section - NEW layout to center it visually in header */
.header-center {
    position: absolute;            /* ⬅️ Add */
    left: 50%;                     /* ⬅️ Add */
    transform: translateX(-50%);   /* ⬅️ Add */
    text-align: center;
    pointer-events: none;          /* ⬅️ Optional: allows clicks to pass through */
}

.header-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.header-divider {
    width: 1px;
    height: 30px;
    background-color: #e0e0e0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faculty-name {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.logo-section span:not(.faculty-name) {
    color: #ccc;
}

/* Center Section */
.header-center {
    text-align: center;
    flex: 1;
}

header h1 {
    font-size: 1.5rem;
    color: #2d2a26;
    font-weight: 600;
    margin: 0;
}

.header-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

/* User Info - keeping original class names */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

.user-info span {
    font-weight: 500;
    color: #666;
}

.logout-btn {
    background-color: #f26522;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background-color: #e04d1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Mobile Header */
@media (max-width: 968px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-left {
        width: 100%;
        justify-content: center;
    }

    .header-center {
        position: static;         /* ⬅️ Reset to default */
        transform: none;
        width: 100%;
        text-align: center;
        pointer-events: auto;
    }

    .user-info {
        width: 100%;
        justify-content: center;
        flex-direction: column; /* 👈 Force stacking */
        align-items: center;     /* 👈 Center items */
        gap: 0.5rem;             /* 👈 Optional vertical spacing */
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 50px;
    }
    
    .header-divider {
        display: none;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 5px;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    .header-subtitle {
        font-size: 0.8rem;
    }
    
    .logout-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Header */
@media (max-width: 968px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-left {
        width: 100%;
        justify-content: center;
    }
    
    .header-center {
        width: 100%;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 50px;
    }
    
    .header-divider {
        display: none;
    }
    
    .header-institution {
        display: none;
    }
    
    .header-title {
        font-size: 1.25rem;
    }
    
    .header-subtitle {
        font-size: 0.8rem;
    }
    
    .user-dropdown {
        padding: 0.4rem 0.8rem;
    }
    
    .logout-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* =====================================================
   NAVIGATION & TABS
   ===================================================== */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 5px;
    overflow-x: auto;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab:hover {
    background-color: #e0e0e0;
}

.tab.active {
    background-color: #f26522;
    color: white;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* =====================================================
   SECTIONS & CARDS
   ===================================================== */
.section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 3px solid #f26522;
}

.section h2 {
    color: #f26522;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f5f5;
}

@media (max-width: 768px) {
    .section {
        width: 100%;
        overflow-x: auto;
        max-width: 95vw;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2A2D2A;
}

.form-group input,
.form-group select,
.form-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-select:focus {
    outline: none;
    border-color: #f26522;
    box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Primary button */
.btn,
.btn-primary {
    background-color: #525151;
    color: white;
}

.btn:hover,
.btn-primary:hover {
    background-color: #3A3A3A;
}

/* Success button */
.btn-success {
    background-color: #5cb85c;
    color: white;
}

.btn-success:hover {
    background-color: #4cae4c;
}

/* Danger button */
.btn-danger {
    background-color: #d9534f;
    color: white;
}

.btn-danger:hover {
    background-color: #c9302c;
}

/* Secondary button */
.btn-secondary {
    background-color: #f0f0f0;
    color: #2d2a26;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Warning button */
.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

/* Info button */
.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

/* PDF button */
.btn-pdf {
    background-color: #f0ad4e;
    color: white;
}

.btn-pdf:hover {
    background-color: #ec971f;
}

.btn-pdf:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Small button */
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Action button */
.action-btn {
    padding: 5px 10px;
    font-size: 12px;
    margin: 2px;
}

/* Ensure logout button is always visible */
.logout-btn {
    background-color: #f26522 !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 5px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}

.logout-btn:hover {
    background-color: #e04d1a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Ensure user-info section displays properly */
.user-info {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    white-space: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Debug helper - remove this after testing */
.logout-btn::after {
    content: " →";
    margin-left: 5px;
}

@media (max-width: 768px) {
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .btn-sm,
    .action-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* =====================================================
   TABLES - FORCED STICKY HEADERS WITH !important
   ===================================================== */
.table-wrapper {
    width: 100% !important;
    overflow: auto !important; /* Force both directions */
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    margin-bottom: 20px !important;
    max-height: 70vh !important; /* Force height constraint */
    position: relative !important; /* Force positioning context */
}

.projects-table {
    width: 100% !important;
    border-collapse: separate !important; /* Force separate borders */
    border-spacing: 0 !important; /* Keep borders touching */
    font-size: 14px !important;
    min-width: 800px !important;
}

.projects-table th,
.projects-table td {
    padding: 10px 8px !important;
    text-align: left !important;
    border-bottom: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    white-space: nowrap !important;
}

/* Remove right border from last column */
.projects-table th:last-child,
.projects-table td:last-child {
    border-right: none !important;
}

/* FORCE STICKY HEADERS - This should override everything */
.projects-table th {
    background-color: #525151 !important;
    color: white !important;
    font-weight: bold !important;
    position: sticky !important; /* Force sticky */
    position: -webkit-sticky !important; /* Force Safari sticky */
    top: 0 !important; /* Force top position */
    z-index: 100 !important; /* Force high z-index */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    background-clip: padding-box !important;
}

.projects-table tr:hover {
    background-color: #f5f5f5 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .table-wrapper {
        max-height: 60vh !important;
    }
    
    .projects-table {
        font-size: 12px !important;
    }
    
    .projects-table th,
    .projects-table td {
        padding: 8px 6px !important;
    }
}

/* Additional fallback - target ALL table headers in wrappers */
.table-wrapper table thead th {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background-color: #525151 !important;
    color: white !important;
}

/* Even more specific targeting */
#users-list th,
#projects-list th,
#evaluations-list th {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background-color: #525151 !important;
    color: white !important;
}

/* =====================================================
   PROJECT CARDS (Evaluator Dashboard)
   ===================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-header h3 {
    margin: 0;
    color: #2d2a26;
    font-size: 1.2rem;
    flex: 1;
    margin-right: 1rem;
}

.project-acronym {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.project-info {
    margin-bottom: 1rem;
}

.project-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #666;
}

.project-info strong {
    color: #2d2a26;
}

.project-status {
    margin-bottom: 1rem;
}

.project-actions {
    text-align: center;
}

.project-actions .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-header h3 {
        font-size: 1.1rem;
    }
}

/* =====================================================
   IMPORT CARDS (Evaluator Dashboard)
   ===================================================== */

/* Import Tab Styles */
/* These styles build on your existing CSS without duplicating */

/* Make sure file inputs match your other form inputs */
input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

input[type="file"]:focus {
    outline: none;
    border-color: #f26522;
    box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.2);
}

/* Style for the preview tables that will be generated */
#evaluators-preview table,
#projects-preview table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px;
}

#evaluators-preview table th,
#projects-preview table th,
#evaluators-preview table td,
#projects-preview table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#evaluators-preview table th,
#projects-preview table th {
    background-color: #525151;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

#evaluators-preview table tr:hover,
#projects-preview table tr:hover {
    background-color: #f5f5f5;
}

/* Error row highlighting */
#evaluators-preview table tr.error-row,
#projects-preview table tr.error-row {
    background-color: #fff5f5;
}

/* Import controls for the buttons at the bottom of preview */
.import-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

/* Import status messages */
.import-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
}

.import-status.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.import-status.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Style for collapsible error details */
.import-status details {
    margin-top: 10px;
}

.import-status details summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 8px;
    color: inherit;
}

.import-status details ul {
    margin-top: 10px;
    margin-left: 20px;
}

.import-status details li {
    margin-bottom: 5px;
}

/* Preview tables status badges for valid/invalid entries */
.status-badge.valid {
    background-color: #5cb85c;
    color: white;
}

.status-badge.invalid {
    background-color: #f0ad4e;
    color: white;
}

/* Make sure UL and LI in the supports values section match your style */
.info-box ul {
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.info-box li {
    margin-bottom: 5px;
    color: #666;
}

.info-box h3 {
    margin-top: 15px;
    font-size: 16px;
    color: #2d2a26;
}

/* Preview empty state */
.preview-empty {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    input[type="file"] {
        font-size: 12px;
    }
    
    #evaluators-preview table,
    #projects-preview table {
        font-size: 12px;
    }
    
    #evaluators-preview table th,
    #projects-preview table th,
    #evaluators-preview table td,
    #projects-preview table td {
        padding: 8px 6px;
    }
    
    .import-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .import-controls button {
        width: 100%;
    }
}

/* =====================================================
   STATUS BADGES
   ===================================================== */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-complete {
    background-color: #5cb85c;
    color: white;
}

.status-pending {
    background-color: #f0ad4e;
    color: white;
}

.status-not-started {
    background-color: #999;
    color: white;
}

.status-active {
    background-color: #ffc107;
    color: #212529;
}

.status-unlocked {
    background-color: #17a2b8;
    color: white;
}

/* Project card specific status badges */
.project-card .status-complete {
    background: #d4edda;
    color: #155724;
}

.project-card .status-active {
    background: #fff3cd;
    color: #856404;
}

.project-card .status-pending {
    background: #f8f9fa;
    color: #6c757d;
}

.project-card .status-unlocked {
    background: #e7f3ff;
    color: #004085;
}

/* =====================================================
   MODALS
   ===================================================== */
.modal {
    display: none; /* 👈 hides the modal by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex; /* 👈 show when triggered */
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 800px;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2d2a26;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1.5rem;
}

/* Clean confirmation modal layout */
.confirm-modal {
    padding: 2rem 2.5rem;
    max-width: 420px;
    text-align: center;
}

/* Larger centered warning icon */
.warning-icon {
    background-color: #facc15; /* Yellow */
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-icon svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
}

/* Modal title and text */
.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: #facc15;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 42px;
    height: 42px;
    stroke: white;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #22c55e; /* green background */
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: slideIn 0.4s ease forwards;
}

.toast.show {
    display: flex;
}

.toast svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.info-box {
    background: #f8f9fa;
    border-left: 4px solid #525151;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.info-box p {
    color: #2A2D2A;
    font-size: 14px;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

.no-projects {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin: 3rem 0;
}

.url-column {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-link {
    color: #f26522;
    text-decoration: none;
}

.url-link:hover {
    text-decoration: underline;
}

.score-column {
    font-weight: bold;
    color: #5cb85c;
    text-align: center;
}

.score-column.incomplete {
    color: #999;
}

/* Lock/Unlock messages */
.locked-message,
.unlocked-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.locked-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.unlocked-message {
    background: #cfe2ff;
    border: 1px solid #b6d4fe;
    color: #004085;
}

/* Form states */
.form-locked .grade-dropdown,
.form-locked textarea {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.form-locked .btn {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Evaluator selection in modal */
.evaluator-list {
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.evaluator-option {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
}

.evaluator-option:hover {
    background-color: #f8f9fa;
    border-color: #f26522;
}

.evaluator-option input[type="radio"] {
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.evaluator-option label {
    flex: 1;
    cursor: pointer;
}

.evaluator-name {
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 0.25rem;
}

.evaluator-details {
    font-size: 0.9rem;
    color: #666;
}

.evaluator-details span {
    margin-right: 0.5rem;
}

.evaluator-option:has(input:checked) {
    background-color: #fff5f0;
    border-color: #f26522;
}

/* Evaluator select dropdown */
select.evaluator-select {
    width: 140px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================================================
   RESPONSIVE UTILITIES
   ===================================================== */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 5px;
    }
    
    .section {
        padding: 10px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .projects-table {
        font-size: 11px;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    body {
        background: white;
    }
    
    header,
    .tabs,
    .btn,
    .logout-btn {
        display: none;
    }
    
    .section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .table-wrapper {
        overflow: visible;
    }
    
    .projects-table {
        font-size: 12px;
    }
}

/* =====================================================
   CUSTOM SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* =====================================================
   MODERN ICON STYLES
   ===================================================== */

/* Icon wrapper for inline icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

/* Button icons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Status icons */
.status-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
    vertical-align: middle;
}

/* Table action icons */
.action-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.action-icon:hover {
    transform: scale(1.2);
}

/* Project card icons */
.project-icon {
    width: 24px;
    height: 24px;
    color: #f26522;
    margin-bottom: 0.5rem;
}

/* Modern icon colors */
.icon-primary { color: #f26522; }
.icon-success { color: #5cb85c; }
.icon-warning { color: #ffc107; }
.icon-danger { color: #d9534f; }
.icon-info { color: #17a2b8; }

/* Modern SVG icons - Add these to your buttons */
.icon-folder {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-users {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-document {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-check {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
}

.icon-plus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 4v16m8-8H4'%3E%3C/path%3E%3C/svg%3E");
}

.icon-download {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10'%3E%3C/path%3E%3C/svg%3E");
}

.icon-edit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-trash {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16'%3E%3C/path%3E%3C/svg%3E");
}

/* Icon as background pattern for elements */
[class*="icon-"] {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Tab icons */
.tab-icon {
    display: inline-flex;
    margin-right: 0.5rem;
    opacity: 0.8;
}

.tab.active .tab-icon {
    opacity: 1;
}

/* Modernized buttons with icons */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-with-icon svg {
    width: 20px;
    height: 20px;
}

/* Explanation cell styles */
.explanation-cell {
    max-width: 300px;
    font-size: 0.9rem;
}

.explanation-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.explanation-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

.btn-link {
    background: none;
    border: none;
    color: #f26522;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    font-size: 0.85rem;
    text-decoration: underline;
}

.btn-link:hover {
    color: #d04d1a;
}

/* Preview button styles */
.btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.btn-info:hover {
    background-color: #138496;
}

/* Icon styles for buttons */
.icon-eye {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 0.25rem;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'%3E%3C/path%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-unlock {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 0.25rem;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 11V7a4 4 0 118 0m-4 8v2m-2 4h4'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Make table responsive for explanation column */
@media (max-width: 1200px) {
    .explanation-cell {
        max-width: 200px;
    }
    
    .explanation-item {
        font-size: 0.8rem;
    }
}

/* =====================================================
   FOOTER STYLES
   ===================================================== */
.footer {
    background-color: #525151;  /* Your requested gray background */
    color: #ffffff;             /* White text */
    margin-top: 60px;
    padding: 40px 0 30px;
    border-top: 3px solid #f26522;  /* Orange accent */
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    text-align: center;
    margin-bottom: 30px;
}

.footer-content h3 {
    color: #ffffff;  /* White heading */
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 10px;
    color: #ffffff;  /* White text */
    font-size: 1rem;
}

.contact-info strong {
    color: #ffffff;  /* White for labels */
    font-weight: 600;
}

.contact-info a {
    color: #f26522;  /* Orange for links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ff7b3d;  /* Lighter orange on hover */
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);  /* Subtle white border */
    color: rgba(255, 255, 255, 0.8);  /* Slightly transparent white */
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer {
        margin-top: 40px;
        padding: 30px 0 20px;
    }
    
    .footer-content h3 {
        font-size: 1.1rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
}

/* Ensure footer stays at bottom */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* Third evaluator column visibility control for all screen sizes */
.third-evaluator-cell,
.third-evaluator-actions {
  display: none;
}

.projects-table th:nth-child(10),
.projects-table th:nth-child(11) {
  display: none;
}

/* Show when the table has show-third-evaluator class - for ALL screen sizes */
.show-third-evaluator .third-evaluator-cell,
.show-third-evaluator .third-evaluator-actions,
.show-third-evaluator th:nth-child(10),
.show-third-evaluator th:nth-child(11),
.show-third-evaluator td:nth-child(10),
.show-third-evaluator td:nth-child(11) {
  display: table-cell !important; /* Added !important to override any media queries */
}

/* For responsive screens - make the table scrollable horizontally */
@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    max-width: 100%;
    margin-bottom: 15px;
  }
  
  /* Ensure minimum width for all cells to prevent squishing */
  .projects-table th,
  .projects-table td {
    min-width: 100px; /* Ensure cells don't collapse too small */
    white-space: nowrap; /* Prevent text wrapping */
  }
  
  /* Add visual indicator that table scrolls */
  .table-wrapper::after {
    content: "⟷ Scroll za više";
    display: block;
    text-align: center;
    padding: 5px;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }
}

/* Button alignment fix for action buttons area */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Consistent styling for buttons with icons */
.btn-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-with-icon svg {
  width: 16px;
  height: 16px;
}

/* Ensure consistent height for all buttons in the action area */
#toggle-third-evaluator, 
.action-buttons .btn {
  height: 38px;
  display: flex;
  align-items: center;
}

.uuid-value {
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.uuid-value:hover {
    background-color: #e0e0e0;
}

/* Optional: If you want a copy icon to make it clearer */
.uuid-value::after {
    content: "📋";
    margin-left: 5px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Add this to your CSS */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f5f5f5;
}

.section-header h2 {
  color: #f26522;
  margin-bottom: 0; /* Override previous margin since it's now in a flex container */
  padding-bottom: 0; /* Override previous padding for the same reason */
  border-bottom: none; /* Remove border since it's moved to the parent */
}

/* Filter bar styling */
.filter-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.filter-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    font-size: 14px;
    background: transparent;
}

.filter-input:focus {
    outline: none;
}

.btn-clear-filter {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    padding: 0 15px;
    cursor: pointer;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-filter:hover {
    color: #f26522;
}

/* Hide rows that don't match filter */
tr.hidden-by-filter {
    display: none;
}

/* Column selector dropdown styling */
.filter-column-select {
    background: #f0f0f0;
    border: none;
    border-right: 1px solid #ddd;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    height: 38px;
    outline: none;
    cursor: pointer;
}

.filter-column-select:hover {
    background: #e0e0e0;
}

/* Update the existing filter bar to accommodate the dropdown */
.filter-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 600px; /* Increased to accommodate dropdown */
}

/* CSS for buttons with icons */
.btn-with-icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-with-icon svg {
    margin-right: 3px;
}

/* Statistics cards animation */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Make sure third evaluator cells are hidden by default */
table:not(.show-third-evaluator) .third-evaluator-cell,
table:not(.show-third-evaluator) .third-evaluator-actions {
    display: none;
}

/* Enhance status badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.status-complete {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-active {
    background-color: rgba(0, 123, 255, 0.15);
    color: #007bff;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}