/* أساسيات الصفحة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a2b4b;
    /* Navy */
    --secondary-color: #c5a059;
    /* Gold */
    --accent-color: #f1c40f;
    --danger-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --primary-navy: #1a2b4b;
    /* For compatibility */
    --secondary-gold: #c5a059;
    /* For compatibility */
    --light-bg: #f4f6f9;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Changa', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #333;
    font-weight: 500;
}

/* Ensure all form elements also use the font */
input,
button,
select,
textarea {
    font-family: 'Changa', sans-serif;
}

/* الشريط العلوي */
.navbar {
    background-color: white;
    color: var(--primary-color);
    padding: 0.2rem 0;
    /* Reduced padding since logo provides height */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.logo img {
    height: 150px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
    padding: 5px;
}

.logo:hover img {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 8px 25px rgba(197, 160, 89, 0.4));
}

.nav-links {
    display: flex;
    gap: 15px;
    margin: 0 auto;
    /* Attempt to center if possible, or we change parent justified */
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background-color: #f8f9fa;
    /* Light background for pill shape */
}

.nav-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Specific button styles for prominence if needed based on list position, 
   but for now uniform elegant style */

/* الصفحة الرئيسية */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* الميزات */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid transparent;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary-color);
}

.feature i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* النماذج */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.registration-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-navy);
    color: white;
}

.btn-primary:hover {
    background-color: #2c3e50;
    box-shadow: 0 4px 10px rgba(26, 43, 75, 0.4);
}

.btn-secondary {
    background-color: #6c757d;
    /* Standard Grey */
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #2e7d32;
    /* Dark Green */
    color: white;
}

.btn-success:hover {
    background-color: #1b5e20;
}

.btn-danger {
    background-color: #c62828;
    /* Dark Red */
    color: white;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

.btn-info {
    background-color: var(--secondary-gold);
    color: white;
}

.btn-info:hover {
    background-color: #b08d4f;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Official Admin Buttons */
.btn-official {
    background-color: #4a5568;
    /* Formal Gray */
    color: white;
    border: 1px solid #c5a059;
    /* Light Gold Outline */
    padding: 14px 12px;
    /* Balanced vertical padding */
    min-height: 45px;
    /* Balanced minimum height */
    font-weight: 600;
    font-size: 15px;
    /* Increased from 13px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    min-width: 150px;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.btn-official i {
    color: #ffd700;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    display: inline-block;
    line-height: 1;
}

.btn-official:hover {
    background-color: #2c3e50;
    border-color: #e0b045;
    /* Brighter gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 43, 75, 0.3);
    text-decoration: none !important;
}

.btn-official-danger {
    background-color: #c62828;
    color: white;
    border: 1px solid #c5a059;
    /* Light Gold Outline */
    padding: 14px 12px;
    /* Balanced vertical padding */
    min-height: 45px;
    /* Balanced minimum height */
    font-weight: 600;
    font-size: 15px;
    /* Increased from 13px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    min-width: 150px;
    gap: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.btn-official-danger:hover {
    background-color: #b71c1c;
    border-color: #e0b045;
    box-shadow: 0 6px 12px rgba(198, 40, 40, 0.3);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.btn-official-danger i {
    width: 20px;
    font-size: 1rem;
    text-align: center;
    display: inline-block;
    line-height: 1;
}

/* التنبيهات */
.alert {
    padding: 15px 20px;
    margin: 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 20px auto;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
}

/* الجداول */
.researchers-table {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: 600;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* البادجات */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.badge.scientific {
    background-color: #d4edff;
    color: #004085;
}

.badge.humanities {
    background-color: #fff3cd;
    color: #856404;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.badge-primary {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* لوحة المدير */
.admin-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.admin-actions {
    display: flex;
    gap: 15px;
}

.filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.filter-buttons .btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* أنماط التتبع */
.tracking-code {
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

/* الحالات */
.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.status-accepted {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.status-passed_istilal {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* شاشة التحميل */
.loading {
    text-align: center;
    padding: 50px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.loading i {
    margin-right: 10px;
}

/* التذييل */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--primary-color);
    color: white;
    margin-top: 50px;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        gap: 20px;
    }

    .admin-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -5px;
    }
}

/* =========================================
   New UI Components (Buttons & Search)
   ========================================= */

/* Filter & Search Layout */
.filters-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-end;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.filter-group,
.search-group {
    flex: 1;
    min-width: 300px;
}

.filters-section h3 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: var(--primary-navy);
    font-weight: 700;
}

/* Button Group (Joined) */
.btn-group {
    display: flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.btn-filter {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e1e8ed;
    border-left: none;
    /* Remove duplicate borders */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-filter:first-child {
    border-right: 1px solid #e1e8ed;
    /* Restore first border */
}

.btn-filter:hover {
    background: #e9ecef;
    color: var(--primary-navy);
}

.btn-filter.active {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

/* Search Input Group */
.search-input-group {
    display: flex;
    gap: 0;
}

.search-input-group .form-control {
    border-radius: 0 8px 8px 0;
    /* RTL: Rounded right */
    border: 2px solid #e1e8ed;
    border-left: none;
    padding: 10px 15px;
    font-size: 1rem;
    flex: 1;
    transition: border-color 0.3s;
}

.search-input-group .form-control:focus {
    border-color: var(--primary-navy);
    outline: none;
}

.search-input-group .btn {
    border-radius: 8px 0 0 8px;
    /* RTL: Rounded left */
    padding: 10px 25px;
    background: var(--primary-navy);
    color: white;
    border: 2px solid var(--primary-navy);
    cursor: pointer;
    font-weight: 600;
}

.search-input-group .btn:hover {
    background: #2c3e50;
    border-color: #2c3e50;
}

@media (max-width: 768px) {
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-filter {
        border: 1px solid #e1e8ed;
        margin-bottom: 5px;
        border-radius: 6px !important;
    }
}

/* =========================================
   Formal Admin Theme (Navy & Gold)
   ========================================= */

/* General Admin Layout */
.admin-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header Styling */
.admin-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    justify-content: center;
    align-items: center;
    /* Center horizontally */
    gap: 20px;
    /* Space between title and buttons */
    border-top: 4px solid var(--primary-navy);
}

.admin-header h2 {
    color: var(--primary-navy);
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* Force single line */
    gap: 10px;
}

.admin-name-highlight {
    color: var(--secondary-color);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-right: 5px;
}

/* Action Groups */
.admin-actions {
    display: flex;
    gap: 10px;
    /* Standard gap */
    align-items: center;
    flex-wrap: nowrap;
    /* Force single line */
    justify-content: center;
    /* Center buttons */
    width: 100%;
    /* Full width */
    overflow-x: auto;
    /* Allow scroll on small screens if needed */
    padding-bottom: 5px;
    /* Space for scrollbar if it appears */
}


/* =========================================
   Statistics Page Styling
   ========================================= */

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-navy);
}

.stat-info h3 {
    margin: 0;
    font-size: 24px;
    color: var(--primary-navy);
    font-weight: 700;
}

.stat-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 400px;
    /* Critical for Chart.js */
    position: relative;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: var(--primary-navy);
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.recent-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.recent-section h3 {
    margin-bottom: 20px;
    color: var(--primary-navy);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.stats-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    font-weight: 600;
    color: var(--primary-navy);
    text-align: right;
    border-bottom: 2px solid #e9ecef;
}

.stats-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #495057;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.no-data {
    padding: 40px;
    color: #adb5bd;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .charts-section {
        grid-template-columns: 1fr;
    }

    .recent-activities {
        grid-template-columns: 1fr;
    }
}



/* Compact Buttons */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

/* Stats Cards */
.dashboard-stats,
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary-gold);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-navy), #34495e);
    box-shadow: 0 4px 10px rgba(26, 43, 75, 0.3);
}

/* Icons Colors */
.stat-icon.scientific {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-icon.humanities {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-icon.arts {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.stat-icon.sports {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #f39c12, #d35400);
}

.stat-icon.total-researches {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.stat-icon.total-researchers {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-info h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.2;
}

.stat-info p {
    color: #7f8c8d;
    margin: 5px 0 0;
    font-size: 0.95rem;
}

/* Stats Cards */
.dashboard-stats,
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary-gold);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    /* Squircles for modern look */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-navy), #34495e);
    box-shadow: 0 10px 20px rgba(26, 43, 75, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    /* 3D effect */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   Icon Styles - Split for Dashboard and Statistics
   ========================================================================== */

/* 1. Default Icons (Admin Dashboard) - Formal Navy/Gold Theme */
.stat-icon.scientific {
    background: linear-gradient(135deg, #1a2b4b, #2c3e50);
    /* Official Navy */
    box-shadow: 0 10px 20px rgba(26, 43, 75, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.stat-icon.humanities {
    background: linear-gradient(135deg, #c5a059, #b08d4f);
    /* Official Gold */
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-icon.arts {
    background: linear-gradient(135deg, #4b5d67, #393e46);
    /* Formal Grey */
    box-shadow: 0 10px 20px rgba(75, 93, 103, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-icon.sports {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    /* Muted Blue */
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #f39c12, #d35400);
    /* Amber */
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-icon.accepted {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    /* Green */
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-icon.rejected {
    background: linear-gradient(135deg, #c0392b, #962d22);
    /* Red */
    box-shadow: 0 10px 20px rgba(192, 57, 43, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-icon.total-researches {
    background: linear-gradient(135deg, #1a2b4b, #152238);
    /* Navy */
    box-shadow: 0 10px 20px rgba(26, 43, 75, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #c5a059;
}

.stat-icon.total-researchers {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    /* Dark Slate */
    box-shadow: 0 10px 20px rgba(52, 73, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}



.stat-info h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.2;
}

.stat-info p {
    color: #7f8c8d;
    margin: 5px 0 0;
    font-size: 0.95rem;
}

/* Tables & Containers */
.researchers-table-container,
.users-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 0 !important;
    /* override default padding */
}

.table-header {
    background: var(--primary-navy);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.table-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.researchers-table th {
    background: #f8f9fa;
    color: var(--primary-navy);
    font-weight: 700;
    padding: 15px 20px;
    border-bottom: 2px solid #e1e8ed;
    text-align: right;
}

.researchers-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #555;
    vertical-align: middle;
}

.researchers-table tr:hover td {
    background-color: #fcfcfc;
}

/* Action Buttons in Tables */
.btn-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    color: white !important;
}

/* Sortable Headers */
.sort-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.sort-link:hover {
    color: var(--secondary-gold);
}

.sort-link i {
    font-size: 0.85em;
    opacity: 0.6;
}

.sort-link:hover i {
    opacity: 1;
}

.btn-action.view {
    background: #17a2b8;
}

.btn-action.evaluate {
    background: #28a745;
}

.btn-action.delete {
    background: #dc3545;
}

.btn-action:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Forms */
.admin-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-navy);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--secondary-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* =========================================
   Formal Registration Page
   ========================================= */
.registration-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.registration-header h2 {
    color: var(--primary-navy);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.registration-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    border-top: 5px solid var(--primary-navy);
}

.card-header {
    background: #f8f9fa;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid #e1e8ed;
}

.card-header h3 {
    margin: 0;
    color: var(--primary-navy);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 2rem;
}

/* Grids */
.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* LTR Support for English Section */
.ltr-grid {
    direction: ltr;
}

.ltr-input {
    direction: ltr;
    text-align: left;
    font-family: 'Segoe UI', sans-serif;
}

.en-font {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    direction: ltr;
    text-align: left;
}

/* Form Elements */
.required {
    color: #e74c3c;
    margin-right: 3px;
}

.form-note {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-actions-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.btn-lg {
    padding: 12px 35px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .form-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .form-grid-4,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .ltr-grid {
        direction: rtl;
        /* Reset direction for vertical stacking on mobile if needed, but keeping inputs LTR */
    }

    .ltr-input {
        text-align: left;
        /* Always keep English inputs LTR aligned */
    }
}

/* =========================================
   Formal Researcher Profile & Evaluation
   ========================================= */
.researcher-profile {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

/* Profile Header */
.profile-header {
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0d1b33 100%);
    color: white;
    position: relative;
}

/* Profile Action Buttons (Inline Glass) */
.profile-action-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 6px;
    /* Slightly rounded frame */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    box-shadow: none;
}

.profile-action-btn:hover {
    background: white;
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Specific Hover Text Colors for Context */
.btn-warning.profile-action-btn:hover {
    color: #d35400;
}

.btn-danger.profile-action-btn:hover {
    color: #c0392b;
}

.profile-main-info {
    display: flex;
    flex-direction: column;
    /* Stack vertically to center */
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(197, 160, 89, 0.3);
    /* Gold border */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--secondary-gold);
}

.profile-details h2 {
    margin: 0 0 5px 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
}

.profile-details h3 {
    margin: 0 0 20px 0;
    opacity: 0.8;
    font-weight: 400;
    font-size: 1.2rem;
    color: #cbd5e1;
}

/* Tags */
.profile-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.tag.tracking-code {
    background: rgba(197, 160, 89, 0.2);
    border-color: rgba(197, 160, 89, 0.4);
    color: var(--secondary-gold);
}

.tag.specialization {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.tag.scientific {
    background: rgba(46, 204, 113, 0.2);
    /* Muted Green */
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #e8f8f5;
}

.tag.humanities {
    background: rgba(52, 152, 219, 0.2);
    /* Muted Blue */
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #eaf2f8;
}

.tag.arts {
    background: rgba(155, 89, 182, 0.2);
    /* Muted Purple */
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: #f5eef8;
}

.tag.sports {
    background: rgba(230, 126, 34, 0.2);
    /* Muted Orange */
    border: 1px solid rgba(230, 126, 34, 0.3);
    color: #fef5e7;
}

.tag.registration-date {
    background: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-badge.status-passed_istilal {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-accepted {
    background: var(--primary-navy);
    color: white;
    border: 1px solid var(--primary-navy);
}

.status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.status-under_audit {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* =========================================
   Modal Styles (Modern Redesign)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.7);
    /* Deep Navy Overlay */
    backdrop-filter: blur(5px);
    padding-top: 50px;
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 550px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes slideUpFade {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    background: white;
    color: var(--primary-navy);
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--secondary-gold);
}

.close {
    color: #cbd5e1;
    font-size: 1.8rem;
    font-weight: 300;
    transition: color 0.2s;
    line-height: 1;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #ef4444;
    background: #fef2f2;
    border-radius: 50%;
}

/* Modal Body */
.modal-body {
    padding: 25px;
}

.research-info-modal {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.research-info-modal p {
    margin: 0;
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 4px rgba(10, 31, 68, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Modal Actions */
.modal-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.modal-actions .btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

/* =========================================
   New Dashboard Layout (View Researcher)
   ========================================= */
.profile-content-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sidebar (Now Quick Dashboard) */
.quick-dashboard-strip {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid #edf2f7;
}

.dashboard-segment {
    padding: 0 20px;
    border-left: 1px solid #edf2f7;
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-segment:last-child {
    border-left: none;
}

.segment-title {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Segment */
.compact-info-list .c-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #475569;
}

.compact-info-list .c-item i {
    width: 16px;
    text-align: center;
    color: var(--primary-navy);
    opacity: 0.7;
}

.compact-info-list .c-item span {
    font-weight: 500;
}

/* Stats Segment */
.stats-segment {
    flex-direction: row;
    gap: 8px;
    /* Closer gap */
    align-items: center;
    justify-content: center;
    /* Center them */
}

.hero-stat {
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f8fafc;
    min-width: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-stat .num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat .lbl {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    display: block;
    white-space: nowrap;
}

.hero-stat.success .num {
    color: #10b981;
}

.hero-stat.warning .num {
    color: #f59e0b;
}

/* Added Danger from previous step implicit requirement if not in CSS yet */
.hero-stat.danger .num {
    color: #dc2626;
}

.tools-grid {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    text-decoration: none;
}

.tool-btn:hover {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Spacer for Main Content */
.profile-main-content {
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
}

/* Responsive for Dashboard */
@media (max-width: 992px) {
    .quick-dashboard-strip {
        flex-direction: column;
        gap: 20px;
    }

    .dashboard-segment {
        border-left: none;
        border-bottom: 1px solid #edf2f7;
        padding-bottom: 15px;
    }

    .dashboard-segment:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Main Content Area */
.profile-main-content .researches-section {
    padding: 0;
    background: transparent;
    border: none;
}

.profile-main-content .section-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.filter-pills {
    display: flex;
    gap: 10px;
}

.filter-pill {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #eee;
    background: white;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill.active,
.filter-pill:hover {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

/* Research List Items */
.researches-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.research-item-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s;
}

.research-item-card:hover {
    transform: translateY(-3px);
}

.research-item-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.r-title h5 {
    margin: 0 0 8px 0;
    color: var(--primary-navy);
    font-size: 1.15rem;
    font-weight: 700;
}

.r-code {
    font-size: 0.85rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.research-item-body {
    padding: 20px;
}

.msg-abstract {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.r-meta-grid {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.admin-notes {
    margin-top: 15px;
    padding: 12px;
    background: #fffbeb;
    border-radius: 8px;
    color: #b45309;
    font-size: 0.9rem;
}

.research-item-actions {
    background: #f8fafc;
    padding: 15px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.empty-placeholder {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 12px;
    color: #cbd5e1;
}

.empty-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile/tablet */
    }

    .profile-sidebar {
        order: 2;
        /* Move sidebar below content on mobile if desired, or keep top */
        /* Currently order 1 by default, which is good for contact info */
    }
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #e1e8ed;
    display: flex;
    gap: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--primary-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-card h4 {
    margin: 0 0 15px 0;
    color: var(--primary-navy);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* Research Cards */
.researches-section {
    padding: 30px;
    background: white;
    border-top: 1px solid #eee;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    margin: 0;
    color: var(--primary-navy);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.research-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border: 1px solid #eee;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.research-card .card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
}

.research-title-section h4 {
    margin: 0 0 8px 0;
    color: var(--primary-navy);
    font-size: 1.2rem;
    line-height: 1.5;
}

.research-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.research-card .card-body {
    padding: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f9fafb;
}

.detail-label {
    min-width: 140px;
    color: #64748b;
    font-size: 0.95rem;
}

.detail-value {
    color: var(--primary-navy);
    font-weight: 500;
}

.research-card .card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

/* Evaluation Note Box */
.evaluation-notes {
    background: #fff8e1;
    /* Light yellow/gold tint */
    border-left: 4px solid var(--secondary-gold);
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d68910;
    /* Darker gold */
    font-weight: 700;
    margin-bottom: 8px;
}

/* Modal Form Styles */
.modal-header {
    background: var(--primary-navy);
    color: white;
    padding: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: white;
}

.close {
    color: white;
    opacity: 0.8;
}

.close:hover {
    opacity: 1;
}