/* Minimalist Professional Theme */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0b0f19;
    color: #f3f4f6;
    display: flex;
    min-height: 100vh;
}

/* Password Gate Screen Overlay */
#password-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0b0f19;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gate-box {
    background: #111827;
    border: 2px solid #1f2937;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.gate-box h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
}

.gate-box input {
    width: 100%;
    padding: 12px;
    background: #1f2937;
    border: 1px solid #374151;
    color: white;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: center;
}

.gate-box button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.gate-box button:hover {
    background: #1d4ed8;
}

/* Master Layout Grid */
.app-container {
    display: flex;
    width: 100%;
}

/* Floating Navigation Sidebar */
.sidebar {
    width: 280px;
    background-color: #111827;
    border-right: 1px solid #1f2937;
    padding: 30px 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
    color: #ffffff;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 12px;
}

.sidebar ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    color: #ffffff;
    background-color: #1f2937;
    border-left: 4px solid #2563eb;
    padding-left: 16px;
}

/* Main Content Log Wrapper */
.content-area {
    margin-left: 280px;
    flex: 1;
    padding: 50px;
    max-width: 1100px;
}

header {
    margin-bottom: 40px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 20px;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
}

header p {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

/* System Instructions Box (Visible to You Only) */
.instruction-callout {
    background-color: #1e1b4b;
    border: 1px dashed #4f46e5;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 40px;
    color: #c7d2fe;
}

.instruction-callout h4 {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
}

.instruction-callout code {
    background: #312e81;
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffffff;
    font-family: monospace;
}

/* Entry Log Rows (Auto-Expanding) */
.log-entry {
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.entry-meta {
    font-size: 0.85rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.entry-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.entry-body {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #d1d5db;
}

.entry-body p {
    margin-bottom: 15px;
}

.entry-body p:last-child {
    margin-bottom: 0;
}

/* Code Syntax Block Safeguards */
pre {
    background: #1f2937;
    border: 1px solid #374151;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 15px 0;
}

code {
    font-family: "Fira Code", Consolas, Monaco, monospace;
    font-size: 0.95rem;
    color: #34d399;
    font-weight: bold;
}

/* Mobile Responsiveness Rules */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #1f2937;
        padding: 20px;
    }
    .sidebar h2 {
        margin-bottom: 15px;
    }
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .sidebar ul li {
        margin-bottom: 0;
    }
    .content-area {
        margin-left: 0;
        padding: 20px;
    }
}
