/* ========================================
   Global Styles & Variables
   ======================================== */
:root {
    --maroon: #8B0000;
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --white: #FFFFFF;
    --light-pink: #F5E6E6;
    --light-purple: #E6E6F5;
    --bg-gradient: linear-gradient(135deg, #E8F4F8 0%, #F5E6E6 100%);
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Arial', 'Segoe UI', 'Tahoma', 'DejaVu Sans', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* ========================================
   Header Styles
   ======================================== */
.header {
    background: linear-gradient(135deg, #E8F4F8 0%, rgba(245, 230, 230, 0.9) 100%);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-shield {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.shield-logo {
    width: 100%;
    height: 100%;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.academy-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.academy-ar {
    font-family: 'Arial', 'Tahoma', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--maroon);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.academy-en {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 20px;
    font-weight: normal;
    color: var(--maroon);
    margin: 0;
    font-style: italic;
}

.gold-separator {
    width: 3px;
    height: 80px;
    background: var(--gold);
    flex-shrink: 0;
}

.sponsor-logo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.north-point-logo-img {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.north-point-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.np-triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid var(--gold);
    position: relative;
}

.np-triangle::after {
    content: '';
    position: absolute;
    top: 5px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid #FF6B35;
}

.np-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 12px;
    letter-spacing: 1px;
}

/* ========================================
   Navigation Styles
   ======================================== */
.main-nav {
    background: var(--maroon);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    background: var(--gold);
    color: var(--maroon);
}

.lang-toggle {
    margin-right: auto;
    background: var(--gold);
    color: var(--maroon);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--gold-dark);
    transform: scale(1.05);
}

.lang-ar .lang-en,
.lang-en .lang-ar {
    display: none;
}

[dir="ltr"] .lang-ar .lang-en,
[dir="rtl"] .lang-en .lang-ar {
    display: inline;
}

/* ========================================
   Admin Navigation
   ======================================== */
.admin-nav {
    background: var(--maroon);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.admin-nav .nav-content {
    justify-content: flex-start;
}

.nav-tab {
    background: transparent;
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-tab.active {
    background: var(--gold);
    color: var(--maroon);
}

.btn-logout {
    margin-right: auto;
    background: #DC3545;
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #C82333;
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

/* ========================================
   Conference Banner
   ======================================== */
.conference-banner {
    background: var(--maroon);
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
}

.banner-title {
    color: var(--white);
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* ========================================
   Conference Info
   ======================================== */
.conference-info {
    margin-bottom: 60px;
}

.info-container {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.date-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-pink);
}

.day-label {
    display: block;
    color: var(--maroon);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.date-line {
    width: 80px;
    height: 2px;
    background: var(--gold);
}

.date-line-small {
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.date-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 48px;
    font-weight: bold;
    color: var(--text-dark);
}

.date-month, .date-day, .date-year {
    padding: 0 10px;
}

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

.conference-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.conference-venue {
    font-size: 16px;
    color: var(--maroon);
    font-weight: 600;
}

/* ========================================
   Speakers Section
   ======================================== */
.speakers-preview {
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    color: var(--maroon);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.speaker-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

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

.speaker-photo {
    width: 100%;
    min-height: 300px;
    background: var(--light-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--maroon);
    overflow: hidden;
}

.speaker-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 400px;
}

.speaker-info {
    padding: 20px;
}

.speaker-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--maroon);
    margin-bottom: 10px;
}

.speaker-topic {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-style: italic;
}

.speaker-time {
    font-size: 14px;
    color: var(--gold-dark);
    font-weight: 600;
    padding: 5px 10px;
    background: var(--light-pink);
    border-radius: 5px;
    display: inline-block;
}

.view-all-btn, .view-all-btn {
    display: block;
    text-align: center;
    background: var(--maroon);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 30px auto;
    max-width: 300px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #6B0000;
    transform: scale(1.05);
}

/* ========================================
   Sessions Section
   ======================================== */
.sessions-preview {
    margin-bottom: 40px;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.session-image-container {
    width: 100%;
    margin-bottom: 15px;
}

.session-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

.session-register-btn-image {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--maroon);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: 0 0 10px 10px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 0;
}

.session-register-btn-image:hover {
    background: #6B0000;
    color: var(--white);
}

.session-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.session-header {
    background: var(--maroon);
    padding: 20px;
    color: var(--white);
}

.session-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: var(--white);
}

.session-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-time-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-pink);
}

.session-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--maroon);
}

.session-time {
    font-size: 14px;
    color: var(--gold-dark);
    font-weight: 600;
}

.session-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.session-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    padding: 8px;
    background: var(--light-pink);
    border-radius: 5px;
}

.session-speaker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--maroon);
    font-weight: 600;
    padding: 8px;
    background: #FFF9E6;
    border-radius: 5px;
}

.session-register-btn {
    display: block;
    text-align: center;
    background: var(--maroon);
    color: var(--white);
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: auto;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 100%;
}

.session-register-btn:hover {
    background: #6B0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ========================================
   Speakers Page
   ======================================== */
.speakers-page {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 36px;
    color: var(--maroon);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.speakers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.speaker-detail-card {
    background: var(--light-pink);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.speaker-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Login Page
   ======================================== */
.login-page {
    background: var(--bg-gradient);
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.login-title {
    font-size: 28px;
    color: var(--maroon);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #DDD;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: var(--white);
    color: var(--text-dark);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B0000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group select:hover {
    border-color: var(--gold);
}

.form-group select option {
    padding: 10px;
    background-color: var(--white);
    color: var(--text-dark);
}

.error-message {
    color: #DC3545;
    margin-bottom: 15px;
    padding: 10px;
    background: #F8D7DA;
    border-radius: 5px;
    display: none;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--maroon);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #6B0000;
    transform: scale(1.02);
}

.login-note {
    text-align: center;
    margin-top: 20px;
}

.login-note a {
    color: var(--maroon);
    text-decoration: none;
    font-weight: 600;
}

.login-note a:hover {
    text-decoration: underline;
}

/* ========================================
   Admin Panel
   ======================================== */
.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-tab {
    display: none;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.admin-tab.active {
    display: block;
}

.tab-title {
    font-size: 32px;
    color: var(--maroon);
    margin-bottom: 30px;
    font-weight: bold;
}

.admin-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.speakers-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.speakers-admin-header .btn-primary {
    width: auto;
    padding: 12px 30px;
}

.speakers-list-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.speaker-admin-card {
    background: var(--light-pink);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.speaker-admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.speaker-admin-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--maroon);
    margin-bottom: 5px;
}

.speaker-admin-topic {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

.speaker-admin-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-edit {
    background: var(--gold);
    color: var(--maroon);
}

.btn-edit:hover {
    background: var(--gold-dark);
}

.btn-delete {
    background: #DC3545;
    color: var(--white);
}

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

.btn-secondary {
    background: #6C757D;
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5A6268;
}

/* ========================================
   Modal Styles
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-light);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

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

.modal-title {
    font-size: 28px;
    color: var(--maroon);
    margin-bottom: 30px;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    width: auto;
    padding: 12px 30px;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: var(--text-light);
}

/* ========================================
   Register Page
   ======================================== */
.register-section {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.register-container {
    width: 100%;
}

.register-form {
    max-width: 100%;
}

.success-message {
    color: #28A745;
    margin-bottom: 15px;
    padding: 10px;
    background: #D4EDDA;
    border-radius: 5px;
    display: none;
}

/* ========================================
   Attendance Section
   ======================================== */
.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.attendance-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.attendance-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.attendance-filters select {
    padding: 10px 40px 10px 12px;
    border: 2px solid #DDD;
    border-radius: 5px;
    font-size: 14px;
    min-width: 150px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B0000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.3s ease;
}

.attendance-filters select:hover {
    border-color: var(--gold);
}

.attendance-filters select:focus {
    outline: none;
    border-color: var(--gold);
}

.attendance-filters select option {
    padding: 10px;
    background-color: var(--white);
    color: var(--text-dark);
}

.attendance-filters .btn-primary {
    width: auto;
    padding: 10px 20px;
}

.attendance-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ========================================
   QR Code Section
   ======================================== */
.qr-code-section {
    margin-top: 30px;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.qr-code-container {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.qr-title {
    font-size: 24px;
    color: var(--maroon);
    margin-bottom: 15px;
    font-weight: bold;
}

.qr-instructions {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.qr-code-image {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto 25px;
    display: inline-block;
    box-shadow: var(--shadow);
}

.qr-code-image img {
    width: 300px;
    height: 300px;
    display: block;
}

.qr-code-container .btn-primary,
.qr-code-container .btn-secondary {
    margin: 10px;
    padding: 12px 25px;
    display: inline-block;
    width: auto;
}

/* ========================================
   QR Scanner Section (Admin)
   ======================================== */
.qr-scanner-section {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.qr-scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.qr-scanner-title {
    font-size: 24px;
    color: var(--maroon);
    font-weight: bold;
}

.qr-scanner-container {
    position: relative;
    margin-bottom: 20px;
}

#qrVideo {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    display: none;
}

#qrCanvas {
    display: none;
}

.qr-scanner-instructions {
    text-align: center;
    padding: 20px;
    background: var(--light-pink);
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-dark);
}

.qr-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    display: none;
}

.qr-result.success {
    background: #D4EDDA;
    border: 2px solid #28A745;
    color: #155724;
}

.qr-result.error {
    background: #F8D7DA;
    border: 2px solid #DC3545;
    color: #721C24;
}

.qr-result.info {
    background: #D1ECF1;
    border: 2px solid #17A2B8;
    color: #0C5460;
}

.qr-result-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.qr-result-details {
    margin-top: 15px;
}

.qr-result-details p {
    margin: 8px 0;
    font-size: 14px;
}

.qr-manual-input {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-pink);
    border-radius: 5px;
}

.qr-manual-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid #DDD;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}

.qr-manual-input button {
    width: 100%;
}

/* ========================================
   Statistics Section
   ======================================== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--maroon);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon), var(--gold));
}

.stat-card:nth-child(1) {
    border-top-color: #8B0000;
}

.stat-card:nth-child(2) {
    border-top-color: #28A745;
}

.stat-card:nth-child(3) {
    border-top-color: #FFC107;
}

.stat-card:nth-child(4) {
    border-top-color: #17A2B8;
}

.stat-card:nth-child(5) {
    border-top-color: #D4AF37;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-content {
    flex: 1;
    width: 100%;
}

.stat-value {
    font-size: 42px;
    font-weight: bold;
    color: var(--maroon);
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-container {
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.chart-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.chart-title {
    font-size: 22px;
    color: var(--maroon);
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-pink);
    position: relative;
}

.chart-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.chart-container canvas {
    max-height: 350px;
    margin-top: 10px;
}

.session-stats-table-container {
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.session-stats-table-container .chart-title {
    margin-bottom: 25px;
}

.stats-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.stats-table thead {
    background: linear-gradient(135deg, var(--maroon) 0%, #6B0000 100%);
    color: var(--white);
}

.stats-table th {
    padding: 18px 20px;
    text-align: right;
    font-weight: bold;
    font-size: 15px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.stats-table th:first-child {
    border-top-right-radius: 10px;
}

.stats-table th:last-child {
    border-top-left-radius: 10px;
}

.stats-table td {
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid #e9ecef;
    text-align: right;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.stats-table tbody tr:nth-child(even) {
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
}

.stats-table tbody tr:hover {
    background: linear-gradient(90deg, #FFF9E6 0%, #ffffff 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-table tbody tr:last-child td:first-child {
    border-bottom-right-radius: 10px;
}

.stats-table tbody tr:last-child td:last-child {
    border-bottom-left-radius: 10px;
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

/* Animation for stat cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }

.chart-container {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.chart-container:nth-child(1) { animation-delay: 0.3s; }
.chart-container:nth-child(2) { animation-delay: 0.4s; }
.chart-container:nth-child(3) { animation-delay: 0.5s; }

.session-stats-table-container {
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .stats-table-wrapper {
        overflow-x: scroll;
    }
    
    .stat-value {
        font-size: 36px;
    }
    
    .stat-icon {
        font-size: 40px;
    }
}

/* ========================================
   Speaker Dashboard Styles
   ======================================== */
.speaker-dashboard {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 30px;
}

.speaker-select-container {
    margin-top: 20px;
}

.speaker-select-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-dark);
}

.speaker-select {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid var(--maroon);
    border-radius: 5px;
    background: var(--white);
}

.speaker-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.speaker-photo-large {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.speaker-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-details {
    flex: 1;
}

.speaker-name-large {
    font-size: 32px;
    color: var(--maroon);
    margin-bottom: 10px;
}

.speaker-topic-large {
    font-size: 20px;
    color: var(--gold-dark);
    margin-bottom: 15px;
}

.speaker-bio {
    color: var(--text-light);
    line-height: 1.8;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: var(--text-light);
}

.speaker-sessions-section {
    margin-top: 40px;
}

.session-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.session-stats span {
    padding: 5px 10px;
    background: var(--light-pink);
    border-radius: 5px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--maroon);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.footer p {
    margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .gold-separator {
        width: 80px;
        height: 3px;
    }

    .sponsor-logo {
        justify-content: center;
    }

    .nav-content {
        justify-content: center;
    }

    .lang-toggle {
        margin-right: 0;
        margin-left: auto;
    }

    .banner-title {
        font-size: 24px;
    }

    .date-content {
        font-size: 36px;
    }

    .speakers-grid,
    .speakers-list {
        grid-template-columns: 1fr;
    }

    .conference-info,
    .speakers-page,
    .admin-tab {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .academy-ar {
        font-size: 18px;
    }

    .academy-en {
        font-size: 16px;
    }

    .logo-shield {
        width: 60px;
        height: 60px;
    }

    .date-content {
        font-size: 28px;
        flex-direction: column;
        gap: 5px;
    }

    .modal-content {
        padding: 20px;
    }
}

