/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Inter', system-ui, sans-serif;
    background: #FAFAFA;
    min-height: 100vh;
    color: #1F2937;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Container and layout */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.welcome-card {
    background: white;
    border-radius: 12px;
    padding: 48px 32px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Welcome card main title */
.welcome-card h1 {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 32px;
    text-align: center;
    font-family: 'Georgia', serif;
}

/* Logo styling */
.logo {
    margin-bottom: 24px;
    text-align: center;
}

.logo-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 0;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    font-family: 'Georgia', serif;
}

.subtitle {
    font-size: 18px;
    color: #6B7280;
    margin-bottom: 32px;
    font-weight: 400;
    font-family: 'Georgia', serif;
}

/* Features */
.features {
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: #FEF3C7;
    border-radius: 12px;
    font-size: 15px;
    color: #92400E;
    transition: all 0.3s ease;
    border: 1px solid #FDE68A;
}

.feature:hover {
    background: #FDE68A;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Description */
.description {
    margin-bottom: 32px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.description p {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    font-family: 'Georgia', serif;
}

.description strong {
    color: #111827;
    font-weight: 600;
}

/* Buttons - minimal design */
.action-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: #F59E0B;
    color: white;
    border: 1px solid #F59E0B;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background: #D97706;
    border-color: #D97706;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #D1D5DB;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
    background: #F9FAFB;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Footer */
.footer {
    margin-top: 32px;
    padding-top: 20px;
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.footer a {
    color: #F59E0B;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* Journal specific styles */
.journal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.journal-header {
    text-align: center;
    margin-bottom: 40px;
}

.day-indicator {
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.prompt-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.prompt-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    font-family: 'Georgia', serif;
}

.prompt-text {
    color: #374151;
    line-height: 1.6;
    font-family: 'Georgia', serif;
}

.mood-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.mood-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    font-family: 'Georgia', serif;
}

.mood-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 16px;
}

.mood-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F59E0B;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mood-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F59E0B;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mood-value {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.journal-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    background: white;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.journal-textarea:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.timer {
    background: #FEF3C7;
    color: #92400E;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid #FDE68A;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: #F59E0B;
    transition: width 0.3s ease;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #E5E7EB;
}

.modal h2 {
    margin-bottom: 12px;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

.modal p {
    margin-bottom: 24px;
    color: #6B7280;
    font-size: 1rem;
}

.pincode-input {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.pincode-digit {
    width: 48px;
    height: 48px;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pincode-digit:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .welcome-card {
        padding: 32px 20px;
        margin: 10px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .feature {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .journal-container {
        padding: 16px;
    }
    
    .prompt-card,
    .mood-section {
        padding: 20px;
    }
    
    .pincode-digit {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .welcome-card {
        padding: 24px 16px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .feature {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .pincode-digit {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Loading and status styles */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #F3F4F6;
    border-radius: 50%;
    border-top-color: #F59E0B;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success {
    color: #059669;
    font-weight: 500;
}

.error {
    color: #DC2626;
    font-weight: 500;
}

/* Focus styles for accessibility */
* {
    outline: none;
}

button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* Info page styles */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-btn {
    background: #F59E0B;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #D97706;
}

.info-content {
    line-height: 1.7;
}

.info-section {
    margin-bottom: 32px;
}

.info-section h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Georgia', serif;
}

.info-section p {
    color: #374151;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Georgia', serif;
}

.info-section p:last-child {
    margin-bottom: 0;
}

.info-section strong {
    color: #111827;
    font-weight: 600;
}

.info-section a {
    color: #F59E0B;
    text-decoration: none;
    font-weight: 500;
}

.info-section a:hover {
    text-decoration: underline;
}

.process-steps {
    margin: 32px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.step-number {
    background: #F59E0B;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.step-content p {
    color: #374151;
    margin: 0;
    font-family: 'Georgia', serif;
}

.prompts-list {
    margin: 24px 0;
}

.prompt-item {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.prompt-day {
    font-weight: 600;
    color: #92400E;
    margin-bottom: 8px;
    font-size: 14px;
}

.prompt-text {
    color: #92400E;
    font-family: 'Georgia', serif;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.feature-item {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.feature-item .feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    color: #F59E0B;
}

.feature-item h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.feature-item p {
    color: #6B7280;
    margin: 0;
    font-family: 'Georgia', serif;
}

.time-info {
    margin: 32px 0;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.time-icon {
    color: #F59E0B;
    font-size: 20px;
}

.time-content h3 {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: 'Georgia', serif;
}

.time-content p {
    color: #6B7280;
    margin: 0;
    font-family: 'Georgia', serif;
}

.mood-explanation {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.mood-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
}

.mood-level {
    text-align: center;
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.mood-level:hover {
    background: #FEF3C7;
}

.mood-number {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.mood-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

/* Final page styles */
.final-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.final-header {
    text-align: center;
    margin-bottom: 32px;
}

.completion-badge {
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.summary-section,
.export-section {
    margin-bottom: 32px;
}

.summary-section h2,
.export-section h2 {
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Georgia', serif;
}

.summary-content {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
}

.day-summary {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.day-summary:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.day-summary h3 {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.mood-summary {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.text-summary p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
    font-family: 'Georgia', serif;
}

.export-section p,
.export-section a {
    color: #374151;
    line-height: 1.6;
    font-family: 'Georgia', serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-card,
    .final-card {
        margin: 16px;
        padding: 24px;
    }
    
    .step,
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .mood-scale {
        flex-direction: column;
        gap: 8px;
    }
    
    .mood-level {
        width: 100%;
        text-align: center;
    }
    
    .mood-number {
        font-size: 16px;
    }
    
    .mood-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .info-card,
    .final-card {
        margin: 8px;
        padding: 20px;
    }
    
    .step,
    .feature-item {
        padding: 16px;
    }
    
    .info-section h2 {
        font-size: 20px;
    }
    
    .step-content h3,
    .feature-item h3 {
        font-size: 16px;
    }
} 