*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter, Arial, Helvetica, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.24), transparent 30%),
        radial-gradient(circle at bottom right, rgba(6,182,212,0.20), transparent 32%),
        #020817;
    color:white;
    min-height:100vh;
    overflow-x:hidden;
}

a{
    color:inherit;
}

::selection{
    background:#2563eb;
    color:white;
}

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#020817;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(#2563eb,#06b6d4);
    border-radius:999px;
}

/* LOGIN */

.login-body{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px;
    position:relative;
    overflow:hidden;
}

.login-body::before,
.login-body::after{
    content:"";
    position:absolute;
    border-radius:50%;
    z-index:0;
    filter:blur(2px);
}

.login-body::before{
    width:900px;
    height:900px;
    background:radial-gradient(circle,#2563eb26 0%,transparent 70%);
    top:-320px;
    left:-320px;
}

.login-body::after{
    width:800px;
    height:800px;
    background:radial-gradient(circle,#06b6d426 0%,transparent 70%);
    bottom:-280px;
    right:-260px;
}

.login-container{
    width:1400px;
    max-width:100%;
    display:grid;
    grid-template-columns:1fr 460px;
    gap:60px;
    align-items:center;
    position:relative;
    z-index:2;
}

.login-left{
    padding-right:40px;
}

.brand-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 20px;
    border-radius:999px;
    background:rgba(15,23,42,0.78);
    border:1px solid rgba(59,130,246,0.45);
    margin-bottom:30px;
    color:#60a5fa;
    font-weight:900;
    backdrop-filter:blur(14px);
    box-shadow:0 0 34px rgba(37,99,235,0.16);
    letter-spacing:0.5px;
}

.brand-badge::before{
    content:"";
    width:10px;
    height:10px;
    border-radius:50%;
    background:#06b6d4;
    box-shadow:0 0 14px #06b6d4;
}

.login-left h1{
    font-size:82px;
    line-height:0.95;
    margin-bottom:30px;
    font-weight:1000;
    letter-spacing:-3px;
}

.gradient-text{
    background:linear-gradient(90deg,#3b82f6,#06b6d4);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.login-left p{
    color:#94a3b8;
    font-size:22px;
    line-height:1.8;
    max-width:760px;
}

.feature-box{
    margin-top:48px;
    display:grid;
    gap:18px;
}

.feature-item{
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px 22px;
    border-radius:20px;
    background:rgba(15,23,42,0.68);
    border:1px solid rgba(59,130,246,0.18);
    backdrop-filter:blur(16px);
    transition:0.22s;
}

.feature-item:hover{
    transform:translateX(6px);
    border-color:rgba(6,182,212,0.45);
}

.feature-icon{
    width:52px;
    height:52px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#2563eb,#06b6d4);
    font-size:20px;
    font-weight:1000;
    box-shadow:0 12px 28px rgba(37,99,235,0.35);
}

.feature-text{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.feature-title{
    font-size:16px;
    font-weight:900;
}

.feature-subtitle{
    color:#94a3b8;
    font-size:14px;
}

/* LOGIN CARD */

.login-card{
    position:relative;
    background:rgba(15,23,42,0.84);
    border:1px solid rgba(59,130,246,0.25);
    border-radius:32px;
    padding:42px;
    backdrop-filter:blur(20px);
    box-shadow:
        0 0 70px rgba(37,99,235,0.23),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.login-card::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:32px;
    padding:1px;
    background:linear-gradient(135deg,rgba(59,130,246,0.42),rgba(6,182,212,0.26),transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    pointer-events:none;
}

.login-card h2{
    font-size:38px;
    margin-bottom:10px;
    font-weight:1000;
}

.login-subtitle{
    color:#94a3b8;
    margin-bottom:34px;
    line-height:1.6;
}

.login-card form{
    display:flex;
    flex-direction:column;
}

.login-card label{
    margin-bottom:10px;
    margin-top:18px;
    color:#dbeafe;
    font-size:14px;
    font-weight:800;
}

.login-card input{
    background:#020617;
    border:1px solid #334155;
    border-radius:16px;
    padding:18px;
    color:white;
    font-size:16px;
    transition:0.2s;
}

.login-card input:focus{
    outline:none;
    border:1px solid #3b82f6;
    box-shadow:0 0 0 4px rgba(59,130,246,0.18);
    transform:translateY(-1px);
}

.login-card button{
    margin-top:34px;
    padding:20px;
    border:none;
    border-radius:18px;
    background:linear-gradient(90deg,#2563eb,#06b6d4);
    color:white;
    font-size:16px;
    font-weight:1000;
    cursor:pointer;
    transition:0.25s;
    box-shadow:0 12px 30px rgba(37,99,235,0.35);
}

.login-card button:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 40px rgba(37,99,235,0.45);
}

.error-box{
    background:rgba(127,29,29,0.45);
    border:1px solid #ef4444;
    padding:16px;
    border-radius:16px;
    margin-bottom:20px;
    color:#fecaca;
    font-weight:800;
}

.security-box{
    margin-top:26px;
    padding:16px;
    border-radius:18px;
    background:#020617;
    border:1px solid #1e293b;
    color:#94a3b8;
    font-size:13px;
    line-height:1.7;
}

/* DASHBOARD */

.dashboard-body{
    padding:34px;
}

.topbar{
    position:sticky;
    top:18px;
    z-index:20;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:34px;
    gap:20px;
    padding:18px;
    border-radius:28px;
    background:rgba(2,8,23,0.72);
    border:1px solid rgba(59,130,246,0.18);
    backdrop-filter:blur(22px);
    box-shadow:0 20px 60px rgba(2,8,23,0.35);
}

.logo-text{
    font-size:38px;
    font-weight:1000;
    letter-spacing:-1px;
}

.subtitle{
    color:#94a3b8;
    margin-top:6px;
    font-size:15px;
}

.user-box{
    background:rgba(15,23,42,0.82);
    border:1px solid rgba(59,130,246,0.30);
    padding:14px 18px;
    border-radius:20px;
    display:flex;
    align-items:center;
    gap:14px;
    backdrop-filter:blur(12px);
}

.user-avatar{
    width:44px;
    height:44px;
    border-radius:14px;
    background:linear-gradient(135deg,#2563eb,#06b6d4);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:1000;
    box-shadow:0 12px 28px rgba(37,99,235,0.35);
}

.dashboard-container{
    display:flex;
    flex-direction:column;
    gap:30px;
}

/* STATS */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.stat-card{
    position:relative;
    overflow:hidden;
    background:rgba(15,23,42,0.74);
    border:1px solid rgba(59,130,246,0.22);
    border-radius:28px;
    padding:30px;
    backdrop-filter:blur(16px);
    transition:0.25s;
    box-shadow:0 20px 55px rgba(2,8,23,0.24);
}

.stat-card:hover{
    transform:translateY(-4px);
    border:1px solid rgba(6,182,212,0.55);
}

.stat-card::before{
    content:"";
    position:absolute;
    width:170px;
    height:170px;
    border-radius:50%;
    background:rgba(37,99,235,0.13);
    top:-85px;
    right:-85px;
}

.stat-card h3{
    color:#94a3b8;
    margin-bottom:20px;
    font-size:14px;
    font-weight:900;
    letter-spacing:0.6px;
}

.stat-number{
    font-size:56px;
    font-weight:1000;
    line-height:1;
}

.stat-desc{
    margin-top:16px;
    color:#64748b;
    font-size:14px;
}

.blue{ color:#60a5fa; }
.green{ color:#10b981; }
.orange{ color:#f59e0b; }
.red{ color:#ef4444; }

/* CARDS / TABLE */

.table-card{
    background:rgba(15,23,42,0.78);
    border:1px solid rgba(59,130,246,0.24);
    border-radius:30px;
    overflow:hidden;
    backdrop-filter:blur(18px);
    box-shadow:0 24px 70px rgba(2,8,23,0.26);
}

.table-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:28px;
    border-bottom:1px solid rgba(30,41,59,0.72);
}

.table-title{
    font-size:26px;
    font-weight:1000;
}

.table-subtitle{
    color:#94a3b8;
    margin-top:6px;
}

.table-actions{
    display:flex;
    gap:12px;
}

.top-btn{
    padding:14px 18px;
    border-radius:14px;
    background:#111827;
    color:white;
    font-weight:900;
    cursor:pointer;
    transition:0.2s;
    border:1px solid #1e3a8a;
    text-align:center;
}

.top-btn:hover{
    background:#172554;
    transform:translateY(-1px);
}

.primary-btn{
    background:linear-gradient(90deg,#2563eb,#06b6d4);
    border:none;
    box-shadow:0 12px 26px rgba(37,99,235,0.25);
}

.primary-btn:hover{
    opacity:0.95;
}

.phone-link{
    color:#60a5fa;
    text-decoration:none;
    font-weight:900;
}

.phone-link:hover{
    color:#06b6d4;
}

table{
    width:100%;
    border-collapse:collapse;
}

th{
    background:#020617;
    text-align:left;
    padding:20px;
    color:#94a3b8;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:1px;
    white-space:nowrap;
}

td{
    padding:22px 20px;
    border-top:1px solid rgba(30,41,59,0.72);
    font-size:14px;
    vertical-align:middle;
}

tr{
    transition:0.18s;
}

tr:hover{
    background:rgba(37,99,235,0.08);
}

.status{
    padding:10px 14px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    font-weight:1000;
    white-space:nowrap;
}

.status::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:currentColor;
    box-shadow:0 0 10px currentColor;
}

.status-programat{
    background:rgba(37,99,235,0.15);
    color:#60a5fa;
}

.status-confirmat{
    background:rgba(16,185,129,0.15);
    color:#10b981;
}

.status-finalizat{
    background:rgba(6,182,212,0.15);
    color:#06b6d4;
}

.status-anulat{
    background:rgba(239,68,68,0.15);
    color:#ef4444;
}

/* FORM */

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:26px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.form-group label{
    color:#cbd5e1;
    font-size:14px;
    font-weight:800;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    background:#020617;
    border:1px solid #334155;
    border-radius:16px;
    padding:16px;
    color:white;
    font-size:15px;
    transition:0.18s;
}

.form-group textarea{
    resize:vertical;
    min-height:120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    outline:none;
    border:1px solid #3b82f6;
    box-shadow:0 0 0 4px rgba(59,130,246,0.16);
    background:#030b1d;
}

.form-group input::placeholder,
.form-group textarea::placeholder{
    color:#64748b;
}

/* MOBILE APPOINTMENT CARDS */

.mobile-cards{
    display:none;
}

.mobile-card{
    background:rgba(15,23,42,0.84);
    border:1px solid rgba(59,130,246,0.30);
    border-radius:24px;
    padding:20px;
    backdrop-filter:blur(16px);
    box-shadow:0 18px 44px rgba(2,8,23,0.38);
}

.mobile-card-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    margin-bottom:18px;
}

.mobile-name{
    font-size:20px;
    font-weight:1000;
}

.mobile-service{
    color:#94a3b8;
    font-size:13px;
    margin-top:5px;
}

.mobile-info-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.mobile-info{
    background:#020617;
    border:1px solid #1e293b;
    border-radius:16px;
    padding:14px;
}

.mobile-info span{
    display:block;
    color:#64748b;
    font-size:12px;
    font-weight:900;
    margin-bottom:6px;
    text-transform:uppercase;
}

.mobile-info strong{
    font-size:14px;
    color:#e5eefb;
    word-break:break-word;
}

.mobile-actions{
    display:flex;
    gap:10px;
    margin-top:18px;
}

/* RESPONSIVE */

@media(max-width:1200px){
    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .login-container{
        grid-template-columns:1fr;
    }

    .login-left{
        display:none;
    }
}

@media(max-width:900px){
    .desktop-table{
        display:none;
    }

    .mobile-cards{
        display:grid;
        gap:18px;
    }

    .dashboard-body{
        padding:16px;
    }

    .topbar{
        position:relative;
        top:auto;
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
        margin-bottom:20px;
    }

    .user-box{
        width:100%;
        justify-content:space-between;
    }

    .stats-grid{
        grid-template-columns:1fr;
        gap:14px;
    }

    .stat-card{
        padding:22px;
        border-radius:22px;
    }

    .table-card{
        border-radius:22px;
    }

    .table-header{
        padding:22px;
        flex-direction:column;
        align-items:flex-start;
    }

    .table-actions{
        width:100%;
    }

    .table-actions .top-btn{
        flex:1;
    }

    .form-grid{
        grid-template-columns:1fr;
        margin-top:18px;
        gap:16px;
    }

    .top-btn{
        min-height:46px;
    }
}

@media(max-width:600px){
    .login-body{
        padding:16px;
        align-items:flex-start;
        padding-top:40px;
    }

    .login-card{
        padding:28px;
        border-radius:26px;
    }

    .login-card h2{
        font-size:30px;
    }

    .brand-badge{
        font-size:11px;
        padding:10px 14px;
        margin-bottom:18px;
    }

    .dashboard-body{
        padding:12px;
    }

    .logo-text{
        font-size:30px;
    }

    .subtitle{
        font-size:13px;
        line-height:1.5;
    }

    .user-box{
        padding:12px;
        border-radius:16px;
    }

    .user-avatar{
        width:40px;
        height:40px;
    }

    .stat-number{
        font-size:38px;
    }

    .table-title{
        font-size:22px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea{
        font-size:16px;
        padding:15px;
    }

    .mobile-card{
        padding:16px;
        border-radius:20px;
    }

    .mobile-card-top{
        flex-direction:column;
    }

    .mobile-info-grid{
        grid-template-columns:1fr;
    }

    .mobile-actions{
        flex-direction:column;
    }

    .mobile-actions .top-btn{
        width:100%;
    }
}