

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    background: #0b1220;
    color: #e2e8f0;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background: #020617;
    padding: 20px;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid #1e293b;
}

.sidebar h2 {
    color: orange;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.sidebar a {
    display: block;
    padding: 12px 15px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.sidebar a:hover {
    background: #1e293b;
    color: white;
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    height: 60px;
    background: #1f2937;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
    z-index: 90;
}

/* MAIN CONTENT */
.main {
    margin-left: 250px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    background: #0b1220;
}

/* CONTENT AREA */
.content {
    padding: 25px;
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* HERO IMAGE */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 50px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
                url('https://images.unsplash.com/photo-1574680178050-55c6a6a96e0a?q=80&w=1169&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
}

/* SECTIONS */
.section {
    padding: 60px 40px;
    text-align: center;
}

.section.dark {
    background: #020617;
}

/* LAYOUT HELPERS */
.container {
    display: flex;
}

/* CARDS */
.cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 200px;
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card h3 {
    margin: 0 0 10px 0;
    color: #94a3b8;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

th {
    background: #020617;
    position: sticky;
    top: 0;
    z-index: 10;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #334155;
}

tr:last-child td {
    border-bottom: none;
}

/* BUTTONS */
.btn {
    background: orange;
    color: black;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn:hover {
    background: #ff9500;
    transform: translateY(-1px);
}

/* FORM STYLING */
input {
    padding: 10px;
    margin: 5px 0;
    border: none;
    border-radius: 6px;
    background: #334155;
    color: white;
    width: 100%;
}

/* AUTH PAGES */
.auth-page {
    background: #0b1220;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-box {
    background: #1e293b;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.auth-box h2 {
    margin-bottom: 25px;
    color: orange;
}

.auth-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
    background: #334155;
    color: white;
}

.auth-box button {
    width: 100%;
    padding: 12px;
    background: orange;
    color: black;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

/* ERROR & SUCCESS */
.error { color: #ef4444; }
.success { color: #22c55e; }

/* NAVBAR (if used) */
.navbar {
    background: #020617;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: #e2e8f0;
    text-decoration: none;
    margin: 0 12px;
}

.navbar a:hover {
    color: orange;
}

/* CHART */
#myChart {
    width: 100% !important;
    max-height: 400px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .topbar {
        left: 0;
    }
    
    .main {
        margin-left: 0;
        margin-top: 60px;
    }
    
    .cards {
        flex-direction: column;
    }
}