
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    --primary-blue: #0a2540;      /* Dark Prussian/Regal Blue */
    --accent-cyan: #00a8e8;       /* Bright Cyan Accent */
    --bg-light: #f8fafc;          /* Off-white background */
    --text-dark: #334155;         /* Body Text */
    --text-muted: #64748b;        /* Subtitles & Captions */
    --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    --border-color: #e2e8f0;
  --background: #f8f9fa;
  --surface: #ffffff;
  --surface-low: #f3f4f5;
  --primary: #002046;
  --primary-container: #1b365d;
  --secondary: #315ea2;
  --accent: #0aaae4; /* Cyan/Light Blue */
  --accent-hover: #0890c2;
  --error: #ba1a1a;
  
  --text-main: #191c1d;
  --text-muted: #44474e;
  --text-light: #74777f;
  --text-inverse: #ffffff;
  
  --border-color: #e1e3e4;
  
  --font-family: 'Inter', sans-serif;
  
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 48px;
  --container-max: 1280px;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-glow: 0 0 20px rgba(10, 170, 228, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
} */

body{
    background:
        radial-gradient(
            circle at top right,
            rgba(10,170,228,.08),
            transparent 35%
        ),
        radial-gradient(
            circle at left center,
            rgba(27,54,93,.05),
            transparent 40%
        ),
        #f8fafc;
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

}



.hero-voting{
    height: 70vh;
    background-image: linear-gradient(180deg , rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%), url(../../image/port_hero.png);
}




.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }
.bg-surface { background-color: var(--surface); }
.bg-primary-container { background-color: var(--primary-container); }
.text-center { text-align: center; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
}

.nav-brand img { height: 40px; }
.nav-brand span {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--primary-container);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.nav-links {
  position: fixed;
  top: 0;
  right: -300px;
  width: 260px;
  height: 100vh;
  background-color: var(--surface);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 80px 2rem 2rem;
  gap: 1.5rem;
  transition: right 0.3s ease;
  z-index: 999;
}

.nav-links.active {
  right: 0;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 1001px) {
  .nav-links {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    flex-direction: row;
    padding: 0;
    gap: var(--spacing-lg);
  }
  .menu-toggle {
    display: none;
  }
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* Footer */
.footer {
  background-color: #0f172a;
  color: var(--text-inverse);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand h4 { margin-bottom: 0.5rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-inverse);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.member-photo{
  display:none;
}

/* Specific Styles for Selection Page */
.arena-hero {
    background-color: var(--primary-container);
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 40px 40px;
    padding: 140px 0 120px;
    position: relative;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: -48px;
    position: relative;
    z-index: 10;
}
.stat-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon .material-symbols-outlined {
    font-size: 1.75rem;
}
.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}
.submissions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    margin-top: 3rem;
}
.submissions-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.view-toggles {
    display: flex;
    background-color: var(--surface-low);
    border-radius: var(--radius-sm);
    padding: 4px;
}
.view-toggle {
    background: none;
    border: none;
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.view-toggle.active {
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
}
.submissions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.submission-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.submission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.entry-image {
    aspect-ratio: 4/3;
    position: relative;
    background-color: #e5e7eb;
}
.entry-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 0.05em;
}
.judges-section {
    background-color: #f9fafb;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0;
}
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: 1fr; margin-top: 2rem; }
    .submissions-grid { grid-template-columns: repeat(2, 1fr); }
    .submissions-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .arena-hero { padding: 100px 0 60px; }
}
@media (max-width: 576px) {
    .submissions-grid { grid-template-columns: 1fr; }
}


/* Image Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}
.modal.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 8px;
}
.modal.show .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.1);
}
.entry-image {
    cursor: pointer;
}

/* ================= Main Content Container ================= */
.main-content {
    max-width: 1500px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
    
}

.hero-voting{
    width: 100%;
    height: 80vh;
    background-image: linear-gradient(180deg , rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%), url(../../image/port.png);
    background-repeat: no-repeat;
    background-size: cover;    
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    
}

.hero-content{
    color: white;
    padding: 0px 20px;
}
/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* Offset for navbar */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(27, 54, 93, 0.9) 0%, rgba(0, 32, 70, 0.6) 50%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-content h1 {
  color: var(--text-inverse);
  margin-bottom: var(--spacing-lg);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}


/* ================= Employee Verification Card ================= */
.verification-card {
    background:rgba(255,255,255,.85);
    backdrop-filter:blur(12px);
    border-radius:20px;
    box-shadow:
        0 20px 50px rgba(0,0,0,.08);
    border:1px solid rgba(255,255,255,.6);
    border-radius: 8px;
    padding: 35px;
    max-width: 450px;
    margin: 0 auto 50px auto;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    margin-top: 50px;
}

.shield-icon {
    width: 48px;
    height: 48px;
    background-color: #f1f5f9;
    color: var(--text-muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 15px auto;
}

.verification-card h3 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 8px;
}

.verification-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
    color: var(--primary-blue);
    background-color: #ffffff;
}

.input-wrapper input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.btn-verify {
    width: 100%;
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-verify:hover {
    opacity: 0.95;
}

.secure-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 14px !important;
}

.secure-text i {
    margin-right: 4px;
}

/* ================= Gallery Title Section ================= */
.gallery-intro {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-intro h2 {
    color: var(--primary-blue);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-intro p {
    color: var(--text-muted);
    font-size: 15px;
}

.highlight-text {
    color: #1d4ed8; /* لون أزرق لتمييز الـ 3 صور */
    font-weight: 600;
}

/* ================= Grid Layout & Cards (مطابقة للصورة تماماً) ================= */
.images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* لتوسيط آخر كارتين بالأسفل تلقائياً */
@media (min-width: 900px) {
    .images-grid > .image-card:nth-child(4) {
        grid-column-start: 1;
        grid-column-end: 2;
    }
}

.image-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.img-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    
}

.img-container img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.meta-info h4 {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.meta-info p {
    color: var(--text-muted);
    font-size: 12px;
}

/* تخصيص الـ Checkbox ليكون مربع رمادي فارغ يتحول لأزرق عند التحديد */
.custom-checkbox-wrapper {
    position: relative;
    width: 22px;
    height: 22px;
}

.custom-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    transition: all 0.2s;
}

/* شكل الـ Checkbox المفعّل */
.image-card input[type="checkbox"]:checked ~ .custom-checkbox {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* علامة الـ الصح الداخلية بالـ CSS */
.custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.image-card input[type="checkbox"]:checked ~ .custom-checkbox:after {
    display: block;
}

/* تأثير تمييز حواف الكارت بالكامل عند اختياره */
.image-card.selected-card {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}


/* ================= Bottom Actions Zone ================= */
.voting-actions-zone {
    text-align: center;
    margin-top: 40px;
}

/* البادج الدائري للعداد الـ Selections */
.counter-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 24px;
    border: 1px solid #cbd5e1;
}

.count-number {
    background-color: #475569;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 12px;
}

/* زر الإرسال اللبني الأنيق (Matching image_3220db.jpg) */
.btn-submit {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    background-color: var(--accent-cyan);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.2);
    transition: background-color 0.2s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #0096cc;
}

.btn-submit:active {
    transform: scale(0.98);
}

.disclaimer-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
}

.status-message {
    margin-top: 20px;
    font-weight: bold;
    font-size: 14px;
}


/* تكييف التصميم للشاشات الصغيرة */
@media (max-width: 900px) {
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}
@media (max-width: 600px) {
    .images-grid {
        grid-template-columns: 1fr;
    }
    .description{
        display: none;
    }

}

/* Specific Styles for Selection Page */
.arena-hero {
    background-color: var(--primary-container);
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 40px 40px;
    padding: 140px 0 120px;
    position: relative;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: -48px;
    position: relative;
    z-index: 10;
}
.stat-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon .material-symbols-outlined {
    font-size: 1.75rem;
}
.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}