﻿@import url('https://fonts.googleapis.com/css2?family=Beiruti:wght@200..900&display=swap');
:root {
      --brand: #E52427; /* ?????? ??????? */
    --brand-600: #E52427;
    --muted: #6b7280;
    --bg: #f7f8fb;
    --card: #ffffff;
    --danger: #dc3545;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --brand-red: #E52427;
    --brand-gold: #D9A300;
    --brand-black: #111111;
    --brand-gray: #6b7280;
    --bg: #ffffff;
}
 
body {
    font-family: "Beiruti", sans-serif;
    background: #fff;
    color: #111;
}

a {
    color: var(--brand-red);
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

.navbar {
    display: flex;
    align-items: center;
    padding: 12px 40px;
    border-bottom: 1px solid #eee;
    background: #f8eaea;
    position: sticky;
    top: 0;
    z-index: 5;
    border-radius: 20px;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-black);
    width:30%;
}

    .brand img {
        height: 60px;
        width: auto
    }
.navlinks  {
     width:40%;
     display: flex;
     justify-content: center;
     align-items: center;
}
.cta  {
   margin-right: 300px;
     display: flex;
     justify-content: flex-end;
}
.navlinks a {
    margin: 0 .4rem;
    color: var(--brand-red);
    opacity: .85;
    margin-right: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
}

    .navlinks a.active, .navlinks a:hover {
        color: var(--brand-red);
        opacity: 1
    }

.container {
    max-width: 100%;
    margin: 22px 70px;
    padding: 0 16px
}

.btn {
    display: inline-block;
    padding: .55rem .9rem;
    border-radius: .5rem;
    border: 1px solid transparent;
    cursor: pointer
}

.btn-primary {
    background: var(--brand-red);
    color: #fff
}

.btn-outline {
    border-color: var(--brand-red);
    color: var(--brand-red);
    background: #fff
}

.btn:hover {
    filter: brightness(.96)
}

.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: .75rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    margin-bottom: 1rem
}

    .card h2 {
        margin: .2rem 0 1rem
    }

.input {
    width: 90%;
    padding: .6rem .7rem;
    border: 1px solid #ddd;
    border-radius: .55rem;
    margin: 5px 20px;
}
 td{
    text-align: center;
 }
.label {
    display: block;
    font-size: .95rem;
    margin: .4rem 0 .3rem
}

.grid {
    display: grid;
    gap: 12px
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.table {
    width: 100%;
    border-collapse: collapse
}

    .table th, .table td {
        padding: .6rem .5rem;
        border-bottom: 1px solid #eee
    }

.badge {
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: .5rem;
    font-size: .8rem;
    border: 1px solid #eee
}

.badge-red {
    background: #fff5f5;
    color: var(--brand-red);
    border-color: #ffd7d7
}

.badge-gold {
    background: #fffbeb;
    color: #9a6b00;
    border-color: #fde68a
}

.muted {
    color: var(--brand-gray);
    font-size: .9rem
}

header .cta {
    margin-left: auto
}

.footer {
    border-top: 1px solid #eee;
    margin-top: 2rem;
    padding: 1rem;
    color: #777;
    font-size: .9rem
}
 

body.auth {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 600px at 80% -10%, #e8f0ff 0, transparent 60%), var(--bg);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.auth-wrapper {
    width: min(900px, 96vw);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
    align-items: stretch;
    padding: 18px;
}

@media (max-width: 820px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

.brand-card {
    background: linear-gradient(135deg, var(--brand), var(--brand-600));
    border-radius: var(--radius);
    color: #fff;
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .brand-card .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 22px;
    }

        .brand-card .logo img {
            width: 40px;
            height: 40px;
            object-fit: contain;
            filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
        }

    .brand-card h1 {
        margin: 0 0 10px;
        font-size: 28px;
        font-weight: 700;
    }

    .brand-card p {
        margin: 0;
        opacity: .95;
    }

    .brand-card .hint {
        position: absolute;
        inset: auto 16px 16px 16px;
        opacity: .85;
        font-size: 13px;
    }

.auth-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

    .auth-card h2 {
        margin: 0 0 16px;
        font-weight: 700;
        font-size: 22px;
        color: #111827;
    }

    .auth-card .sub {
        color: var(--muted);
        margin-bottom: 18px;
    }

.form-grid {
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    gap: 6px;
}

.label {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

.input {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    transition: border .15s, box-shadow .15s;
    background: #fff;
    color: #111827;
}

    .input:focus {
        outline: 0;
        border-color: var(--brand);
        box-shadow: 0 0 0 4px rgba(15,93,184,.12);
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    border: 0;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--brand-600);
    }

.btn-ghost {
    background: transparent;
    color: var(--brand);
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.helper {
    color: var(--muted);
    font-size: 13px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

    .form-check input[type=checkbox] {
        width: 16px;
        height: 16px;
    }

.text-danger {
    color: var(--danger);
    font-size: 13px;
}

.validation-summary {
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.sep {
    height: 1px;
    background: #eef0f3;
    margin: 14px 0;
}

.small {
    font-size: 13px;
    color: var(--muted);
}

.link {
    color: var(--brand);
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }
     .phonemenu{
        display: none;
    }
    .chart-box {
  position: relative;
  width: 100%;
  height: 320px;   /* اضبطها 240-380 حسب ذوقك */
}
@media (max-width: 640px){
  .chart-box { height: 260px; }
}

.navbar-nav  {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}
.navbar-nav  li{
     text-align: center;
}
 .alert-success{
    background-color: #b91c1c;
    color: #ddd;
    width: 100%;
    align-self: center;
    font-size: 1.3rem;
    padding: 10px;
    border-radius: 10px;
    margin: 0;
    text-align: center;

 }
.text-end{
    display: flex;
    justify-content: space-around;
}
.w-100{
    margin-top: 15px;
}
   .navlinks a{
 
        white-space: none;

    }



@media (max-width:700px) {
    .cp-nav {
        gap: 6px
    }
     .alert-success{
 
    width: 95%;
 

 }
 .w-100{
    width: 100%;
 
}
.form-floating  {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
}
.navbar-nav{
    display: flex;
    flex-direction: column;
}

    .cp-phone {
        display: none;
    }
    .brand span{
        display: none;
    }

    .cta{
        margin: 0;
        font-size: 1rem;
    }
    .navbar{
        display: flex;
        justify-content: space-around;
    }
    .container{
        margin: 10px 2px;
        padding: 0;
    }
    .btn{
        font-size: .8rem;
    }
    .table-responsive{
        width: 100%;
        overflow: auto;
    }
     .table-responsive td{
        white-space:nowrap;
     }
     .grid-3 ,.grid-2 {
       grid-template-columns: repeat(1, minmax(0, 1fr))
     }
     .input{
        width: 80%;
     }
     .dbtn{
        display: flex;
        justify-content: flex-start;
        overflow-y: auto;
     }
     .dbtn .btn{
        white-space: nowrap;
     }
     .cta  {
     width:40%;
     display: flex;
     justify-content: flex-end;
    }
    .phonemenu{
        display: inline;
        font-size: 1.5rem;
        font-weight: 900;
    }
    .clintsbtn{
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .clintsbtn .btn{
        margin-left: 15px
    }
    .row-between{
        flex-direction: column;
    }
    .navlinks{
        display: none;
        position: fixed;
        top: 100px;
        margin: 0px  10px ;
        border-radius: 10px;
        width: 0%;
        height: 100vh;
        background-color: #ffd7d7;
        transition: width 0.3s ease-in-out 0.3s;
        white-space: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content:center;
    }
   .navlinks a{
        color: #fff;
        height: 30px;
        background-color: #e41010;
        margin: 10px;
        width: 70%;
        padding: 10px 20px;
        border-radius: 10px 0;
        border: #fff 2px solid;
        text-align: center;
        white-space: none;
 
    }
    .loginn{
        height: 170px;
        padding: 0;
        width: 100%;
        align-self: center;
        margin-left: 100px;
    }
    .navlinks .active{
        background-color: #ddd;
    }
    .navbar-nav{
        width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin: 0;
   
    }

    .navbar-nav li a{
    width: 100%;
    background-color: inherit;
    color: #dc3545;
    border-radius: 0;
    border: none;
}

}
