﻿
body {
    background: linear-gradient(135deg, rgba(63, 42, 28, 0.9), rgba(139, 111, 71, 0.8), rgba(27, 59, 111, 0.85)), url('../images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* زر تغيير اللغة */
.lang-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: black;
    border: 2px solid white;
    padding: 8px 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .lang-btn:hover {
        background: white;
        color: #1b2027;
    }

.container {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    width: 100%;
    max-width: 950px;
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    animation: fadeIn 0.8s ease-in-out;
    margin:40px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logos-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 35px;
    gap: 20px;
}

    .logos-container img {
        max-height: 85px;
        object-fit: contain;
    }

h1 {
    color: #1b3b6f;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
}

p.subtitle {
    color: #555;
    font-size: 18px;
    margin-bottom: 40px;
    font-weight: 600;
}

.btn {
    background: linear-gradient(135deg, #f2994a, #f2c94c);
    color: #1b2027;
    border: none;
    padding: 18px 50px;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(242, 153, 74, 0.4);
    display: inline-block;
    text-decoration: none;
    width: 200px;
}   

    .btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px rgba(242, 153, 74, 0.6);
    }

.cancel-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(242, 153, 74, 0.4);
    display: inline-block;
    text-decoration: none;
    margin-top:15px;
    width:200px;
}

    .cancel-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(220, 38, 38, 0.5);
    }
.form-group {
    margin-bottom: 25px;
    text-align: right;
}

    .form-group label {
        display: block;
        margin-bottom: 10px;
        color: #2c3e50;
        font-weight: 700;
        font-size: 18px;
    }

    .form-group input {
        width: 100%;
        padding: 20px;
        border: 2px solid #ccc;
        border-radius: 12px;
        font-size: 18px;
        transition: border-color 0.3s;
        box-sizing: border-box; /* هذا السطر هو الحل الأساسي الذي يمنع الحقول من الخروج عن حدود الفورم */
    }

        .form-group input:focus {
            border-color: #f2994a;
            outline: none;
            box-shadow: 0 0 10px rgba(242, 153, 74, 0.3);
        }

.alert-message {
    background-color: #ffeaea;
    color: #d63031;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid #ff7675;
}

.success-message {
    background-color: #e3fafc;
    color: #0b7285;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: 800;
    border: 1px solid #74c0fc;
}

.timer-warning {
    font-size: 14px;
    color: #e74c3c;
    margin-top: 20px;
    font-weight: 600;
}

.body-content {
    margin-bottom: 10px;
}

.qrcode {
    justify-content: center;
    align-items: center;
    display: flex;
}

#errorMessage {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    text-align: center;
    width: auto;
    max-width: 90%;
}

    #errorMessage #message {
        background: linear-gradient(135deg, #dc2626, #ef4444);
        color: #fff;
        padding: 14px 25px;
        border-radius: 12px;
        font-size: 17px;
        font-weight: 600;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        line-height: 1.6;
        white-space: nowrap;
    }

```css
/* =========================================================
   DASHBOARD CONTAINER
   ========================================================= */
.dashboard-container {
    background: rgba(255, 255, 255, 0.96);
    color: #333;
    width: 92%;
    max-width: 1450px;
    min-height: 85vh;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: fadeIn 0.8s ease-in-out;
    margin: 40px auto;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}


.header-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}


    .header-logos img {
        max-height: 65px;
        max-width: 180px;
        object-fit: contain;
    }


.header-title {
    flex: 1;
    text-align: center;
}


    .header-title h1 {
        color: #1b3b6f;
        font-size: 32px;
        margin: 0 0 5px;
        font-weight: 800;
    }


    .header-title p {
        color: #777;
        font-size: 15px;
        margin: 0;
        font-weight: 600;
    }


.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 28px 0;
    align-items:center;
}


.kpi-card {
    background: #fff;
    border-radius: 17px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 105px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.07);
    border-left: 5px solid #1b3b6f;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


    .kpi-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    }


.kpi-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(27, 59, 111, 0.1);
    color: #1b3b6f;
}


.kpi-content {
    min-width: 0;
}


.kpi-title {
    color: #777;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
}


.kpi-value {
    color: #1b3b6f;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}


/* =========================================================
   KPI COLORS
   ========================================================= */

.completed-card {
    border-left-color: #16a34a;
}


    .completed-card .kpi-icon {
        color: #16a34a;
        background: rgba(22, 163, 74, 0.1);
    }


    .completed-card .kpi-value {
        color: #16a34a;
    }


.progress-card {
    border-left-color: #f2994a;
}


    .progress-card .kpi-icon {
        color: #f2994a;
        background: rgba(242, 153, 74, 0.1);
    }


    .progress-card .kpi-value {
        color: #d97706;
    }


.failed-card {
    border-left-color: #dc2626;
}


    .failed-card .kpi-icon {
        color: #dc2626;
        background: rgba(220, 38, 38, 0.1);
    }


    .failed-card .kpi-value {
        color: #dc2626;
    }


.cancelled-card {
    border-left-color: #64748b;
}


    .cancelled-card .kpi-icon {
        color: #64748b;
        background: rgba(100, 116, 139, 0.1);
    }


    .cancelled-card .kpi-value {
        color: #64748b;
    }


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr;
    gap: 22px;
    margin-bottom: 22px;
}


/* =========================================================
   CARDS
   ========================================================= */

.dashboard-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
}


.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}


    .card-header h2 {
        color: #1b3b6f;
        font-size: 20px;
        margin: 0 0 5px;
        font-weight: 800;
    }


    .card-header p {
        color: #888;
        font-size: 13px;
        margin: 0;
        font-weight: 500;
    }


/* =========================================================
   CHARTS
   ========================================================= */

.status-chart-container {
    height: 310px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


.daily-chart-container {
    height: 310px;
    position: relative;
}


/* =========================================================
   DATE FILTER
   ========================================================= */

.date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}


    .date-filter label {
        color: #1b3b6f;
        font-size: 18px;
    }


    .date-filter input {
        border: 2px solid #e1e5ea;
        border-radius: 10px;
        padding: 9px 12px;
        font-family: inherit;
        font-size: 14px;
        color: #333;
        background: #fff;
        cursor: pointer;
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }


        .date-filter input:focus {
            border-color: #f2994a;
            box-shadow: 0 0 0 3px rgba(242, 153, 74, 0.12);
        }


/* =========================================================
   RECENT SESSIONS
   ========================================================= */

.recent-card {
    margin-top: 0;
}


.refresh-btn {
    border: none;
    background: #1b3b6f;
    color: #fff;
    padding: 9px 17px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s ease;
}


    .refresh-btn:hover {
        background: #15305b;
        transform: translateY(-2px);
    }


/* =========================================================
   TABLE
   ========================================================= */

.table-container {
    width: 100%;
    overflow-x: auto;
}


.sessions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}


    .sessions-table thead {
        background: #f5f7fa;
    }


    .sessions-table th {
        color: #52606d;
        font-size: 13px;
        font-weight: 800;
        padding: 14px 15px;
        text-align: left;
        white-space: nowrap;
        border-bottom: 1px solid #e5e7eb;
    }


    .sessions-table td {
        padding: 15px;
        font-size: 14px;
        color: #4b5563;
        border-bottom: 1px solid #edf0f2;
        white-space: nowrap;
    }


    .sessions-table tbody tr {
        transition: background-color 0.2s ease;
    }


        .sessions-table tbody tr:hover {
            background: #f9fafb;
        }


.session-id {
    color: #1b3b6f;
    font-weight: 700;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    min-width: 90px;
}


    .status-badge.completed {
        color: #15803d;
        background: #dcfce7;
    }


    .status-badge.progress {
        color: #b45309;
        background: #fef3c7;
    }


    .status-badge.failed {
        color: #b91c1c;
        background: #fee2e2;
    }


    .status-badge.cancelled {
        color: #475569;
        background: #e2e8f0;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    color: #999;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    .dashboard-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 800px) {

    .dashboard-container {
        width: 95%;
        padding: 22px;
        margin: 25px auto;
    }


    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }


    .header-title {
        order: 2;
    }


    .header-logos {
        order: 1;
    }


    .dashboard-kpis {
        grid-template-columns: repeat(2, 1fr);
    }


    .card-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .date-filter {
        width: 100%;
        justify-content: flex-end;
    }
}


@media (max-width: 550px) {

    .dashboard-container {
        width: 96%;
        padding: 16px;
        border-radius: 18px;
    }


    .dashboard-kpis {
        grid-template-columns: 1fr;
        gap: 12px;
    }


    .kpi-card {
        min-height: 90px;
    }


    .header-logos img {
        max-height: 50px;
        max-width: 140px;
    }


    .header-title h1 {
        font-size: 26px;
    }


    .dashboard-card {
        padding: 18px;
    }


    .status-chart-container,
    .daily-chart-container {
        height: 260px;
    }


    .lang-btn {
        top: 15px;
        left: 15px;
        padding: 7px 14px;
        font-size: 14px;
    }
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

```
