@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


:root{

    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --bg:#f1f5f9;
    --dark:#0f172a;
    --text:#1e293b;
    --muted:#64748b;

}



*{

    font-family:'Inter',sans-serif;

    box-sizing:border-box;

}



body{

    margin:0;

    background:var(--bg);

    color:var(--text);

}



/* ==================================================
                VISITOR PAGE
================================================== */


.visitor-wrapper{

    min-height:100vh;

    display:flex;

    align-items:center;

    padding:40px 15px;

    background:
    linear-gradient(
        135deg,
        #eff6ff,
        #e2e8f0
    );

}



.visitor-card{

    background:white;

    border-radius:28px;

    overflow:hidden;

    box-shadow:
    0 25px 60px rgba(15,23,42,.15);

}



/* HEADER */


.visitor-header{

    background:
    linear-gradient(
        135deg,
        #1e40af,
        #2563eb,
        #3b82f6
    );

    color:white;

    text-align:center;

    padding:45px 25px;

}



.logo-wrapper{

    width:120px;

    height:120px;

    display:flex;

    justify-content:center;

    align-items:center;

    margin:auto;

    background:white;

    border-radius:30px;

    box-shadow:
    0 15px 35px rgba(0,0,0,.18);

}



.mmi-logo{

    width:90px;

    height:90px;

    object-fit:contain;

}



.visitor-header h2{

    margin-top:25px;

    font-size:28px;

    font-weight:700;

}



.visitor-header p{

    opacity:.9;

}



.security-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 18px;

    border-radius:50px;

    margin-top:15px;

    font-size:13px;

    background:
    rgba(255,255,255,.18);

}



/* FORM */


.visitor-body{

    padding:35px;

}



.input-group-custom{

    margin-bottom:20px;

}



.input-group-custom label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:#334155;

}



.input-group-custom i{

    color:var(--primary);

    margin-right:6px;

}



.form-control{

    height:48px;

    border-radius:12px;

    border:1px solid #cbd5e1;

}



textarea.form-control{

    height:auto;

}



.form-control:focus{

    border-color:var(--primary);

    box-shadow:
    0 0 0 .25rem rgba(37,99,235,.15);

}



/* BUTTON */


.btn-submit{

    width:100%;

    height:52px;

    border:none;

    border-radius:14px;

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:white;

    font-size:16px;

    font-weight:600;

    transition:.3s;

}



.btn-submit:hover{

    transform:translateY(-2px);

}



/* FOOTER */


.visitor-footer{

    text-align:center;

    margin-top:25px;

    color:var(--muted);

    font-size:14px;

}



.visitor-footer a{

    color:var(--primary);

    text-decoration:none;

    font-weight:600;

}



/* ==================================================
                GLOBAL CARD
================================================== */


.card{

    border:none;

    border-radius:20px;

    box-shadow:

    0 15px 35px rgba(15,23,42,.10);

}



/* ==================================================
                LOGIN
================================================== */


.login-card{

    margin-top:90px;

    border-radius:25px;

    overflow:hidden;

}



.card-header{

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #1e40af
    );

    color:white;

    border:none;

    padding:35px 20px;

}



.logo{

    width:90px;

    height:90px;

    object-fit:contain;

    background:white;

    border-radius:18px;

    padding:10px;

}



.btn-primary{

    background:var(--primary);

    border:none;

    border-radius:12px;

    font-weight:600;

}



.btn-primary:hover{

    background:var(--primary-dark);

}



/* ==================================================
                ADMIN LAYOUT
================================================== */


.admin-layout{

    min-height:100vh;

}



.admin-content{

    display:flex;

}



/* ==================================================
                NAVBAR
================================================== */


.admin-navbar{

    height:65px;

    background:

    linear-gradient(
        135deg,
        #1e40af,
        #2563eb
    );

    padding:0 25px;

    display:flex;

    align-items:center;

}



.navbar-brand{

    color:white!important;

    font-weight:700;

    display:flex;

    align-items:center;

    gap:12px;

    font-size:18px;

}



/* LOGO NAVBAR */


.navbar-logo{

    width:42px;

    height:42px;

    object-fit:contain;

    background:white;

    border-radius:12px;

    padding:5px;

    box-shadow:

    0 5px 15px rgba(0,0,0,.15);

}



.admin-user{

    color:white;

    display:flex;

    align-items:center;

}



/* MOBILE BUTTON */


.sidebar-toggle{

    display:none;

    background:none;

    border:none;

    color:white;

    font-size:25px;

}



/* ==================================================
                SIDEBAR
================================================== */


.sidebar{

    width:250px;

    min-height:calc(100vh - 65px);

    background:#0f172a;

    color:white;

    transition:.3s;

}



.sidebar-brand{

    padding:25px;

    font-size:20px;

    font-weight:700;

    border-bottom:

    1px solid rgba(255,255,255,.1);

}



.sidebar-menu{

    list-style:none;

    padding:20px 15px;

    margin:0;

}



.sidebar-menu li{

    margin-bottom:10px;

}



.sidebar-menu a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:12px 15px;

    border-radius:12px;

    color:#cbd5e1;

    text-decoration:none;

    transition:.25s;

}



.sidebar-menu a:hover{

    background:#1e293b;

    color:white;

}



.logout-link{

    color:#f87171!important;

}



/* ==================================================
                DASHBOARD
================================================== */


.dashboard-main{

    flex:1;

    padding:30px;

}



.dashboard-title h2{

    font-weight:700;

}



.dashboard-title p{

    color:var(--muted);

}



.stat-card{

    background:white;

    border-radius:20px;

    padding:25px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    box-shadow:

    0 10px 30px rgba(0,0,0,.08);

}



.stat-card span{

    color:var(--muted);

}



.stat-card h3{

    font-size:32px;

    font-weight:700;

    margin:5px 0 0;

}



.stat-card i{

    font-size:40px;

    color:var(--primary);

}



/* TABLE */


.table{

    margin-bottom:0;

}



.table thead th{

    font-weight:600;

    white-space:nowrap;

}



.table tbody tr:hover{

    background:#f8fafc;

}



/* BUTTON */


.btn-danger{

    border-radius:10px;

}



.btn-success{

    border-radius:12px;

    font-weight:600;

}



/* ALERT */


.alert{

    border-radius:12px;

}



/* ==================================================
                RESPONSIVE
================================================== */


@media(max-width:992px){


    .sidebar-toggle{

        display:block;

    }



    .sidebar{

        position:fixed;

        left:-260px;

        top:65px;

        z-index:999;

        height:100%;

    }



    .sidebar.active{

        left:0;

    }



    .dashboard-main{

        padding:20px;

    }


}



@media(max-width:768px){


    .navbar-brand span{

        display:none;

    }



    .navbar-logo{

        width:38px;

        height:38px;

    }



    .admin-user{

        font-size:14px;

    }



    .visitor-header{

        padding:35px 20px;

    }



    .visitor-header h2{

        font-size:22px;

    }



    .visitor-body{

        padding:25px;

    }



    .dashboard-main{

        padding:15px;

    }



    .stat-card h3{

        font-size:25px;

    }


}



@media(max-width:576px){


    .logo-wrapper{

        width:100px;

        height:100px;

    }



    .mmi-logo{

        width:75px;

        height:75px;

    }



    .visitor-card{

        border-radius:20px;

    }



    .table{

        font-size:13px;

    }



    .navbar-logo{

        width:35px;

        height:35px;

    }


}