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

body {
    background-color: #0f172a;
    color: #f8fafc;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #334155;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    color: #38bdf8;
}

.close-btn {
    display: none;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    flex: 1;
}

.sidebar-nav a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    transition: 0.2s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background-color: #0284c7;
    color: #ffffff;
    font-weight: 600;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #334155;
}

.logout-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 5px;
}

/* Main Layout */
.main-wrapper {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: 60px;
    background-color: #1e293b;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #334155;
}

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
}

.page-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.content {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Cards & Forms */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.dash-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
}

.dash-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
}

.dash-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.dash-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.dash-card p { color: #94a3b8; font-size: 0.9rem; line-height: 1.4; }

.card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
}

.subtitle { color: #94a3b8; font-size: 0.85rem; margin-bottom: 20px; }

input[type="text"] {
    width: 100%;
    padding: 12px;
    background-color: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
}

.options-container {
    background: #0f172a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.radio-label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
    font-size: 0.95rem;
}

.action-btn {
    width: 100%;
    padding: 12px;
    background-color: #0284c7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover { background-color: #0369a1; }
.status-msg { margin-top: 15px; text-align: center; font-size: 0.95rem; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .close-btn { display: block; }
    .menu-btn { display: block; }
    .main-wrapper { margin-left: 0; }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 90;
    }
    .overlay.active { display: block; }
}
