/* Ripple of Perception Framework - Styles */
/* © 2025 Gary Roos - All Rights Reserved */

/* ===== CSS CUSTOM PROPERTIES (THEME VARIABLES) ===== */
:root {
    /* ===== BRAND COLORS ===== */
    --color-primary: #667eea;
    --color-primary-dark: #5a6fd8;
    --color-secondary: #764ba2;
    
    /* ===== BACKGROUND COLORS ===== */
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-overlay: rgba(255, 255, 255, 0.95);
    --bg-header: rgba(0, 0, 0, 0.1);
    
    /* ===== TEXT COLORS ===== */
    --text-primary: #333333;
    --text-secondary: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    
    /* ===== BORDER COLORS ===== */
    --border-color: #e9ecef;
    --border-light: #dee2e6;
    
    /* ===== SEMANTIC COLORS ===== */
    --color-success: #28a745;
    --color-success-bg: #d4edda;
    --color-success-border: #c3e6cb;
    --color-success-text: #155724;
    
    --color-error: #dc3545;
    --color-error-bg: #f8d7da;
    --color-error-border: #f5c6cb;
    --color-error-text: #721c24;
    --color-error-light-bg: #ffe6e6;
    
    --color-warning: #ffc107;
    --color-warning-bg: #fff3cd;
    --color-warning-border: #ffc107;
    --color-warning-text: #856404;
    
    --color-info: #17a2b8;
    --color-info-bg: #d1ecf1;
    --color-info-border: #17a2b8;
    --color-info-text: #0c5460;
    
    /* ===== STEP CARD COLORS ===== */
    --color-step-1: #e74c3c;
    --color-step-2a: #f39c12;
    --color-step-2b: #9b59b6;
    --color-step-2c: #3498db;
    --color-step-2d: #1abc9c;
    --color-step-3: #f1c40f;
    --color-step-4: #27ae60;
    --color-step-5: #e67e22;
    --color-step-6: #34495e;
    --color-step-7: #16a085;
    --color-step-feedback: #8e44ad;
    
    /* ===== CONTENT SECTION COLORS ===== */
    --color-psychological-models: #9b59b6;
    --color-examples: #27ae60;
    --color-examples-bg: #e8f5e8;
    --color-research: #ffc107;
    --color-research-bg: #fff3cd;
    --color-breaks-cycles: #e74c3c;
    --color-breaks-cycles-bg: #fee;
    --color-breaks-cycles-text: #721c24;
    --color-creates-space: #27ae60;
    --color-creates-space-bg: #efe;
    --color-creates-space-text: #155724;
    
    /* ===== SHADOWS ===== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* ===== LEGACY COMPATIBILITY (map to new names) ===== */
    --primary-color: var(--color-primary);
    --primary-dark: var(--color-primary-dark);
    --secondary-color: var(--color-secondary);
}


/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
}

.hidden {
    display: none;
}

/* ===== PASSWORD PROTECTION ===== */
/* Login page always uses light mode, regardless of dark mode setting */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.password-box {
    background: #ffffff !important;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-box h2 {
    color: #2c3e50 !important;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.password-box p {
    color: #6c757d !important;
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef !important;
    border-radius: 10px;
    font-size: 16px;
    margin: 20px 0;
    text-align: center;
    transition: border-color 0.3s ease;
    background: #ffffff !important;
    color: #333333 !important;
}

.password-input:focus {
    outline: none;
    border-color: #667eea !important;
}

.password-btn {
    background: #667eea !important;
    color: #ffffff !important;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.password-btn:hover {
    background: #5a6fd8 !important;
}

.copyright-small {
    font-size: 0.8em;
    color: #6c757d !important;
    margin-top: 20px;
}

/* Ensure login/registration forms always use light mode */
.password-overlay .auth-switch-text {
    color: #6c757d !important;
}

.password-overlay .auth-link {
    color: #667eea !important;
}

/* ===== LOGIN & REGISTRATION FORM STYLING ===== */
.login-box,
.registration-box {
    max-width: 450px;
}

.login-box .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.login-box .form-group:last-of-type {
    margin-bottom: 20px;
}

.registration-box .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.registration-box .form-group:last-of-type {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
    width: auto;
    min-width: 18px;
    height: 18px;
}

.checkbox-label span {
    flex: 1;
}

.registration-error {
    background: var(--color-error-light-bg);
    color: var(--color-error);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
    border: 1px solid var(--color-error);
    display: none;
}

.auth-switch-text {
    margin-top: 15px;
    font-size: 0.9em;
    color: var(--text-muted);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-help-text {
    font-size: 0.75em;
    color: var(--text-muted);
    margin: -10px 0 10px 0;
    font-style: italic;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    z-index: 1000;
    width: 0%;
}

/* ===== MAIN LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    color: var(--text-white);
    margin-bottom: 30px;
    background: var(--bg-header);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.copyright-notice {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.8em;
    opacity: 0.7;
    color: white;
}

/* ===== NAVIGATION TABS ===== */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.view-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-overlay);
    color: var(--primary-color);
    font-size: 0.9em;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.view-btn:hover::before {
    left: 100%;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ===== OVERVIEW GRID ===== */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ===== STEP CARDS ===== */
.step-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.step-card.step1 { border-left-color: var(--color-step-1); }
.step-card.step2a { border-left-color: var(--color-step-2a); }
.step-card.step2b { border-left-color: var(--color-step-2b); }
.step-card.step2c { border-left-color: var(--color-step-2c); }
.step-card.step2d { border-left-color: var(--color-step-2d); }
.step-card.step3 { border-left-color: var(--color-step-3); }
.step-card.step4 { border-left-color: var(--color-step-4); }
.step-card.step5 { border-left-color: var(--color-step-5); }
.step-card.step6 { border-left-color: var(--color-step-6); }
.step-card.step7 { border-left-color: var(--color-step-7); }
.step-card.feedback { border-left-color: var(--color-step-feedback); }

.step-emoji {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.step-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.step-summary {
    color: #7f8c8d;
    line-height: 1.4;
    font-size: 0.95em;
}

/* ===== DETAILED VIEWS ===== */
.detailed-view {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.detailed-view.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.step-content ul, .step-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.step-content strong {
    color: #2c3e50;
}

.step-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ===== SPECIAL CONTENT SECTIONS ===== */
.psychological-models {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--color-psychological-models);
}

.examples-section {
    background: var(--color-examples-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--color-examples);
}

.research-callout {
    background: var(--color-research-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--color-research);
}

.digital-tools {
    background: var(--color-info-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--color-info);
}

.practical-applications {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.practical-applications h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.applications-grid > div {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #27ae60;
}

.applications-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
}

.applications-grid p {
    font-size: 0.9em;
    margin: 0;
    color: #6c757d;
}

.warning-note {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #ffc107;
}

/* ===== CHART SECTION ===== */
.chart-placeholder {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: inline-block;
    width: 100%;
    max-width: 600px;
}

.chart-icon {
    font-size: 3em;
    margin-bottom: 10px;
    color: #6c757d;
}

.chart-note {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

/* ===== GLOSSARY ===== */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.glossary-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
}

.glossary-term {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1em;
}

/* ===== OUTCOME SECTIONS ===== */
.outcome-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.breaks-cycles, .creates-space {
    padding: 20px;
    border-radius: 10px;
}

.breaks-cycles {
    background: var(--color-breaks-cycles-bg);
    border-left: 4px solid var(--color-breaks-cycles);
    color: var(--color-breaks-cycles-text) !important;
}

.breaks-cycles strong,
.breaks-cycles ul,
.breaks-cycles li {
    color: var(--color-breaks-cycles-text) !important;
}

.creates-space {
    background: var(--color-creates-space-bg);
    border-left: 4px solid var(--color-creates-space);
    color: var(--color-creates-space-text) !important;
}

.creates-space strong,
.creates-space ul,
.creates-space li {
    color: var(--color-creates-space-text) !important;
}

    background: #2d1b1b;
    border-left-color: #ff6b6b;
    color: #ffcccc !important;
}

    color: #ffcccc !important;
}

    background: #1b2d1b;
    border-left-color: #51cf66;
    color: #ccffcc !important;
}

    color: #ccffcc !important;
}

/* ===== BUTTONS ===== */
.back-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s ease;
    font-size: 0.9em;
}

.back-btn:hover {
    background: #7f8c8d;
}

/* ===== NOTES SECTION ===== */
.notes-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #667eea;
}

.notes-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1em;
}

.notes-textarea {
    width: 100%;
    min-height: 100px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    font-size: 14px;
    color: #2c3e50;
}

.textarea-container {
    position: relative;
    width: 100%;
}

.textarea-label {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #6c757d;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
    background: transparent;
    padding: 0;
    margin: 0;
}


.notes-textarea::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.notes-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.save-note-btn {
    background: var(--color-success);
    color: var(--text-white);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
    font-size: 0.9em;
}

.save-note-btn:hover {
    background: #218838;
}

/* ===== NAVIGATION DOTS ===== */
.navigation {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border-radius: 25px;
    padding: 15px 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 8px auto;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.nav-dot.active {
    opacity: 1;
    transform: scale(1.3);
}

.nav-dot:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
}

.footer-small {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 5px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navigation {
        display: none;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .outcome-section {
        grid-template-columns: 1fr;
    }

    .view-toggle {
        justify-content: center;
        gap: 10px;
    }

    .view-btn {
        padding: 10px 16px;
        font-size: 0.8em;
    }

    .copyright-notice {
        position: static;
        text-align: center;
        margin-top: 10px;
    }

    .container {
        padding: 15px;
    }

    .detailed-view {
        padding: 20px;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .glossary-grid {
        grid-template-columns: 1fr;
    }

    .password-box {
        padding: 30px 20px;
    }

    .chart-placeholder {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6em;
    }

    .step-card {
        padding: 15px;
    }

    .step-title {
        font-size: 1.1em;
    }

    .view-btn {
        padding: 8px 12px;
        font-size: 0.75em;
    }

    .password-box {
        padding: 25px 15px;
    }
}

/* ===== ANIMATIONS ===== */
.step-card {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }

/* ===== LOADING STATES & MICRO-INTERACTIONS ===== */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== FORM STYLES (for Contact Page) ===== */
.contact-form {
    background: rgba(248, 249, 250, 0.95);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(233, 236, 239, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 24px);
    padding: 14px 16px;
    border: 2px solid rgba(206, 212, 218, 0.5);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.contact-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-submit-btn:hover::before {
    left: 100%;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.contact-message-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: none;
}

.contact-message-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* ===== PRE-LOGIN CONTENT & FORM ===== */
.pre-login-section {
    width: 100%;
    min-height: 100vh; /* Make it full height */
    display: flex;
    flex-direction: column; /* Stack box and button vertically */
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    padding: 30px 20px; /* Add some padding */
    box-sizing: border-box; /* Include padding in element's total width and height */
    z-index: 10000; /* Ensure it's on top initially */
}

.pre-login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 600px; /* Wider for more content */
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 25px; /* Space between box and login button */
}

.pre-login-box h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
}

.intro-text {
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.request-access-text {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 25px;
    font-style: italic;
}

.pre-login-form-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    text-align: left; /* Align form labels/inputs to left */
}

/* Reusing existing form-group styles for consistency */
/* .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #2c3e50; } */
/* .form-group input, .form-group textarea { width: calc(100% - 24px); padding: 12px; border: 1px solid #ced4da; border-radius: 6px; font-family: inherit; font-size: 1em; } */
/* .form-group input:focus, .form-group textarea:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25); } */

.submit-access-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%; /* Make button full width */
    margin-top: 0px; /* Remove top margin as it's set on parent div now */
}

.submit-access-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.note-text {
    font-size: 0.8em;
    color: #888;
    margin-top: 15px;
    text-align: center;
}

.go-to-login {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    padding: 0 20px; /* Match pre-login-section padding */
}

@media (max-width: 768px) {
    .pre-login-box {
        padding: 30px 20px;
    }
    .pre-login-box h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .pre-login-box h2 {
        font-size: 1.5em;
    }
    .intro-text {
        font-size: 1em;
    }
    .pre-login-form-container {
        padding: 15px;
    }
}



































/* Note content display in journal */
.note-content-display {
    background: white;
    color: #2c3e50;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    line-height: 1.6;
}


/* Empty notes message */
.empty-notes-message {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    background: white;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}



/* Notes controls in journal */
.notes-controls {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
}























/* Smooth transitions for UI elements */
body,
.header,
.view-btn,
.step-card,
.detailed-view,
.notes-section,
.navigation,
.password-box,
.password-input,
.password-btn,
.pre-login-box,
.form-group input,
.form-group textarea {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/**
 * Search Styles for Ripple Framework
 * © 2025 Gary Roos
 * 
 * Add this to the end of your styles.css file
 */

/* ===== SEARCH CONTAINER ===== */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 20px auto 0;
    z-index: 999999 !important; /* Ensure container is also on top */
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-icon {
    font-size: 1.2em;
    margin-right: 10px;
    opacity: 0.7;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: white;
    font-size: 1em;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-shortcut {
    font-size: 0.8em;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
    margin-left: 10px;
}

/* ===== SEARCH RESULTS ===== */
.search-results {
    position: fixed !important;
    top: 200px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 500px !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    z-index: 999999 !important;
    animation: slideDown 0.3s ease !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.search-results.hidden {
    display: none;
}

/* ===== SEARCH RESULT ITEMS ===== */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #f8f9fa;
}

.search-result-item.no-results {
    cursor: default;
    opacity: 0.6;
}

.search-result-item.no-results:hover {
    background: transparent;
}

.result-emoji {
    font-size: 1.8em;
    margin-right: 15px;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-summary {
    font-size: 0.9em;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-type {
    font-size: 0.75em;
    padding: 4px 8px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Highlight matched text */
mark {
    background: #ffeb3b;
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* ===== SCROLLBAR STYLING ===== */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}
















/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .step-card {
        border: 2px solid #000;
    }
    
    .view-btn {
        border: 2px solid #000;
    }
}

/* Focus indicators for keyboard navigation */
.view-btn:focus-visible,
.step-card:focus-visible,
.contact-submit-btn:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .search-input-wrapper {
        padding: 0 12px;
    }
    
    .search-input {
        padding: 10px 0;
        font-size: 0.9em;
    }
    
    .search-shortcut {
        display: none;
    }
    
    .search-results {
        max-height: 300px;
    }
    
    .result-emoji {
        font-size: 1.5em;
        margin-right: 10px;
    }
    
    .result-title {
        font-size: 0.95em;
    }
    
    .result-summary {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .search-result-item {
        padding: 12px;
    }
    
    .result-type {
        font-size: 0.7em;
        padding: 3px 6px;
    }
}

/* ===== LOADING STATE ===== */
.search-loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.search-loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ===== FOCUS RING ===== */
.search-input-wrapper:focus-within {
    outline: 3px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

/* ===== ANIMATION FOR RESULT ITEMS ===== */
.search-result-item {
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ADMIN PANEL STYLING ===== */
.admin-stats {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-muted);
}

.admin-users {
    margin-bottom: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-btn,
.admin-btn-small {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s ease;
    background: var(--primary-color);
    color: white;
}

.admin-btn:hover {
    background: var(--primary-dark);
}

.admin-btn.danger {
    background: var(--color-error);
}

.admin-btn.danger:hover {
    background: #c82333;
}

.admin-btn-small {
    padding: 5px 10px;
    font-size: 0.8em;
}

.no-users {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table thead {
    background: var(--primary-color);
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:hover {
    background: var(--bg-secondary);
}

.admin-table tbody tr.current-user {
    background: #e7f3ff;
}

.admin-table tbody tr.admin-user {
    background: #fff4e6;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    margin-right: 5px;
}

.admin-badge {
    background: #ff9800;
    color: white;
}

.user-badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.current-badge {
    background: #2196f3;
    color: white;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9em;
}

.admin-settings {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.settings-form {
    margin-top: 15px;
}

.admin-input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    margin-right: 10px;
    margin-bottom: 10px;
}

.admin-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-help {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-help.warning {
    color: var(--color-error);
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-actions {
        width: 100%;
    }
    
    .admin-btn {
        flex: 1;
    }
    
    .admin-table {
        font-size: 0.85em;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
