.container {
    max-width: 1200px;
    margin: 30px auto; 
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    margin-top: 2%;
}
    
.location-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.dropdown-wrapper {
    position: relative;
    flex: 1;
    max-width: 220px;
    min-width: 150px;
}

.location-selector select, .location-selector button, .city-search-input {
    padding: 6px 22px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 16px;
    width: 100%;
    font-weight: 600;
    box-sizing: border-box;
    height: 52px;
}

.location-selector select {
    background: white url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23334155'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e") no-repeat right 15px center;
    background-size: 16px;
    appearance: none;
}

.location-selector button {
    background: rgb(83, 104, 5);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    width: 18%;
    min-width: 120px;
}

.location-selector button:hover { 
    transform: translateY(-2px);
}

.time-cards {
    display: flex;
    gap: 25px;
    margin: 25px 0 35px;
}

.time-card {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 30px 25px;
    text-align: center;
    border: 1px solid #e2e8f0;
    position: relative;
}

.time-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; 
}

/* Next Prayer Card Special Styling */
.time-card.next-prayer-card {
    background: white;
    color: black;
    border: 2px solid #e2e8f0;
}

.time-card.next-prayer-card .time-display,
.time-card.next-prayer-card .time-label {
    color: black;
}
 

.time-display {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px; 
}

.time-label {
    font-size: 18px;
    font-weight: 500;
    color: black;
}

.section-title {
    margin-bottom: 15px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    font-size: 28px;
}

.prayers-row { 
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.prayer {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.prayer:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.prayer.current-prayer {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 3px solid #f59e0b;
    transform: scale(1.05);
}

/* NEXT PRAYER CARD STYLING - Yeh woh change hai jo aap chahte hain */
.prayer.next-prayer-highlight {
    background: rgb(83, 104, 5);
    border: 3px solid white;
    transform: scale(1.05);
    color: white;
}

.prayer.next-prayer-highlight .pname,
.prayer.next-prayer-highlight .ptime {
    color: white;
}

.prayer.next-prayer-highlight .picon img {
    filter: brightness(0) invert(1);
}

.pname {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    color: #1e293b;
}

.ptime {
    font-size: 22px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 15px;
}

.picon {
    margin: 0 auto 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.picon img {
    width: 50px;
    height: 50px;
}

.calculation-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border-top: 4px solid #1e293b;
}

.calculation-info .label {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.calculation-info .method {
    color: #64748b;
    font-size: 16px;
    margin-top: 5px;
}

.calendar-container {
    margin-top: 40px;
}
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-table th {
    background: rgb(83, 104, 5);
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.calendar-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.calendar-table tr:nth-child(even) {
    background: #f8fafc;
}

.calendar-table tr:hover {
    background: #f1f5f9;
}

.date-cell {
    font-weight: 600;
    color: #1e293b;
}

.today-row {
    background: #fef3c7 !important;
    border-left: 3px solid #f59e0b;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f1f5f9;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 24px;
    color: #1e293b;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #334155;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: white url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23334155'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e") no-repeat right 15px center;
    background-size: 16px;
    appearance: none;
}

.time-format {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.save-btn {
    background: rgb(83, 104, 5);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.save-btn:hover { 
    transform: translateY(-2px);
}

/* Specific Date Styles */
.converter-row {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.converter-group {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.converter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

.converter-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: white url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23334155'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e") no-repeat right 15px center;
    background-size: 16px;
    appearance: none;
}

.get-time-btn {
    background: #1e293b;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    display: block;
    margin: 20px auto;
    transition: all 0.3s;
}

.get-time-btn:hover {
    background: #334155;
    transform: translateY(-2px);
}

.specific-date-result {
    display: none;
    margin-top: 30px;
}

/* Date Range Info Styling */
#date-range-info {
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    font-size: 14px;
    color: #0369a1;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.1);
}

#date-range-info strong {
    color: #075985;
}

/* Asr remaining time styling */
.asr-remaining-time {
    font-size: 14px;
    color: #dc2626;
    font-weight: 600;
    margin-top: 8px;
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

@media (max-width: 768px) {
    .location-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-wrapper {
        width: 100%;
        max-width: 350px;
    }
    
    .time-cards {
        flex-direction: column;
    }
    
    .prayers-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .time-display {
        font-size: 28px;
    }
    
    .converter-row {
        flex-direction: column;
        align-items: center;
    }
    
    .converter-group {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .prayers-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .time-display {
        font-size: 24px;
    }
}

.range-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.range-btn {
    padding: 10px 25px;
    border-radius: 8px;
    border: none;
    background-color: #0369a1;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
 

.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
}

.prayer-times-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.prayer-times-table th, .prayer-times-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.prayer-times-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
}

.prayer-times-table tr:hover {
    background-color: #f1f5f9;
}




/* Range Selector Buttons - Matching Settings Button */
.range-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.range-btn {
    padding: 12px 28px;
    background: rgb(83, 104, 5);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 15px;
    font-weight: 600;
    min-width: 140px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.range-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.range-btn:hover::before {
    left: 100%;
}

.range-btn.active {
    background: #dfd199;;
    box-shadow: 0 6px 16px rgba(51, 65, 85, 0.4);
    transform: translateY(-2px);
}

.range-btn.active:hover {  
    transform: translateY(-2px);
}

.range-btn:not(.active):hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(55, 61, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .range-btn {
        padding: 10px 20px;
        min-width: 120px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .range-btn {
        padding: 8px 16px;
        min-width: 100px;
        font-size: 13px;
    }
}





/* Today row highlighting */
.today-row {
    background: #fef3c7 !important;
    border-left: 3px solid #f59e0b;
}



/* Skeleton Loading Effect - Modern approach */
.skeleton-loader {
    background: linear-gradient(90deg, 
        #f0f0f0 25%, 
        #e6e6e6 37%, 
        #f0f0f0 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 6px;
    color: transparent !important;
    position: relative;
    overflow: hidden;
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Pulse Animation for cards */
.pulse-loading {
    animation: pulse-animation 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    position: relative;
}

@keyframes pulse-animation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Shimmer Effect - Premium look */
.shimmer-loading {
    background: #f6f7f8;
    background-image: linear-gradient(
        to right,
        #f6f7f8 0%,
        #edeef1 20%,
        #f6f7f8 40%,
        #f6f7f8 100%
    );
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation: shimmer 1.5s linear infinite;
    color: transparent !important;
    border-radius: 6px;
    display: inline-block;
}

@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* Loading Spinner - Professional */
.loading-spinner-modern {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    border-top-color: #f59e0b;
    animation: spin-modern 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin-modern {
    to { transform: rotate(360deg); }
}

/* Loading Bar - Professional */
.loading-bar {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #f59e0b 50%, 
        transparent 100%
    );
    position: absolute;
    bottom: 0;
    left: 0;
    animation: loading-bar 1.5s ease infinite;
}

@keyframes loading-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========== PRAYER CARD LOADING STYLES ========== */

/* Prayer time loading placeholder */
.ptime.loading {
    position: relative;
    min-width: 70px;
    height: 28px;
    background: linear-gradient(90deg, 
        #e0e0e0 0%, 
        #f0f0f0 50%, 
        #e0e0e0 100%
    );
    background-size: 200% 100%;
    animation: loading-shift 1.2s ease infinite;
    border-radius: 4px;
    color: transparent !important;
}

@keyframes loading-shift {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Next prayer card loading */
#next-prayer-countdown.loading,
#next-prayer-name.loading {
    position: relative;
    background: linear-gradient(90deg, 
        #e8e8e8 0%, 
        #f8f8f8 50%, 
        #e8e8e8 100%
    );
    background-size: 200% 100%;
    animation: loading-shift 1.2s ease infinite;
    border-radius: 6px;
    color: transparent !important;
    min-width: 120px;
    min-height: 36px;
    display: inline-block;
}

/* ========== CARD OVERLAY LOADING ========== */

/* Semi-transparent overlay for cards during load */
.card-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.card-loading-content {
    background: white;
    padding: 16px 24px;
    border-radius: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #1e293b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-loading-content .spinner-modern {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    border-top-color: #f59e0b;
    animation: spin-modern 0.6s linear infinite;
}

/* ========== PULSING DOT LOADING ========== */

.pulsing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.pulsing-dots .dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-dot 1.4s ease-in-out infinite;
}

.pulsing-dots .dot:nth-child(1) { animation-delay: 0s; }
.pulsing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.pulsing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse-dot {
    0%, 60%, 100% { transform: scale(1); opacity: 0.6; }
    30% { transform: scale(1.3); opacity: 1; }
}

/* ========== GLASSMORPHISM LOADING ========== */

.glass-loading {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: glass-shine 1.5s infinite;
}

@keyframes glass-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========== PROGRESS BAR LOADING ========== */

.loading-progress {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loading-progress-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 4px;
    position: absolute;
    animation: progress 1.2s ease-in-out infinite;
}

@keyframes progress {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* ========== CARD SPECIFIC LOADING ========== */

/* Prayer card loading state */
.prayer.loading-state {
    position: relative;
    pointer-events: none;
}

.prayer.loading-state .ptime {
    background: linear-gradient(90deg, #e2e8f0 0%, #edf2f7 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: loading-shift 1.2s ease infinite;
    border-radius: 4px;
    color: transparent !important;
    width: 70px;
    height: 28px;
    margin: 0 auto;
}

/* Next prayer card loading */
.next-prayer-card.loading-state {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    position: relative;
    overflow: hidden;
}

.next-prayer-card.loading-state::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: glass-shine 1.5s infinite;
}

/* ========== TRANSITIONS ========== */

/* Smooth fade for content update */
.fade-transition {
    transition: opacity 0.3s ease-in-out;
}

.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
}

/* Scale transition for cards */
.scale-transition {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scale-transition:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}