/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Email Verification Header */
.email-verification-header {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    animation: slideDown 0.3s ease-out;
}

.email-verification-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.email-verification-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}

.email-verification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.email-verification-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.email-verification-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

.email-verification-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-verification-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.email-verification-actions .btn-verify {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.email-verification-actions .btn-verify:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.email-verification-actions .btn-resend {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-verification-actions .btn-resend:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.email-verification-actions .btn-dismiss {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 8px;
    min-width: auto;
}

.email-verification-actions .btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adjust navbar position when email verification header is shown */
body.has-email-verification-header .navbar {
    top: 60px;
}

body.has-email-verification-header .main-content {
    padding-top: 130px; /* navbar height + email header height */
}

/* Mobile responsive styles for email verification header */
@media (max-width: 768px) {
    .email-verification-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .email-verification-text {
        order: 1;
    }
    
    .email-verification-actions {
        order: 2;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .email-verification-actions .btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .email-verification-title {
        font-size: 0.9rem;
    }
    
    .email-verification-subtitle {
        font-size: 0.75rem;
    }
    
    body.has-email-verification-header .main-content {
        padding-top: 150px; /* More space for mobile */
    }
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
}

.user-info span {
    font-weight: 500;
}

.user-info .btn {
    border: 1px solid rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    transition: all 0.3s ease;
}

.user-info .btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.section {
    display: none;
    padding: 40px 0;
    min-height: calc(100vh - 70px);
}

.section.active {
    display: block;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-icon {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.btn-full {
    width: 100%;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background-color: white;
    margin: 20px auto;
    padding: 40px;
    padding-bottom: 60px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    min-height: auto;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #667eea;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Enhanced select styling */
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #667eea;
}

/* Profile form specific styling */
.profile-form .form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.profile-form select {
    font-size: 1rem;
    color: #333;
}

.profile-form .form-group:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.profile-form .form-group:has(input[type="checkbox"]) label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    color: #667eea;
    font-size: 0.9rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.location-info i {
    color: #667eea;
}

.location-selection {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}

.location-options {
    margin-top: 15px;
}

.detected-location, .selected-location {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.detected-location h4, .selected-location h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detected-location h4 i {
    color: #28a745;
}

.selected-location h4 i {
    color: #007bff;
}

.location-details {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.common-cities h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.common-cities h4 i {
    color: #667eea;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.city-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
}

.city-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.city-btn i {
    color: #667eea;
}

.city-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.city-btn.selected i {
    color: white;
}

@media (max-width: 768px) {
    .city-grid {
        grid-template-columns: 1fr;
    }

    .location-selection {
        padding: 10px;
    }

    .detected-location, .selected-location {
        padding: 10px;
    }
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-footer a {
    color: #667eea;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Prayer Times */
.prayer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 768px) {
    .prayer-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .prayer-date {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

.prayer-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.prayer-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.prayer-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

/* Five-state prayer completion system */
.prayer-card.future {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%); /* Gray - before prayer time */
    color: white;
}

.prayer-card.completed {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); /* Green - terminal state */
    color: white;
}

.prayer-card.qada {
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%); /* Yellow - terminal state */
    color: white;
}

.prayer-card.missed {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%); /* Red - can go to qada */
    color: white;
}

.prayer-card.in-progress {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); /* Blue - can go to completed */
    color: white;
    animation: pulse 2s infinite;
}

/* Legacy styles for backward compatibility */
.prayer-card.late {
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%); /* Yellow */
    color: white;
}

.prayer-card.missed {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%); /* Red */
    color: white;
}

.prayer-card.available {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); /* Green */
    color: white;
    animation: pulse 2s infinite;
}

.prayer-card.upcoming {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.qada-btn {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
    color: white !important;
    font-size: 16px !important;
    padding: 10px 20px !important;
    border: 3px solid yellow !important;
}

.qada-btn:hover {
    background: #7b1fa2 !important;
    border-color: #7b1fa2 !important;
}

.qada-btn-small {
    background: #ffc107;
    color: #000;
    border: 1px solid #ff9800;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    margin: 8px auto 0 auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    width: fit-content;
}

.qada-btn-small:hover {
    background: #ff9800;
    color: #000;
    transform: translateY(-1px);
}

.prayer-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.prayer-time {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.prayer-status {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.complete-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.complete-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.complete-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Dashboard - Weekly Calendar */
.weekly-calendar-header {
    display: none; /* Hidden by default, shown only for logged-in users */
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 25px 0;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.week-nav-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.week-info {
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

.week-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.week-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
}

.weekly-calendar-container {
    display: none; /* Hidden by default, shown only for logged-in users */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.weekly-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.weekly-day-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.weekly-day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weekly-day-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.weekly-day-card:hover::before {
    opacity: 1;
}

.weekly-day-card.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.weekly-day-card.today::before {
    opacity: 1;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.weekly-day-card.selected {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.weekly-day-card.selected::before {
    opacity: 1;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Prayer Status Card Colors */
.weekly-day-card.all-complete {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.weekly-day-card.all-complete::before {
    opacity: 1;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.weekly-day-card.has-qada {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.weekly-day-card.has-qada::before {
    opacity: 1;
    background: linear-gradient(90deg, #FFC107, #FF9800);
}

.weekly-day-card.all-missed {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    border-color: rgba(244, 67, 54, 0.5);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

.weekly-day-card.all-missed::before {
    opacity: 1;
    background: linear-gradient(90deg, #F44336, #D32F2F);
}

.weekly-day-card.pending {
    background: rgba(33, 150, 243, 0.2); /* Blue for pending */
    border-color: rgba(33, 150, 243, 0.4);
}

.weekly-day-card.pending::before {
    opacity: 0.3;
}

.weekly-day-card.future {
    background: rgba(255, 255, 255, 0.1); /* White for future */
    border-color: rgba(255, 255, 255, 0.3);
}

.weekly-day-card.future::before {
    opacity: 0;
}

.weekly-day-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.weekly-day-card.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    border-color: transparent;
}

.weekly-day-header {
    text-align: center;
    margin-bottom: 15px;
}

.weekly-day-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weekly-day-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.weekly-day-prayers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.prayer-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.prayer-status-indicator.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.prayer-status-indicator.partial {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.prayer-status-indicator.missed {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.prayer-status-indicator.pending {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.prayer-status-indicator.qada {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.prayer-status-indicator.mixed {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.prayer-status-indicator.future {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.weekly-day-summary {
    margin-top: 10px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.prayer-dot.disabled {
    background: #666;
    opacity: 0.5;
}

.calendar-day-number {
    font-size: 1rem;
    font-weight: 500;
}

.calendar-day-prayers {
    display: flex;
    gap: 2px;
    margin-top: 2px;
    flex-wrap: wrap;
    justify-content: center;
}

.prayer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4CAF50; /* Green for completed */
}

.prayer-dot.completed {
    background: #4CAF50; /* Green for completed */
}

.prayer-dot.pending {
    background: #ff9800; /* Orange for pending */
}

.prayer-dot.missed {
    background: #f44336; /* Red for missed */
}

.prayer-dot.qada {
    background: #ffc107; /* Yellow for Qada */
    border: 1px solid #ff9800;
}

.selected-day-prayers {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.selected-day-title {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.selected-day-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.selected-day-prayer {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.selected-day-prayer.completed {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.selected-day-prayer.pending {
    background: rgba(255, 152, 0, 0.3);
    border: 1px solid rgba(255, 152, 0, 0.5);
}

.selected-day-prayer.qada {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.selected-day-prayer.late {
    background: rgba(255, 87, 34, 0.3);
    border: 1px solid rgba(255, 87, 34, 0.5);
}

.selected-day-prayer.missed {
    background: rgba(244, 67, 54, 0.3);
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.selected-day-prayer-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.selected-day-prayer-time {
    font-size: 1.1rem;
    font-weight: 500;
}

.selected-day-prayer-status {
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.8;
}

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

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.stat-description {
    font-size: 0.9rem;
    color: #888;
}

/* Family Members */
.family-section {
    margin-top: 30px;
}

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

.family-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.family-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.family-info p {
    color: #666;
    font-size: 0.9rem;
}

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

.family-actions button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.family-actions button:hover {
    background: #f0f0f0;
}

/* Profile */
.profile-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-icon {
        font-size: 8rem;
        margin-top: 40px;
    }

    .form-row {
        flex-direction: column;
    }

    .modal {
        padding: 10px 0;
    }

    .modal-content {
        margin: 10px auto;
        padding: 30px 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Login Method Tabs */
.login-method-selection {
    margin-bottom: 20px;
}

.method-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.method-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
}

.method-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.method-tab:hover:not(.active) {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

/* Email Verification Styles */
.verification-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #667eea;
    font-size: 0.9rem;
}

.verification-info i {
    margin-right: 8px;
}

/* OTP Input Styles */
#otpCode {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }
.visible { display: block; }

/* Enhanced Home Page Styles */

/* Features Section */
.features-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

/* Prayer Times Preview */
.prayer-times-preview {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.03);
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.prayer-time-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.prayer-time-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.prayer-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.prayer-time {
    color: #4CAF50;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.prayer-times-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
}

/* Inspirational Section */
.inspirational-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
}

.quote-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.quote-text {
    font-size: 1.8rem;
    color: white;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

.quote-source {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.03);
}

.cta-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-large i {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .quote-text {
        font-size: 1.4rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .prayer-times-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-card {
        padding: 30px 20px;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    /* Weekly Calendar Mobile - Single Day View */
    .weekly-calendar-header {
        padding: 20px 15px;
        margin: 20px 0 15px 0;
    }
    
    .week-title {
        font-size: 1.4rem;
    }
    
    .week-subtitle {
        font-size: 0.9rem;
    }
    
    .week-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .weekly-calendar-container {
        padding: 20px 15px;
    }
    
    /* Mobile: Show single day at a time */
    .weekly-calendar-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .weekly-day-card {
        width: 100%;
        min-height: 200px;
        padding: 25px 20px;
        margin: 0;
    }
    
    .weekly-day-header {
        margin-bottom: 20px;
    }
    
    .weekly-day-name {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .weekly-day-number {
        font-size: 2.2rem;
    }
    
    .weekly-day-prayers {
        margin-bottom: 15px;
    }
    
    .prayer-status-indicator {
        padding: 12px 16px;
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .weekly-day-summary {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Mobile day navigation */
    .mobile-day-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .mobile-day-nav-btn {
        background: linear-gradient(135deg, #667eea, #764ba2);
        border: none;
        color: white;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .mobile-day-nav-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    
    .mobile-day-nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }
    
    .mobile-day-info {
        text-align: center;
        flex: 1;
        margin: 0 15px;
    }
    
    .mobile-day-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: white;
        margin: 0;
    }
    
    .mobile-day-subtitle {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        margin: 5px 0 0 0;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) and (min-width: 481px) {
    .weekly-calendar-grid {
        gap: 12px;
    }
    
    .weekly-day-card {
        min-height: 130px;
        padding: 18px 12px;
    }
    
    .weekly-day-number {
        font-size: 1.6rem;
    }
}

/* Time Window Information Styles */
.time-window-info {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-window-info small {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.2rem 0;
}

.time-window-info-small {
    margin-top: 0.25rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.time-window-info-small small {
    display: block;
    font-size: 0.7rem;
    color: #666;
    margin: 0.1rem 0;
}

/* Prayer Card Status Enhancements */
.prayer-card.available {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    animation: pulse 2s infinite;
}

.prayer-card.upcoming {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.prayer-card.missed {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}
