/* =================================================================
   Biblical Dream Interpreter - Complete Stylesheet
   ================================================================= */

/* CSS Variables for theming */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    --bg-color: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --shadow: rgba(0, 0, 0, 0.3);
    
    --transition-speed: 0.3s;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Crimson Text', Georgia, serif;
}

/* Light theme */
body.light-theme {
    --bg-color: #f0f4f8;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(147, 51, 234, 0.2);
    --text-color: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition-speed), color var(--transition-speed);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: blob-float 20s infinite ease-in-out;
}

.blob-1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 40%;
    right: 10%;
    animation-delay: -7s;
}

.blob-3 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    bottom: 10%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -80px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.dove, .cross, .star {
    position: absolute;
    opacity: 0.2;
    font-size: 2rem;
    animation: float-horizontal linear infinite;
}

.dove-1 {
    top: 20%;
    animation-duration: 40s;
    animation-delay: 0s;
}

.dove-2 {
    top: 50%;
    animation-duration: 50s;
    animation-delay: -15s;
}

.dove-3 {
    top: 70%;
    animation-duration: 45s;
    animation-delay: -30s;
}

.cross {
    font-size: 1.5rem;
    animation: float-vertical linear infinite;
}

.cross-1 {
    left: 10%;
    animation-duration: 30s;
}

.cross-2 {
    left: 80%;
    animation-duration: 35s;
    animation-delay: -15s;
}

.star {
    font-size: 1.2rem;
    animation: twinkle 3s ease-in-out infinite;
}

.star-1 {
    top: 15%;
    left: 25%;
    animation-delay: 0s;
}

.star-2 {
    top: 65%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes float-horizontal {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(calc(100vw + 100%));
    }
}

@keyframes float-vertical {
    from {
        transform: translateY(100vh) rotate(0deg);
    }
    to {
        transform: translateY(-100px) rotate(360deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

/* Header */
.app-header {
    margin-bottom: 2rem;
    animation: fade-in 0.8s ease-out;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    justify-content: flex-end;
}

.header-center {
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    color: #fbbf24;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fbbf24, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #c084fc;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.scripture-quote {
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Icon Button */
.icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.icon-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}

.icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.theme-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-btn.active {
    background: var(--primary-gradient);
    color: white;
}

.theme-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Settings Panel */
.settings-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px var(--shadow);
    animation: slide-down 0.4s ease-out;
}

.settings-panel.hidden {
    display: none;
}

.settings-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.settings-title svg {
    width: 1.5rem;
    height: 1.5rem;
}

.settings-options {
    display: grid;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.setting-label svg {
    width: 1.25rem;
    height: 1.25rem;
}

.setting-input {
    width: 100px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.toggle-switch.active {
    background: #10b981;
}

.toggle-slider {
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-speed);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(1.5rem);
}

/* Prayer Timer */
.prayer-timer {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px var(--shadow);
}

.prayer-timer.hidden {
    display: none;
}

.prayer-timer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.prayer-timer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prayer-timer-info svg {
    width: 2rem;
    height: 2rem;
    color: #a78bfa;
}

.prayer-timer-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.prayer-timer-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.prayer-timer-controls {
    display: flex;
    gap: 0.5rem;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.nav-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.nav-tab.active {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
}

.nav-tab svg {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-tab span {
    display: none;
}

@media (min-width: 640px) {
    .nav-tab span {
        display: inline;
    }
}

/* Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 1.5rem;
    animation: slide-up 0.6s ease-out;
}

/* Tab Panes */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fade-in 0.5s ease-out;
}

/* Dream Input */
.dream-input-section {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #c084fc;
}

.dream-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
    transition: all var(--transition-speed);
}

.dream-textarea:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.dream-textarea::placeholder {
    color: var(--text-muted);
}

.input-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.hint {
    padding: 0.375rem 0.75rem;
    background: rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
    font-family: var(--font-main);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.btn-large {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
}

/* Error Message */
.error-message {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: var(--border-radius);
    color: #fca5a5;
    margin-top: 1rem;
}

.error-message.hidden {
    display: none;
}

/* Interpretation Results */
.interpretation-results {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.dream-type-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.badge {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    box-shadow: 0 5px 20px var(--shadow);
    animation: pulse-badge 2s ease-in-out infinite;
}

.badge-prophetic {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.badge-warning {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.badge-guidance {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.badge-revelation {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.badge-spiritual {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.badge-alert {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-alert svg {
    width: 1.25rem;
    height: 1.25rem;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.result-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow);
}

.result-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.result-section h3 svg {
    width: 1.5rem;
    height: 1.5rem;
}

.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.theme-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(96, 165, 250, 0.3));
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    transition: transform var(--transition-speed);
    cursor: pointer;
}

.theme-tag:hover {
    transform: scale(1.1);
}

.spiritual-meaning {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(79, 70, 229, 0.2));
}

.spiritual-meaning p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.symbols-grid {
    display: grid;
    gap: 1.5rem;
}

.symbol-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform var(--transition-speed);
}

.symbol-card:hover {
    transform: translateY(-5px);
}

.symbol-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.symbol-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.symbol-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fbbf24;
}

.symbol-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #c084fc;
}

.symbol-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.scripture-box {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
    padding: 1rem;
    border-radius: 8px;
}

.scripture-box p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-style: italic;
    color: #fde68a;
    font-family: var(--font-serif);
}

.scripture-box svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.prophetic-insight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
}

.prophetic-insight p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.prayer-guidance {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.2));
}

.action-steps {
    margin-top: 1.5rem;
}

.action-steps h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.action-steps h4 svg {
    width: 1.25rem;
    height: 1.25rem;
}

.action-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    color: #6ee7b7;
}

.warfare-alert {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.warfare-elements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.warfare-tag {
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 50px;
    font-size: 0.875rem;
}

.warfare-verse {
    color: #fca5a5;
    font-style: italic;
    font-family: var(--font-serif);
}

.related-dreams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.related-dream {
    padding: 0.75rem 1rem;
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    transition: transform var(--transition-speed);
    cursor: pointer;
}

.related-dream:hover {
    transform: scale(1.05);
}

/* Section Title */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title svg {
    width: 1.75rem;
    height: 1.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-group svg {
    width: 1.25rem;
    height: 1.25rem;
}

.filter-label {
    font-weight: 600;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
}

/* Search Bar */
.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.search-input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Biblical Dreams List */
.biblical-dreams-list {
    display: grid;
    gap: 1rem;
}

.dream-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(79, 70, 229, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed);
}

.dream-item:hover {
    transform: translateY(-2px);
}

.dream-header-btn {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background var(--transition-speed);
}

.dream-header-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dream-title-section {
    flex: 1;
}

.dream-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.dream-title-row h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #c084fc;
}

.dream-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-ot {
    background: rgba(59, 130, 246, 0.3);
}

.badge-nt {
    background: rgba(16, 185, 129, 0.3);
}

.badge-category {
    background: rgba(139, 92, 246, 0.3);
}

.dream-reference {
    color: #60a5fa;
    font-size: 0.875rem;
}

.expand-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #c084fc;
    flex-shrink: 0;
}

.dream-content {
    padding: 0 1.5rem 1.5rem;
    animation: slide-down 0.3s ease-out;
}

.dream-summary {
    background: rgba(79, 70, 229, 0.15);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.dream-summary p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.dream-lesson {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
    padding: 1rem;
    border-radius: 8px;
}

.dream-lesson p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
}

.dream-lesson svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Symbols List */
.symbols-list {
    display: grid;
    gap: 1rem;
}

.symbol-item {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform var(--transition-speed);
}

.symbol-item:hover {
    transform: translateY(-3px);
}

/* Journal */
.journal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.journal-actions {
    display: flex;
    gap: 0.5rem;
}

.journal-list {
    display: grid;
    gap: 1rem;
}

.journal-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(79, 70, 229, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform var(--transition-speed);
}

.journal-item:hover {
    transform: translateY(-3px);
}

.journal-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.journal-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.journal-date svg {
    width: 1.25rem;
    height: 1.25rem;
}

.journal-actions-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.journal-delete-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--transition-speed);
}

.journal-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.journal-dream-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.journal-theme {
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
}

.journal-meaning {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    width: 4rem;
    height: 4rem;
    color: var(--text-muted);
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p:last-child {
    color: var(--text-muted);
}

/* Analytics */
.analytics-content {
    display: grid;
    gap: 1.5rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow);
}

.analytics-card-total {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(96, 165, 250, 0.3));
}

.analytics-card-types {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(139, 92, 246, 0.3));
}

.analytics-card-themes {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(20, 184, 166, 0.3));
}

.analytics-card-symbols {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.3));
}

.analytics-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.analytics-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.analytics-list {
    display: grid;
    gap: 0.75rem;
}

.analytics-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.analytics-item span:first-child {
    text-transform: capitalize;
}

.analytics-item span:last-child {
    font-weight: 700;
    color: #fbbf24;
}

/* Footer */
.app-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.footer-brand svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #a78bfa;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #c084fc;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: #a78bfa;
}

.footer-links span {
    color: var(--text-muted);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-verse {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid rgba(167, 139, 250, 0.2);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.125rem;
    color: #c084fc;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .title {
        font-size: 1.75rem;
    }
    
    .nav-tabs {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .header-left, .header-right {
        justify-content: center;
    }
    
    .header-right {
        order: -1;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .journal-header {
        flex-direction: column;
    }
    
    .journal-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .journal-actions .btn {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .nav-tab {
        padding: 0.75rem;
        flex: 1;
        justify-content: center;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .related-dreams-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .animated-background,
    .floating-elements,
    .theme-toggle,
    .icon-btn,
    .nav-tabs,
    .btn,
    .filters {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --card-bg: rgba(255, 255, 255, 0.2);
        --card-border: rgba(255, 255, 255, 0.5);
    }
}
