body{
    font-family: Arial, sans-serif;
    margin:0;
    background:#f5f6fa;
}

/* HEADER */
.header{
    background:#111;
    color:#fff;
    padding:16px;
    font-size:18px;
}

/* CONTAINER */
.container{
    padding:15px;
    max-width:1100px;
    margin:auto;
}

/* MENU */
.menu{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:15px 0;
}

.menu a{
    background:#fff;
    padding:10px 14px;
    border-radius:8px;
    text-decoration:none;
    color:#333;
    font-size:14px;
    border:1px solid #ddd;
    transition:0.2s;
}

.menu a:hover{
    background:#111;
    color:#fff;
}

/* CARDS */
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:12px;
}

.card{
    background:#fff;
    padding:18px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.card h3{
    margin:0;
    font-size:14px;
    color:#777;
}

.card p{
    font-size:20px;
    margin-top:6px;
    font-weight:bold;
}

/* FORM */
input, button{
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:14px;
}

input{
    width:100%;
    max-width:350px;
}

button{
    background:#111;
    color:#fff;
    border:none;
    cursor:pointer;
    transition:0.2s;
}

button:hover{
    background:#333;
}

/* LINKS (IMPORTANT FIX) */
a{
    color:#111;
    text-decoration:none;
    font-weight:500;
}

a:hover{
    text-decoration:underline;
}

/* TABLE */
.table{
    width:100%;
    background:#fff;
    border-collapse:collapse;
    margin-top:10px;
    font-size:14px;
    border-radius:10px;
    overflow:hidden;
}

.table th{
    background:#fafafa;
}

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

/* ACTION LINKS */
.table a{
    padding:5px 8px;
    border-radius:6px;
    background:#f1f1f1;
    margin-right:4px;
    font-size:12px;
}

.table a:hover{
    background:#111;
    color:#fff;
}

/* SECTION */
.section-title{
    margin-top:20px;
}

/* MOBILE */
@media(max-width:600px){
    input{max-width:100%;}
    .table{font-size:12px;}
}

/* LOGIN PAGE */

.login-body{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    background:linear-gradient(135deg, #f5f6fa, #eaeef3);
}

.login-wrapper{
    width:100%;
    padding:20px;
}

.login-card{
    max-width:380px;
    margin:auto;
    background:#fff;
    padding:30px 25px;
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    text-align:center;
}

.login-card h1{
    margin:0;
    font-size:24px;
    letter-spacing:0.5px;
}

.login-sub{
    margin-top:6px;
    margin-bottom:20px;
    color:#777;
    font-size:14px;
}

.login-form{
    text-align:left;
}

.login-form label{
    font-size:13px;
    color:#444;
}

.login-form input{
    width:100%;
    margin-top:5px;
    margin-bottom:15px;
}

.login-form button{
    width:100%;
    margin-top:5px;
}

/* ERROR */
.login-error{
    background:#fdecea;
    color:#c0392b;
    padding:10px;
    border-radius:8px;
    margin-bottom:15px;
    font-size:13px;
}

/* SUBTLE HOVER EFFECT */
.login-card:hover{
    transform:translateY(-2px);
    transition:0.2s;
}

.login-card p a{
    color:#111;
    font-weight:600;
}

.login-card p a:hover{
    text-decoration:underline;
}

/* LOGO */
.login-logo{
    margin-bottom:10px;
}

.logo-box{
    width:50px;
    height:50px;
    margin:auto;
    border-radius:12px;
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    font-size:18px;
    letter-spacing:1px;
}

/* EXTRA LINKS */
.login-extra{
    text-align:right;
    margin-bottom:10px;
}

.login-extra a{
    font-size:12px;
    color:#555;
}

.login-extra a:hover{
    color:#111;
}

/* FOOTER */
.login-footer{
    margin-top:15px;
    font-size:13px;
}

.login-footer a{
    font-weight:600;
}

.login-success{
    background:#eafaf1;
    color:#27ae60;
    padding:10px;
    border-radius:8px;
    margin-bottom:15px;
    font-size:13px;
}
/* ================= DASHBOARD LAYOUT FIX ================= */

/* Desktop sidebar spacing */
.dashboard-page {
    margin-left: 230px; /* SAME as sidebar width */
    transition: 0.3s;
}

/* MOBILE RESET */
@media (max-width: 768px) {
    .dashboard-page {
        margin-left: 0;
    }
}