/* Prayer Builder Styles - Updated for Prayer Facilitation */
.prayer-builder-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000000;
}

.prayer-builder-header {
    text-align: center;
    margin-bottom: 30px;
}

.prayer-builder-header h2 {
    color: #DBA860;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.prayer-builder-header p {
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Form Styles */
.prayer-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    color: #000000;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #DBA860;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
    color: #000000;
    box-sizing: border-box;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #DBA860;
    box-shadow: 0 0 0 3px rgba(219, 168, 96, 0.1);
}

.form-help {
    display: block;
    color: #000000;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Privacy Options */
.privacy-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.privacy-option {
    position: relative;
}

.privacy-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.privacy-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #000000;
}

.privacy-option input[type="radio"]:checked + label {
    border-color: #DBA860;
    background-color: rgba(219, 168, 96, 0.1);
}

.privacy-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.privacy-title {
    font-weight: 600;
    color: #000000;
}

/* Prayer Approach (formerly Narrative Focus) */
.narrative-focuses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.focus-option {
    position: relative;
}

.focus-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.focus-option label {
    display: block;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    color: #000000;
}

.focus-option input[type="radio"]:checked + label {
    border-color: #DBA860;
    background-color: rgba(219, 168, 96, 0.1);
}

.focus-title {
    display: block;
    font-weight: 600;
    color: #000000;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.focus-desc {
    display: block;
    font-size: 0.8rem;
    color: #000000;
}

/* Categories */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #000000;
}

.category-tag input[type="checkbox"] {
    display: none;
}

.category-tag:hover {
    background-color: #e5e7eb;
}

.category-tag input[type="checkbox"]:checked + span,
.category-tag:has(input[type="checkbox"]:checked) {
    background-color: #DBA860;
    color: white;
    border-color: #DBA860;
}

/* Submit Button */
.prayer-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #DBA860, #C19A4F);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.prayer-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 168, 96, 0.3);
}

.prayer-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Prayer Moment Facilitation Styles */
.prayer-moment {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.prayer-moment-content h3 {
    color: #DBA860;
    font-size: 2rem;
    margin-bottom: 20px;
}

.prayer-guidance {
    margin: 30px 0;
}

.prayer-guidance p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 30px;
}

.prayer-timer {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.timer-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#DBA860 0deg, #e5e7eb 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease;
}

.timer-circle::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: white;
    border-radius: 50%;
}

.timer-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #DBA860;
    z-index: 1;
}

.timer-instruction {
    font-style: italic;
    color: #6b7280;
    font-size: 1rem;
}

.prayer-continue-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.prayer-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

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

/* Message Display */
.prayer-display {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
    color: #000000;
}

.prayer-content h3 {
    color: #DBA860;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Avatar Section - Updated for Emojis */
.avatar-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.avatar-image {
    text-align: center;
    margin-bottom: 15px;
}

.avatar-selector label {
    display: block;
    font-weight: 600;
    color: #DBA860;
    margin-bottom: 10px;
}

.avatar-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    max-width: 600px;
}

.avatar-option {
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    padding: 12px;
    text-align: center;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.avatar-option:hover {
    border-color: #DBA860;
    background-color: rgba(219, 168, 96, 0.1);
}

.avatar-option.selected {
    border-color: #DBA860;
    background-color: rgba(219, 168, 96, 0.2);
    box-shadow: 0 0 0 2px rgba(219, 168, 96, 0.3);
}

.avatar-emoji {
    font-size: 2rem;
    line-height: 1;
}

.avatar-label {
    font-size: 0.75rem;
    color: #4a5568;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.selected-avatar-label {
    font-size: 0.9rem;
    color: #DBA860;
    font-weight: 600;
    text-align: center;
    margin-top: 5px;
}

/* Intro Text Section */
.intro-text-section {
    margin-bottom: 25px;
}

.intro-text-section label {
    display: block;
    font-weight: 600;
    color: #DBA860;
    margin-bottom: 8px;
}

.intro-text-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
}

/* Message Preview - FIXED FORMATTING */
.message-preview {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    background: linear-gradient(135deg, #fefefe, #f8fafc);
}

.message-intro {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 20px;
    font-style: italic;
    white-space: pre-line; /* Preserve line breaks */
}

.prayer-text {
    background-color: rgba(219, 168, 96, 0.1);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #DBA860;
}

/* FIXED: Prayer lines with proper single spacing */
.prayer-line {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2d3748;
    text-transform: none; /* Prevent all caps */
}

.prayer-line.amen-line {
    margin-bottom: 0;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

/* CRITICAL FIX: Ensure prayer reflection section is always visible and properly styled */
.prayer-reflection {
    border-top: 2px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 20px;
    display: block !important; /* Force display - this is the key fix */
    visibility: visible !important; /* Ensure visibility */
}

.prayer-reflection h4 {
    color: #DBA860;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.reflection-text {
    color: #2d3748 !important; /* Ensure good contrast */
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    padding: 15px;
    background-color: rgba(219, 168, 96, 0.05);
    border-radius: 8px;
    border-left: 3px solid #DBA860;
}

/* Prayer Actions */
.prayer-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #000000;
    min-height: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.action-btn:hover {
    border-color: #DBA860;
    background-color: rgba(219, 168, 96, 0.1);
    transform: translateY(-2px);
    color: #000000;
    text-decoration: none;
}

.action-btn:focus {
    outline: 2px solid #DBA860;
    outline-offset: 2px;
}

.new-prayer-btn {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #DBA860, #C19A4F);
    color: white;
    border-color: transparent;
    font-weight: 600;
}

.new-prayer-btn:hover {
    background: linear-gradient(135deg, #C19A4F, #A8874A);
    transform: translateY(-2px);
    color: white;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    color: #000000;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
}

.close:hover {
    color: #DBA860;
}

.modal-content h3 {
    color: #DBA860;
    margin-bottom: 20px;
    text-align: center;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 15px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #000000;
}

.share-option:hover {
    border-color: #DBA860;
    background-color: rgba(219, 168, 96, 0.1);
    transform: translateY(-2px);
}

#share-form {
    margin-top: 20px;
}

#share-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    color: #000000;
}

#send-share {
    width: 100%;
    padding: 12px;
    background: #DBA860;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#send-share:hover {
    background: #C19A4F;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .prayer-builder-container {
        padding: 15px;
    }
    
    .prayer-form,
    .prayer-display,
    .prayer-moment {
        padding: 20px;
    }
    
    .privacy-options,
    .narrative-focuses {
        grid-template-columns: 1fr;
    }
    
    .prayer-actions {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .action-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .new-prayer-btn {
        grid-column: 1 / -1;
    }
    
    .avatar-options {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    }
    
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-text {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .prayer-actions {
        grid-template-columns: 1fr;
    }
    
    .prayer-builder-header h2 {
        font-size: 2rem;
    }
    
    .categories {
        justify-content: center;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Accessibility */
.action-btn:focus,
.share-option:focus,
.prayer-submit-btn:focus,
.prayer-continue-btn:focus {
    outline: 2px solid #DBA860;
    outline-offset: 2px;
}

/* Saved Prayers Section */
.saved-prayers-toggle {
    text-align: center;
    margin: 30px 0;
}

.show-saved-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-saved-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.saved-prayers-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #e5e7eb;
}

.saved-prayers-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
}

.saved-prayers-header h3 {
    color: #DBA860;
    font-size: 1.8rem;
    margin: 0;
}

.saved-prayers-header p {
    color: #6b7280;
    margin: 5px 0 0 0;
    font-size: 0.95rem;
}

.close-saved-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-saved-btn:hover {
    background: #dc2626;
}

.saved-prayers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loading-saved-prayers {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-saved-prayers .spinner {
    margin: 0 auto 15px;
}

.no-saved-prayers {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

.saved-prayer-item {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.saved-prayer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #DBA860;
}

.saved-prayer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.saved-prayer-title {
    color: #DBA860;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.saved-prayer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.saved-prayer-date {
    color: #6b7280;
    font-size: 0.85rem;
}

.saved-prayer-approach {
    background: rgba(219, 168, 96, 0.1);
    color: #DBA860;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.saved-prayer-preview {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line; /* Preserve line breaks for proper display */
}

.saved-prayer-notes {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 15px;
}

.saved-prayer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.saved-prayer-actions button {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.load-saved-prayer {
    border-color: #10b981;
    color: #10b981;
}

.load-saved-prayer:hover {
    background: #10b981;
    color: white;
}

.edit-saved-prayer {
    border-color: #f59e0b;
    color: #f59e0b;
}

.edit-saved-prayer:hover {
    background: #f59e0b;
    color: white;
}

.delete-saved-prayer {
    border-color: #ef4444;
    color: #ef4444;
}

.delete-saved-prayer:hover {
    background: #ef4444;
    color: white;
}

.send-saved-prayer {
    border-color: #6366f1;
    color: #6366f1;
}

.send-saved-prayer:hover {
    background: #6366f1;
    color: white;
}

/* Save Prayer Modal */
.save-prayer-submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #DBA860, #C19A4F);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.save-prayer-submit-btn:hover {
    background: linear-gradient(135deg, #C19A4F, #A8874A);
    transform: translateY(-1px);
}

/* Responsive Design for Saved Prayers */
@media (max-width: 768px) {
    .saved-prayers-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .close-saved-btn {
        align-self: flex-end;
    }
    
    .saved-prayer-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .saved-prayer-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 10px;
    }
    
    .saved-prayer-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .saved-prayers-section {
        padding: 20px;
    }
    
    .saved-prayer-actions {
        flex-direction: column;
    }
    
    .saved-prayer-actions button {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .prayer-actions,
    .share-options,
    .modal,
    .avatar-section,
    .intro-text-section {
        display: none !important;
    }
    
    .prayer-display {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .message-preview {
        border: none;
        background: white;
    }
    
    .prayer-line {
        line-height: 1.5;
        margin-bottom: 6px;
    }
    
    /* Ensure reflection prints properly */
    .prayer-reflection {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* ====== AUTHENTICATION STYLES ====== */

/* Custom Authentication Styles */
.prayer-auth-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.auth-status {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-guest, .auth-user {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-message, .auth-welcome {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-welcome span {
    color: #DBA860;
    font-weight: 600;
}

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

.auth-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #374151;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-btn, .register-btn {
    border-color: #DBA860;
    color: #DBA860;
}

.login-btn:hover, .register-btn:hover {
    background: #DBA860;
    color: white;
}

.dashboard-btn {
    border-color: #10b981;
    color: #10b981;
}

.dashboard-btn:hover {
    background: #10b981;
    color: white;
}

.logout-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.logout-btn:hover {
    background: #ef4444;
    color: white;
}

/* Authentication Modal Styles */
.auth-modal .modal-content {
    max-width: 450px;
    width: 90%;
}

.auth-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.user-preferences {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 20px;
}

.user-preferences h4 {
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: #DBA860;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    background: #c49950;
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-switch a {
    color: #DBA860;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ====== DASHBOARD MODAL STYLES ====== */

/* Dashboard Modal Styles */
.dashboard-modal .modal-content {
    max-width: 800px;
    width: 95%;
    height: 85vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 2.5vh auto;
}

.dashboard-modal .modal-content > h3 {
    flex-shrink: 0;
    margin: 0 0 20px 0;
    padding: 0;
}

.dashboard-modal .dashboard-tabs {
    flex-shrink: 0;
    margin-bottom: 20px;
}

.dashboard-modal .tab-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    margin-right: -10px;
}

.dashboard-modal .tab-content::-webkit-scrollbar {
    width: 6px;
}

.dashboard-modal .tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dashboard-modal .tab-content::-webkit-scrollbar-thumb {
    background: #DBA860;
    border-radius: 3px;
}

.dashboard-modal .tab-content::-webkit-scrollbar-thumb:hover {
    background: #c49950;
}

.large-modal {
    width: 95% !important;
    max-width: 800px !important;
}

.dashboard-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 25px;
    gap: 5px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-btn.active {
    color: #DBA860;
    border-bottom-color: #DBA860;
}

.tab-btn:hover {
    color: #DBA860;
    background: rgba(219, 168, 96, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* User Status Indicators */
.user-prayer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #DBA860;
    margin-bottom: 5px;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Prayer History Styles */
.prayer-history-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.prayer-history-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #DBA860;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.history-date {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
}

.history-approach {
    background: rgba(219, 168, 96, 0.1);
    color: #DBA860;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.history-preview {
    color: #4b5563;
    line-height: 1.4;
    font-size: 0.85rem;
}

/* Saved Prayers Styles */
.saved-prayer-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.saved-prayer-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #DBA860;
}

.saved-prayer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.saved-prayer-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
    margin-right: 10px;
}

.saved-prayer-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.saved-prayer-date {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
}

.saved-prayer-approach {
    background: rgba(219, 168, 96, 0.1);
    color: #DBA860;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.saved-prayer-notes {
    background: #f8fafc;
    border-left: 3px solid #DBA860;
    padding: 6px 10px;
    margin: 6px 0;
    font-size: 0.8rem;
    color: #4b5563;
    border-radius: 0 4px 4px 0;
}

.saved-prayer-preview {
    color: #4b5563;
    line-height: 1.4;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.saved-prayer-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.saved-prayer-actions button {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.saved-prayer-actions .load-saved-prayer {
    border-color: #10b981;
    color: #10b981;
}

.saved-prayer-actions .load-saved-prayer:hover {
    background: #10b981;
    color: white;
}

.saved-prayer-actions .send-saved-prayer {
    border-color: #3b82f6;
    color: #3b82f6;
}

.saved-prayer-actions .send-saved-prayer:hover {
    background: #3b82f6;
    color: white;
}

.saved-prayer-actions .delete-saved-prayer {
    border-color: #ef4444;
    color: #ef4444;
}

.saved-prayer-actions .delete-saved-prayer:hover {
    background: #ef4444;
    color: white;
}

/* Mobile Responsive Design for Dashboard */
@media (max-width: 768px) {
    .dashboard-modal .modal-content {
        width: 98%;
        height: 90vh;
        margin: 2vh auto;
        padding: 15px;
    }
    
    .dashboard-tabs {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .user-prayer-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .saved-prayer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .saved-prayer-meta {
        gap: 6px;
    }
    
    .saved-prayer-actions {
        gap: 4px;
    }
    
    .saved-prayer-actions button {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .dashboard-modal .modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        max-height: none;
    }
    
    .user-prayer-stats {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
}

/* NEW UPDATES 1 - Improved Prayer Journey dashboard UI and scrolling */