/* Enhanced Daily Schedule Assistant Styles */

:root {
    --primary-color: #2563eb;
    --primary-light: #dbeafe;
    --primary-dark: #1d4ed8;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

body.dark {
    background-color: #1f2937;
    color: #f9fafb;
}

body.dark .bg-white {
    background-color: #374151 !important;
    color: #f9fafb;
}

body.dark .text-gray-900 {
    color: #f9fafb !important;
}

body.dark .border-gray-300 {
    border-color: #4b5563 !important;
}

/* Navigation Styles */
.nav-btn {
    transition: all 0.3s ease;
}

.nav-btn.active {
    color: #2563eb;
    border-color: #2563eb;
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.3s ease-in;
}

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

/* Task Item Styles */
.task-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.task-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.task-item.completed {
    background: #f0f9f0;
    border-color: #10b981;
}

.task-item.completed .task-name {
    text-decoration: line-through;
    color: #6b7280;
}

.task-item.overdue {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Priority Indicators */
.priority-high {
    border-left: 4px solid #ef4444;
}

.priority-medium {
    border-left: 4px solid #f59e0b;
}

.priority-low {
    border-left: 4px solid #10b981;
}

/* Schedule Type Badges */
.schedule-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.schedule-daily {
    background: #dbeafe;
    color: #1e40af;
}

.schedule-weekly {
    background: #fef3c7;
    color: #92400e;
}

.schedule-custom {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Bible Progress Styles */
.bible-chapter {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.bible-chapter.completed {
    background: #ecfdf5;
    border-color: #10b981;
}

.bible-chapter.completed .chapter-name {
    text-decoration: line-through;
    color: #6b7280;
}

/* Prayer Request Styles */
.prayer-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.prayer-item.answered {
    background: #f0f9f0;
    border-color: #10b981;
}

.prayer-category {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background: #e5e7eb;
    color: #374151;
}

.prayer-category.personal {
    background: #dbeafe;
    color: #1e40af;
}

.prayer-category.family {
    background: #fef3c7;
    color: #92400e;
}

.prayer-category.health {
    background: #fecaca;
    color: #dc2626;
}

.prayer-category.work {
    background: #e5e7eb;
    color: #374151;
}

.prayer-category.others {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Chat Styles */
.chat-message {
    margin-bottom: 1rem;
}

.chat-message.user {
    text-align: right;
}

.chat-message.assistant {
    text-align: left;
}

.message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    word-wrap: break-word;
}

.message-bubble.user {
    background: #2563eb;
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.message-bubble.assistant {
    background: #f3f4f6;
    color: #374151;
    border-bottom-left-radius: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Quick Question Buttons */
.quick-question {
    transition: all 0.3s ease;
}

.quick-question:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button Styles */
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Animation Classes */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .nav-btn i {
        display: block;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
    
    .task-item {
        padding: 0.75rem;
    }
    
    .message-bubble {
        max-width: 90%;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .bg-white {
        background-color: #1f2937 !important;
        color: white;
    }
    
    .text-gray-900 {
        color: #f9fafb !important;
    }
    
    .border-gray-300 {
        border-color: #374151 !important;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Badge Styles */
.badge-earned {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
}

.badge-locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Points Animation */
@keyframes pointsEarned {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.points-animation {
    animation: pointsEarned 0.6s ease-in-out;
}

/* Theme Color Styles */
.theme-blue { --primary-color: #2563eb; --primary-light: #dbeafe; --primary-dark: #1d4ed8; }
.theme-green { --primary-color: #059669; --primary-light: #d1fae5; --primary-dark: #047857; }
.theme-purple { --primary-color: #7c3aed; --primary-light: #e9d5ff; --primary-dark: #6d28d9; }
.theme-red { --primary-color: #dc2626; --primary-light: #fecaca; --primary-dark: #b91c1c; }
.theme-orange { --primary-color: #ea580c; --primary-light: #fed7aa; --primary-dark: #c2410c; }
.theme-pink { --primary-color: #db2777; --primary-light: #fce7f3; --primary-dark: #be185d; }
.theme-teal { --primary-color: #0d9488; --primary-light: #ccfbf1; --primary-dark: #0f766e; }

/* Alarm Indicator */
.alarm-enabled {
    position: relative;
}

.alarm-enabled::after {
    content: '🔔';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
}

/* Profile Statistics */
.stat-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

/* Settings Modal */
.settings-section {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.settings-section:last-child {
    border-bottom: none;
}

/* Notification Styles */
.notification-slide-in {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Task Items */
.task-item-enhanced {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.task-item-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.task-item-enhanced.priority-high::before {
    background: #ef4444;
}

.task-item-enhanced.priority-medium::before {
    background: #f59e0b;
}

.task-item-enhanced.priority-low::before {
    background: #10b981;
}

.task-item-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Profile Avatar */
.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.profile-avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Text Size Classes */
.text-size-small { font-size: 14px; }
.text-size-medium { font-size: 16px; }
.text-size-large { font-size: 18px; }
.text-size-extra-large { font-size: 20px; }

/* Improved Form Styles */
.form-input-enhanced {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: inherit;
}

.form-input-enhanced:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: var(--primary-light);
}

/* Enhanced Buttons */
.btn-enhanced {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary-enhanced {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Bible Progress Enhanced */
.bible-progress-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid #e5e7eb;
    border-top-color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.bible-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Custom Scrollbar */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f7fafc;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Dark Mode Enhancements */
body.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #374151;
}

body.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #6b7280;
}

body.dark .border-gray-100 {
    border-color: #4b5563 !important;
}

body.dark .bg-gray-50 {
    background-color: #374151 !important;
}

/* Responsive Enhancements */
@media (max-width: 640px) {
    .profile-avatar-large {
        width: 80px;
        height: 80px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .task-item-enhanced {
        padding: 1rem;
    }
}