/* style.css */
:root {
    --sidebar-bg: #243b53; 
    --main-bg: #111; /* Updated to your requested dark background */
    --sidebar-width: 240px;
    --topbar-height: 70px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: var(--main-bg);
    overflow-x: hidden;
}

/* Logo link style */
.logo-link {
    margin: 0;
    color: #5a92ca;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-link:hover {
    color: #6bb7ff;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 0; 
    background: var(--sidebar-bg);
    transition: all 0.3s ease;
    z-index: 2000;
    overflow: hidden;
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 0; 
    right: 0;
    height: var(--topbar-height);
    background: #111;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* MAIN WRAPPER - Updated for edge-to-edge footer */
.main {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--topbar-height)); 
    margin-top: var(--topbar-height);
    padding: 0; /* Removed padding so footer hits the edge */
    transition: all 0.3s ease;
}

/* Pushes footer to the bottom */
.hero-section, .container {
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ADJUSTMENT LOGIC */
body.sidebar-open .sidebar { width: var(--sidebar-width); }
body.sidebar-open .topbar { left: var(--sidebar-width); }
body.sidebar-open .main { margin-left: var(--sidebar-width); }

/* Landing Card Styling */
.landing-card {
    max-width: 600px;
    width: 100%;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

/* Dashboard & Entry Styles */
.entry {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

input, select, textarea {
    border: 2px solid #dbe3ec;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

/* UPDATED EDGE-TO-EDGE DARK FOOTER */
.site-footer {
    display: block;
    clear: both;
    width: 100%;
    background: rgba(20, 20, 20, 0.95); /* Darker for your #111 theme */
    backdrop-filter: blur(10px);
    border-top: 1px solid #334e68; /* Darker border */
    padding: 40px 0 20px 0; 
    margin-top: auto; /* Aligns to bottom of .main flex container */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: #5a92ca; /* Brighter for dark theme visibility */
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #9fb3c8;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #5a92ca;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px; 
    padding: 20px 0 10px 0;
    border-top: 1px solid #2d3748;
    color: #718096;
    font-size: 0.85rem;
}

.footer-bottom p { margin: 0; }