/* ======================================
          PRIME STREAM CRM
====================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;

    background:#08111f;

    color:#fff;

    overflow:hidden;

}

a{

    text-decoration:none;

    color:inherit;

}

button{

    font-family:'Inter',sans-serif;

    cursor:pointer;

}

input,
select{

    font-family:'Inter',sans-serif;

    outline:none;

}

.app{

    display:flex;

    width:100vw;

    height:100vh;

}

/* ======================================
            SIDEBAR
====================================== */

.sidebar{

    width:270px;

    background:#0c1627;

    border-right:1px solid rgba(255,255,255,.05);

    display:flex;

    flex-direction:column;

    justify-content:space-between;

}

.logo{

    padding:35px;

}

.logo h1{

    font-size:32px;

    font-weight:800;

}

.logo p{

    margin-top:4px;

    color:#8ba0c9;

    letter-spacing:1px;

}

.menu{

    padding:0 18px;

}

.menu a{

    height:54px;

    display:flex;

    align-items:center;

    gap:15px;

    padding:0 18px;

    border-radius:14px;

    margin-bottom:8px;

    color:#b9c7e5;

    transition:.25s;

}

.menu a:hover{

    background:#16233d;

}

.menu a.active{

    background:#2563eb;

    color:#fff;

}

.icon{

    width:22px;

    display:flex;

    justify-content:center;

    font-size:18px;

}

.profile{

    padding:22px;

    display:flex;

    align-items:center;

    gap:14px;

    border-top:1px solid rgba(255,255,255,.05);

}

.avatar{

    width:48px;

    height:48px;

    border-radius:50%;

    background:#2563eb;

    display:flex;

    justify-content:center;

    align-items:center;

    font-weight:700;

    font-size:18px;

}

.profile h4{

    font-size:15px;

}

.profile p{

    font-size:13px;

    color:#91a4cb;

}
/* ======================================
            CONTENT
====================================== */

.content{

    flex:1;

    overflow:auto;

    padding:35px;

    background:#08111f;

}

.page-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

.page-header h1{

    font-size:34px;

    font-weight:700;

}

.page-header p{

    margin-top:6px;

    color:#91a4cb;

}

/* ======================================
            BUTTONS
====================================== */

.header-buttons{

    display:flex;

    gap:15px;

}

.primary-btn{

    height:48px;

    padding:0 28px;

    border:none;

    border-radius:12px;

    background:#2563eb;

    color:white;

    font-weight:600;

    font-size:15px;

    transition:.25s;

}

.primary-btn:hover{

    background:#1f57d6;

}

.secondary-btn{

    height:48px;

    padding:0 28px;

    border:none;

    border-radius:12px;

    background:#16233d;

    color:white;

    font-weight:600;

    transition:.25s;

}

.secondary-btn:hover{

    background:#21304d;

}

/* ======================================
            FILTERS
====================================== */

.filters-card{

    background:#101b30;

    border-radius:18px;

    padding:25px;

    margin-bottom:25px;

}

.filters{

    display:grid;

    grid-template-columns:
    repeat(5,1fr);

    gap:18px;

}

.field{

    display:flex;

    flex-direction:column;

}

.field label{

    margin-bottom:8px;

    color:#8ea4cf;

    font-size:13px;

}

.field input,
.field select{

    height:46px;

    background:#0c1627;

    border:1px solid #23365d;

    color:white;

    border-radius:10px;

    padding:0 14px;

}

.search-box{

    grid-column:1 / 6;

}

.search-box input{

    width:100%;

    height:46px;

    border-radius:10px;

    background:#0c1627;

    border:1px solid #23365d;

    color:white;

    padding:0 16px;

}
/* ======================================
                TABLE
====================================== */

.table-card{

    background:#101b30;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 35px rgba(0,0,0,.25);

}

.table-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:24px 28px;

    border-bottom:1px solid rgba(255,255,255,.05);

    font-size:15px;

}

.table-header b{

    color:#4f8cff;

    font-size:18px;

}

.table-wrapper{

    overflow:auto;

}

.table-wrapper::-webkit-scrollbar{

    height:8px;

}

.table-wrapper::-webkit-scrollbar-thumb{

    background:#263a63;

    border-radius:10px;

}

table{

    width:100%;

    min-width:1600px;

    border-collapse:collapse;

}

thead{

    background:#0c1627;

}

thead th{

    padding:18px;

    text-align:left;

    font-size:13px;

    color:#90a5cf;

    font-weight:600;

    border-bottom:1px solid rgba(255,255,255,.05);

}

tbody tr{

    transition:.2s;

    border-bottom:1px solid rgba(255,255,255,.04);

}

tbody tr:hover{

    background:#16233d;

}

tbody td{

    padding:18px;

    font-size:14px;

    white-space:nowrap;

}

tbody td:first-child{

    color:#7ea8ff;

    font-weight:700;

}

/* ======================================
            STATUS
====================================== */

.badge{

    padding:7px 14px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;

    display:inline-block;

}

.badge.blue{

    background:#2457ff33;

    color:#74a0ff;

}

.badge.green{

    background:#00c85322;

    color:#54dd83;

}

.badge.orange{

    background:#ff980022;

    color:#ffb347;

}

.badge.red{

    background:#ff3b3022;

    color:#ff8d88;

}

.badge.purple{

    background:#8e44ad33;

    color:#d0a4ff;

}

/* ======================================
            PAGINATION
====================================== */

.pagination{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:24px 28px;

    border-top:1px solid rgba(255,255,255,.05);

}

.pagination select{

    background:#0c1627;

    border:1px solid #25365f;

    color:white;

    height:40px;

    border-radius:8px;

    padding:0 10px;

}
/* ======================================
            PREMIUM UI
====================================== */

.sidebar{

    background:linear-gradient(
        180deg,
        #0a1220 0%,
        #0d182b 100%
    );

}

.logo{

    border-bottom:1px solid rgba(255,255,255,.05);

}

.logo h1{

    color:#ffffff;

    font-size:34px;

    letter-spacing:.5px;

}

.logo p{

    color:#6ea3ff;

    font-size:14px;

    text-transform:uppercase;

    letter-spacing:2px;

}

.menu{

    margin-top:25px;

}

.menu a{

    position:relative;

    height:58px;

    border-radius:14px;

    font-size:15px;

    font-weight:500;

}

.menu a::before{

    content:"";

    position:absolute;

    left:-18px;

    width:4px;

    height:0;

    border-radius:20px;

    background:#3b82f6;

    transition:.25s;

}

.menu a:hover{

    background:#15233d;

    color:white;

}

.menu a.active{

    background:#1b2c4c;

    color:white;

}

.menu a.active::before{

    height:40px;

}

.icon{

    width:34px;

    height:34px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:10px;

    background:#13233d;

    font-size:16px;

}

.menu a.active .icon{

    background:#2563eb;

}

.profile{

    background:#0d1627;

}

.avatar{

    background:linear-gradient(
        135deg,
        #2563eb,
        #4f8cff
    );

    box-shadow:0 0 20px rgba(37,99,235,.35);

}

/* ======================================
            PAGE HEADER
====================================== */

.page-header{

    padding-bottom:22px;

    border-bottom:1px solid rgba(255,255,255,.05);

}

.page-header h1{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:34px;

}

.page-header p{

    margin-top:10px;

    font-size:15px;

}

/* ======================================
            CARDS
====================================== */

.filters-card,
.table-card{

    border:1px solid rgba(255,255,255,.05);

    backdrop-filter:blur(18px);

}

/* ======================================
            SCROLLBAR
====================================== */

::-webkit-scrollbar{

    width:10px;

    height:10px;

}

::-webkit-scrollbar-thumb{

    background:#28406d;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#08111f;

}

/* ======================================
            ANIMATION
====================================== */

.filters-card,
.table-card{

    animation:fadeUp .35s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/* ===============================
        MODAL
================================ */

.modal{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    backdrop-filter:blur(6px);

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.modal.show{

    display:flex;

}

.modal-content{

    width:900px;

    max-width:95%;

    max-height:90vh;

    overflow-y:auto;

    background:#17233d;

    border-radius:20px;

}

.modal-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:25px 30px;

    border-bottom:1px solid rgba(255,255,255,.05);

}

.modal-header h2{

    margin:0;

    color:white;

    font-size:28px;

}

.modal-header p{

    margin-top:6px;

    color:#90a5cf;

}

.modal-header button{

    background:none;

    border:none;

    color:white;

    font-size:34px;

    cursor:pointer;

}

.modal-body{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;

    padding:24px 30px;   /* ← отступы по бокам */
}

.form-group{

    display:flex;

    flex-direction:column;

}

.form-group label{

    color:#90a5cf;

    margin-bottom:8px;

}

.form-group input,
.form-group select{

    height:48px;

    border-radius:10px;

    border:1px solid #29406d;

    background:#0d1627;

    color:white;

    padding:0 14px;

}

.modal-footer{

    position:sticky;

    bottom:0;

    background:#17233d;

    padding:20px 30px;

    display:flex;

    justify-content:flex-end;

    gap:15px;

    border-top:1px solid rgba(255,255,255,.08);

}
/* ======================================
        MENU (ONLY REGISTRY)
====================================== */

.menu{

    margin-top:40px;

}

.menu a{

    width:100%;

}

.sidebar{

    justify-content:space-between;

}

.profile{

    margin-top:auto;

}
.actions{
    display:flex;
    justify-content:center;
    gap:8px;
}

.edit-btn,
.delete-btn{
    width:34px;
    height:34px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:16px;
    transition:.2s;
}

.edit-btn{
    background:#2455ff;
    color:#fff;
}

.edit-btn:hover{
    background:#3c6dff;
}

.delete-btn{
    background:#d93d4d;
    color:#fff;
}

.delete-btn:hover{
    background:#f04d5d;
}
.remember{
    display:flex;
    align-items:center;
    gap:10px;
    margin:15px 0 20px;
    color:#9fa8c6;
    font-size:14px;
}

.remember input{
    width:18px;
    height:18px;
    cursor:pointer;
}
.profile{
    position:relative;
    cursor:pointer;
}

.profile-menu{

    position:absolute;

    bottom:95px;

    left:20px;

    width:190px;

    background:#151f37;

    border:1px solid #243458;

    border-radius:14px;

    padding:10px;

    display:none;

    box-shadow:0 15px 40px rgba(0,0,0,.45);

    z-index:9999;

}

.profile-menu.show{

    display:block;

}

.profile-menu button{

    width:100%;

    border:none;

    background:transparent;

    color:white;

    padding:12px;

    border-radius:10px;

    cursor:pointer;

    font-size:15px;

    transition:.2s;

}

.profile-menu button:hover{

    background:#2d6cff;

}
/* ======================================
            LOGIN
====================================== */

.login-screen{

    position:fixed;
    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#08111f;

    z-index:99999;

}

.login-card{

    width:430px;

    background:#111c31;

    border:1px solid rgba(255,255,255,.06);

    border-radius:22px;

    padding:45px;

    box-shadow:0 25px 70px rgba(0,0,0,.45);

}

.login-logo{

    margin-bottom:35px;

}

.login-logo h1{

    font-size:40px;

    font-weight:800;

    color:white;

}

.login-logo span{

    display:block;

    margin-top:5px;

    color:#5f8dff;

    letter-spacing:2px;

    font-size:13px;

}

.login-card h2{

    font-size:28px;

    margin-bottom:8px;

}

.login-card p{

    color:#8fa4cb;

    margin-bottom:20px;

}

.login-card input{

    width:100%;

    height:52px;

    margin-bottom:18px;

    border-radius:12px;

    border:1px solid #24375d;

    background:#0d1627;

    color:white;

    padding:0 18px;

    font-size:15px;

}

.login-card input::placeholder{

    color:#7083a9;

}

#loginBtn{

    width:100%;

    height:52px;

    margin-top:20px;

    border:none;

    border-radius:12px;

    background:#2563eb;

    color:white;

    font-size:16px;

    font-weight:600;

    transition:.25s;

}

#loginBtn:hover{

    background:#1f57d6;

}

#loginError{

    margin-top:15px;

    color:#ff6b6b;

    text-align:center;

    min-height:20px;

}

.remember{

    display:flex;

    align-items:center;

    gap:10px;

    margin:8px 0 18px;

    color:#8fa4cb;

    font-size:14px;

}

.remember input{

    width:18px;

    height:18px;

}
.modal textarea{

    width:100%;

    background:#0d1627;

    border:1px solid #29406d;

    border-radius:10px;

    color:white;

    padding:14px;

    resize:vertical;

    min-height:120px;

    font-family:'Inter',sans-serif;

}

body{
    visibility:hidden;
}

body.loaded{
    visibility:visible;
}

/* ===========================
      SUMMARY DASHBOARD
=========================== */

.stats-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

gap:20px;

margin-bottom:30px;

}

.stat-card{

background:#13284d;
border:1px solid #24467c;

border-radius:16px;

padding:25px;

box-shadow:0 10px 25px rgba(0,0,0,.25);

transition:.3s;

}

.stat-card:hover{

transform:translateY(-5px);

border-color:#2f63ad;

}

.stat-card h3{

margin-bottom:20px;

font-size:20px;

color:#ffffff;

}

.stat-line{

display:flex;

justify-content:space-between;

padding:12px 0;

border-bottom:1px solid rgba(255,255,255,.08);

font-size:15px;

}

.stat-line:last-child{

border-bottom:none;

}

.stat-line span{

color:#c7d6ff;

}

.stat-line b{

font-size:20px;

color:#ff9f1c;

font-weight:700;

}

.charts-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(350px,1fr));

gap:25px;

margin:30px 0;

}

.chart-card{

background:#13284d;
border:1px solid #24467c;

padding:25px;

border-radius:18px;

box-shadow:0 10px 25px rgba(0,0,0,.25);

}

.chart-card h3{

margin-bottom:20px;

color:#ffffff;

}

canvas{

max-height:300px;

}