:root {
    --bg-deep: #000000;
    --bg-card: #0a0a0a;
    --text-main: #e0e0e0;
    --text-muted: #666666;
    --red-primary: #b30000;
    --red-bright: #ff1a1a;
    --red-dark: #4d0000;
    --border: #333333;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    padding: 25px 40px;
    align-items: center;
    border-bottom: 2px solid #333;
    background: linear-gradient(90deg, rgba(10, 10, 10, 1) 0%, rgba(0, 0, 0, 1) 100%);
}

.logo { 
    font-family: var(--font-heading); 
    color: var(--red-primary); 
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #ff1a1a;
    text-shadow: 0 0 10px rgba(179, 0, 0, 0.5);
}

.top-nav a { color: #666; font-size: 0.75rem; text-decoration: none; transition: color 0.3s ease; }
.top-nav a:hover { color: #b30000; }

/* Criteria Grid for Landing Page */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.criteria-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #050505 100%);
    padding: 30px;
    border: 1px solid #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.criteria-card:hover {
    border-color: #b30000;
    background: linear-gradient(135deg, #2a1a1a 0%, #0a0a0a 100%);
    transform: translateY(-2px);
}
.criteria-card h3 { 
    color: #b30000;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.criteria-card p { color: #999; line-height: 1.6; }

/* Protocol Checklist Styling */
.protocol-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
    padding: 30px;
    border: 1px solid #333;
    border-radius: 2px;
    max-height: 400px;
    overflow-y: auto;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-size: 1rem;
    color: #ddd;
    padding: 12px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.checkbox-container:hover {
    background: rgba(179, 0, 0, 0.1);
    border-left-color: #b30000;
    color: #b30000;
}

.checkbox-container input[type="checkbox"] { 
    width: 20px; 
    height: 20px; 
    cursor: pointer;
    accent-color: #b30000;
}

/* Buttons */
button, .tab-btn, .btn-on, .btn-off, .btn-delete, select {
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.75rem !important;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 2px;
    border: 2px solid #444;
    background: #1a1a1a;
    color: #ccc;
    transition: all 0.3s ease;
}

button:hover, select:hover { 
    border-color: #b30000; 
    color: #b30000;
    background: #2a1a1a;
}

button:active { transform: translateY(1px); }

.btn-on { 
    border-color: #00cc00; 
    color: #00cc00;
    background: rgba(0, 204, 0, 0.1);
}
.btn-on:hover { 
    background: rgba(0, 204, 0, 0.2); 
    color: #00ff00;
}

.btn-off { 
    border-color: #666; 
    color: #666;
}
.btn-off:hover { 
    border-color: #999; 
    color: #999;
}

.btn-delete { 
    border-color: #b30000; 
    color: #b30000;
    background: rgba(179, 0, 0, 0.1);
}
.btn-delete:hover { 
    background: #b30000; 
    color: #fff;
    border-color: #ff1a1a;
}

label { 
    display: block; 
    font-size: 0.7rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    margin-bottom: 12px; 
    margin-top: 0; 
    font-weight: bold;
    letter-spacing: 1px;
}

input, textarea, select { 
    width: 100%; 
    background: #1a1a1a; 
    border: 2px solid #333; 
    color: #fff; 
    padding: 14px 16px; 
    font-family: var(--font-body); 
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input::placeholder, textarea::placeholder {
    color: #555;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #b30000;
    background: #222;
    box-shadow: 0 0 0 4px rgba(179, 0, 0, 0.1);
}
textarea { 
    resize: none;
    min-height: 140px; 
    line-height: 1.6;
    overflow: hidden;
}
textarea:focus { min-height: 200px; }

/* Auto-resize textarea as user types */
textarea {
    font-family: var(--font-body);
}

/* Container and Layout */
.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 50px 25px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .container { padding: 30px 15px; }
}

/* Journal Entry Styling */
.journal-entry { border-left: 3px solid #b30000; background: #0a0a0a; padding: 20px; margin-bottom: 15px; border: 1px solid #222; }
.journal-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 0.8rem; color: #666; }
.journal-mood { display: inline-block; background: rgba(179, 0, 0, 0.2); border: 1px solid #b30000; color: #b30000; padding: 4px 10px; font-size: 0.65rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.journal-content { color: #ddd; line-height: 1.6; font-size: 0.95rem; }

/* File Upload - Custom Styling */
.file-upload-label { 
    display: block; 
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border: 2px dashed #b30000; 
    padding: 30px; 
    text-align: center; 
    cursor: pointer; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #b30000;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}
.file-upload-label:hover { 
    border-color: #ff1a1a;
    background: linear-gradient(135deg, #2a1a1a 0%, #1a1a1a 100%);
    color: #ff1a1a;
}
#fileInput { display: none; }

/* Section Cards */
.section-card { 
    background: linear-gradient(135deg, #0a0a0a 0%, #050505 100%); 
    border: 1px solid #333; 
    padding: 40px; 
    margin-bottom: 40px;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .section-card { padding: 25px; margin-bottom: 25px; }
}

.section-card h2 { 
    color: #b30000; 
    font-family: var(--font-heading); 
    font-size: 1.4rem; 
    margin-top: 0; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #b30000;
}
.section-card p { color: #aaa; margin-bottom: 20px; font-size: 0.95rem; }

/* Forms */
.form-group { 
    position: relative; 
    margin-bottom: 28px;
}

.form-group label { 
    margin-bottom: 12px;
    display: block;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b30000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Interest Form */
.interest-form button, #submitBtn, #uploadBtn { 
    background: #b30000; 
    border: 2px solid #b30000;
    color: #fff; 
    width: 100%; 
    margin-top: 30px; 
    padding: 16px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.interest-form button:hover, #submitBtn:hover, #uploadBtn:hover { 
    background: #8a0303; 
    border-color: #ff1a1a;
    transform: translateY(-2px);
}
.interest-form button:active, #submitBtn:active, #uploadBtn:active { transform: translateY(0); }

/* Hero and Content */
.hero { 
    padding: 100px 20px 80px; 
    text-align: center; 
    background: linear-gradient(135deg, rgba(179, 0, 0, 0.15) 0%, rgba(0, 0, 0, 1) 100%); 
}
.hero-content h1 { 
    font-family: var(--font-heading); 
    font-size: 3.2rem; 
    margin: 0 0 25px 0; 
    color: #b30000;
    letter-spacing: 2px;
}
.hero-content p { 
    font-size: 1.1rem; 
    color: #999; 
    margin: 0;
    font-weight: 300;
}

.content-section { 
    max-width: 920px; 
    margin: 60px auto; 
    padding: 50px 30px; 
}
.content-section h2 { 
    font-family: var(--font-heading); 
    color: #b30000; 
    font-size: 2rem; 
    margin-bottom: 30px;
    letter-spacing: 2px;
}
.content-section.alt-bg { 
    background: rgba(10, 10, 10, 0.8); 
    border: 1px solid #333;
}
.subtitle { 
    color: #999; 
    font-size: 1rem; 
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Footer */
footer { 
    text-align: center; 
    padding: 40px 20px; 
    border-top: 1px solid #333; 
    color: #666; 
    font-size: 0.85rem;
    margin-top: 80px;
}
footer p { margin: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b30000; }