body{
    margin:0;
    font-family:'Segoe UI', sans-serif;
    background:#f4f6f9;
}

/* Sidebar */
.sidebar{
    position:fixed;
    width:240px;
    height:100%;
    background:#111;
    color:#fff;
    overflow-y:auto;
}

.logo-box{
    text-align:center;
    padding:20px 10px;
    border-bottom:1px solid #333;
}

.logo-box h2{
    margin:0;
    font-size:22px;
}

.logo-box small{
    color:#bbb;
}

.sidebar a{
    display:block;
    color:#ddd;
    padding:14px 20px;
    text-decoration:none;
    font-size:15px;
}

.sidebar a i{
    margin-right:10px;
}

.sidebar a:hover{
    background:#222;
    color:#fff;
}

/* Main */
.main-content{
    margin-left:240px;
    padding:20px;
}

/* Topbar */
.topbar{
    background:#fff;
    padding:15px 20px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
    margin-bottom:20px;
}

/* Cards */
.card{
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
    margin-bottom:20px;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.stat-card{
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.stat-card h4{
    margin:0;
    color:#777;
    font-size:14px;
}

.stat-card p{
    font-size:28px;
    margin:10px 0 0;
    font-weight:bold;
}

/* Buttons */
.btn{
    display:inline-block;
    padding:10px 16px;
    background:#111;
    color:#fff;
    text-decoration:none;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

.btn-light{
    background:#fff;
    color:#111;
    border:1px solid #111;
}

/* Forms */
.form-control{
    width:100%;
    padding:12px;
    margin-top:5px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:6px;
    box-sizing:border-box;
}

.form-group label{
    font-weight:600;
}

/* Tables */
table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#111;
    color:#fff;
    text-align:left;
    padding:10px;
}

table td{
    padding:10px;
    border-bottom:1px solid #eee;
}

/* Portal login */
.portal-wrapper{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#111;
}

.portal-card{
    width:100%;
    max-width:420px;
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 4px 20px rgba(0,0,0,.2);
}

.portal-title{
    text-align:center;
    margin-bottom:20px;
}

/* Mobile */
@media(max-width:768px){
    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .main-content{
        margin-left:0;
    }

    .dashboard-grid{
        grid-template-columns:1fr;
    }
}