* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    min-height: 100vh;
    background: #f5f6fa;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.login-branding {
    flex: 1;
    background: linear-gradient(
        135deg,
        #D62828,
        #F77F00
    );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;
}

.branding-content {
    max-width: 500px;
}

.welcome-card{
    margin-top:25px;

    background:linear-gradient(
        135deg,
        #ef4444,
        #f97316
    );

    color:white;

    border-radius:20px;

    padding:30px;
}

.logo-circle {
    width: 90px;
    height: 90px;

    border-radius: 50%;

    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 40px;

    margin-bottom: 20px;
}

.logo-area h1 {
    font-size: 40px;
    font-weight: bold;
}

.logo-area span {
    opacity: .9;
}

.branding-text {
    margin-top: 40px;
}

.branding-text h2 {
    margin-bottom: 15px;
}

.branding-text p {
    line-height: 1.8;
}

.login-form-area {
    width: 500px;

    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;
}

.login-card{
    width:100%;
    max-width:450px;

    background:white;

    border-radius:24px;

    padding:45px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.08);

    transition:.3s;
}

.login-card:hover{
    transform:translateY(-3px);
}

@keyframes fadeInUp {

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.login-card{
    animation:fadeInUp .8s ease;
}

.login-header{
    text-align:center;
    margin-bottom:30px;
}

.login-header h2{
    font-size:28px;
    color:#212529;
    margin-bottom:10px;
}

.login-header p{
    color:#6c757d;
    font-size:14px;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.form-control{
    width:100%;
    height:50px;

    border:1px solid #ddd;

    border-radius:12px;

    padding:0 15px;

    outline:none;

    transition:.3s;
}

.form-control:focus{

    border-color:#D62828;

    box-shadow:
        0 0 0 4px rgba(214,40,40,.15);

}

.btn-login{
    width:100%;
    height:50px;

    border:none;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            #D62828,
            #F77F00
        );

    font-weight:700;

    letter-spacing:.5px;

    color:white;

    cursor:pointer;

    transition:.3s;
}

.btn-login:hover{
    background:#b71c1c;
    transform:translateY(-2px);
}

.remember-wrapper{
    margin-bottom:20px;
}

.remember-me{
    display:flex;
    align-items:center;
    gap:8px;

    cursor:pointer;
}

.text-danger{
    color:#dc3545;
    font-size:12px;
}

.login-branding{
    position: relative;
    overflow: hidden;
}

.login-branding::before{
    content:'';

    position:absolute;

    width:500px;
    height:500px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    top:-200px;
    right:-150px;
}

.login-branding::after{
    content:'';

    position:absolute;

    width:350px;
    height:350px;

    border-radius:50%;

    background:rgba(255,255,255,.05);

    bottom:-100px;
    left:-100px;
}

.alert-danger{

    background:#fff2f2;

    border:1px solid #ffcaca;

    color:#c0392b;

    padding:12px;

    border-radius:12px;

    margin-bottom:20px;

}

.alert-success{

    background:#ecfff2;

    border:1px solid #bdf0c9;

    color:#27ae60;

    padding:12px;

    border-radius:12px;

    margin-bottom:20px;

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#f5f6fa;
}

.wrapper{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:240px;
    background:#fff;
    border-right:1px solid #eee;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
}

.sidebar.close{
    transform:translateX(-100%);
}

.content{
    flex:1;
    margin-left:240px;
}

.topbar{
    height:70px;
    background:#fff;
    border-bottom:1px solid #eee;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 25px;
}

.page-content{
    padding:25px;
}

.demo-ribbon{
    position:fixed;
    top:25px;
    right:-55px;

    width:220px;

    text-align:center;

    background:#dc2626;
    color:white;

    padding:10px;

    font-size:12px;
    font-weight:700;
    letter-spacing:2px;

    transform:rotate(45deg);

    z-index:9999;

    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

.sidebar{
    width:260px;
    background:#fff;
    border-right:1px solid #ececec;
    overflow-y:auto;
}

.logo-area{
    text-align:center;
    padding:30px 20px;
}

.logo-icon{
    width:60px;
    height:60px;

    margin:auto;

    border-radius:15px;

    background:linear-gradient(
        135deg,
        #ef4444,
        #f97316
    );

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:30px;
}

.logo-area h2{
    margin-top:15px;
    font-size:22px;
}

.logo-area span{
    color:#777;
    font-size:13px;
}

.sidebar nav{
    padding:15px;
}

.sidebar nav a{
    display:flex;

    align-items:center;

    gap:10px;

    padding:12px 15px;

    text-decoration:none;

    color:#444;

    border-radius:12px;

    margin-bottom:5px;

    transition:.3s;
}

.sidebar nav a:hover{
    background:#fff5f2;
    color:#f97316;
}

.menu-title{
    font-size:11px;
    color:#999;
    font-weight:700;
    margin:20px 15px 10px;
}

.topbar{
    height:80px;
    background:white;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 30px;

    border-bottom:1px solid #ececec;
}

.user-box{
    display:flex;
    align-items:center;
    gap:10px;
}

.avatar{
    width:45px;
    height:45px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        #ef4444,
        #f97316
    );

    color:white;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;
}

.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.card{
    background:white;

    padding:25px;
    
    border-radius:20px;

    overflow:hidden;

    box-shadow:
    0 5px 20px rgba(0,0,0,.05);
        
    transition:.3s;
}

.card-header{
    padding:18px 20px;

    border-bottom:1px solid #eee;

    font-weight:600;
}

.card-body{
    padding:20px;
}

.card:hover{
    transform:translateY(-5px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.1);
}

.card h4{
    color:#777;
    margin-bottom:10px;
}

.card h2{
    font-size:32px;
}

.card.primary{
    border-left:5px solid #3b82f6;
}

.card.success{
    border-left:5px solid #22c55e;
}

.card.warning{
    border-left:5px solid #f59e0b;
}

.card.danger{
    border-left:5px solid #ef4444;
}

@media(max-width:992px){

    .sidebar{
        width:80px;
    }

    .content{
        margin-left:80px;
    }

    .logo-area h2,
    .logo-area span,
    .menu-title{
        display:none;
    }

}

.sidebar nav a.active{
    background:linear-gradient(
        135deg,
        #ef4444,
        #f97316
    );

    color:white;
}



.dashboard-wrapper{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.dashboard-header h1{
    margin:0;
    font-size:32px;
}

.dashboard-header p{
    margin-top:5px;
    color:#777;
}

.dashboard-clock{
    text-align:right;
}

.dashboard-clock #currentDate{
    font-weight:600;
}

.dashboard-clock #currentTime{
    font-size:26px;
    color:#ff5a2f;
    font-weight:700;
}

.welcome-banner{
    background:linear-gradient(
        135deg,
        #ff4040,
        #ff7b00
    );

    color:white;

    padding:25px;

    border-radius:20px;

    box-shadow:
    0 15px 35px rgba(255,100,0,.25);
}

.welcome-banner h2{
    margin-bottom:10px;
}

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

    gap:20px;
}

.stat-card{
    background:white;
    padding:25px;
    border-radius:20px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.05);

    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-5px);
}

.stat-card span{
    color:#888;
    display:block;
    margin-bottom:10px;
}

.stat-card h2{
    font-size:42px;
}

.card-item{
    border-left:5px solid #3b82f6;
}

.card-outlet{
    border-left:5px solid #10b981;
}

.card-section{
    border-left:5px solid #f59e0b;
}

.card-stock{
    border-left:5px solid #ef4444;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:
    1fr 1fr;

    gap:20px;
}

.activity-list{
    list-style:none;
    padding:0;
    margin:0;
}

.activity-list li{
    padding:15px 0;
    border-bottom:1px solid #eee;

    display:flex;
    justify-content:space-between;
}

.activity-list span{
    color:#999;
    font-size:13px;
}

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

.mini-table th,
.mini-table td{
    padding:12px;
    border-bottom:1px solid #eee;
    text-align:left;
}

.topbar{
    background:#fff;
    height:80px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 30px;

    border-bottom:1px solid #eee;

    position:sticky;
    top:0;
    z-index:100;
}

.topbar-left{
    display:flex;
    align-items:center;
    gap:20px;
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.menu-toggle{
    width:45px;
    height:45px;

    border:none;
    cursor:pointer;

    border-radius:12px;

    background:#f5f5f5;

    font-size:20px;

    transition:.3s;
}

.menu-toggle:hover{
    background:#ff6b00;
    color:white;
}

.live-clock{
    font-size:18px;
    font-weight:700;
    color:#ff6b00;
}

.user-box{
    display:flex;
    align-items:center;
    gap:10px;
}

.avatar{
    width:45px;
    height:45px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        #ff4b4b,
        #ff7b00
    );

    color:white;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;
}

.wrapper{
    transition:.3s;
}

.wrapper.collapsed{
    width:90px;
}

.wrapper.collapsed h2,
.wrapper.collapsed span,
.wrapper.collapsed .menu-title,
.wrapper.collapsed a{
    font-size:0;
}

.wrapper.collapsed a{
    justify-content:center;
}

.wrapper.collapsed a::before{
    font-size:20px;
}

@media(max-width:992px){

    .stats-grid{
        grid-template-columns:
        repeat(2,1fr);
    }

    .dashboard-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .sidebar{
        position:fixed;
        left:-260px;
        z-index:999;
    }

    .content{
        margin-left:0;
    }

    .dashboard-cards{
        grid-template-columns:1fr;
    }

    .login-container{
        flex-direction: column;
    }

    .login-branding{
        min-height: 250px;
    }

    .login-form-area{
        width: 100%;
    }

}

@media(max-width:576px){

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

    .dashboard-header{
        gap:10px;
    }

    .dashboard-clock{
        text-align:left;
    }

}