/* RESET */
body {
    margin: 0;
    background: #ffffff;
    font-family: 'Segoe UI', sans-serif;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    background: #000000;
    padding: 20px;
    color: #fff;
    transition: 0.3s;
}

.logo img {
    width: 100px;
    display: block;
    margin: auto;
}

/* MENU */
.sidebar a {
    display: block;
    color: #aaa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar a:hover,
.active-link {
    background: #111;
    color: #fff;
}

/* CONTENT */
.content {
    margin-left: 260px;
    padding: 25px;
}

/* TOPBAR */
.topbar {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* CARD */
.card {
    border-radius: 14px;
    border: none;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* BUTTON */
.btn-primary {
    background: #000;
    border: none;
}

.btn-primary:hover {
    background: #222;
}

/* TABLE */
.table {
    background: #fff;
}

/* MOBILE */
.menu-btn {
    display: none;
    font-size: 20px;
    cursor: pointer;
}

@media(max-width:768px){
    .sidebar { left: -260px; }
    .sidebar.active { left: 0; }
    .content { margin-left: 0; }
    .menu-btn { display: inline-block; }
}

/* FULL HEIGHT LAYOUT */
html, body {
    height: 100%;
}

/* MAIN WRAPPER */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* CONTENT AREA */
.content {
    flex: 1;
}

/* FOOTER */
footer {
    margin-left: 260px;
}

@media(max-width:768px){
    footer {
        margin-left: 0;
    }
}

/* AUTH PAGE FIX */
.auth-body {
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* BOX */
.auth-box {
    width: 100%;
    max-width: 380px;
    padding: 28px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
}

/* LOGO FIX */
.auth-logo {
    width: 55px;
    display: block;
    margin: 0 auto 10px;
}

/* INPUT */
.auth-box input {
    border-radius: 8px;
}

/* BUTTON */
.auth-box .btn {
    border-radius: 8px;
    padding: 10px;
}

/* DIVIDER */
.divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.divider:before,
.divider:after {
    content: "";
    position: absolute;
    width: 40%;
    height: 1px;
    background: #e5e7eb;
    top: 50%;
}

.divider:before { left: 0; }
.divider:after { right: 0; }

.divider span {
    background: #fff;
    padding: 0 10px;
    color: #888;
    font-size: 13px;
}
