/* Floating Prayer Times Widget Styles */

/* General Layout Styles */
.floating-prayer-times-widget {
    transition: all 0.3s ease;
}



/* Widget Layout Styles */
.floating-prayer-widget {
    display: block;
}

.floating-prayer-widget.layout-card .current-prayer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid;
    border-bottom-color: rgba(255,255,255,0.1);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.floating-prayer-widget.layout-card .next-prayer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.floating-prayer-widget.layout-card .next-prayer-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.floating-prayer-widget.layout-card .city-name {
    text-align: center;
    margin-bottom: 8px;
    display: block;
    width: 100%;
}

.floating-prayer-widget.layout-card .current-prayer-name,
.floating-prayer-widget.layout-card .prayer-time,
.floating-prayer-widget.layout-card .next-prayer-name,
.floating-prayer-widget.layout-card .next-prayer-time {
    display: inline-block;
    margin: 0;
}

.floating-prayer-widget.layout-card .next-prayer-label {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 0;
    white-space: nowrap;
}

.floating-prayer-widget.layout-card .countdown-section {
    text-align: center;
    width: 100%;
    margin-top: 8px;
}

.floating-prayer-widget.layout-card .countdown-timer {
    display: block;
    text-align: center;
    margin: 0;
}

/* Bar Layout Styles */
.floating-prayer-widget.layout-bar {
    width: 100%;
    padding: 10px 20px;
}

.floating-prayer-widget.layout-bar .prayer-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: auto;
    min-height: 40px;
}

.floating-prayer-widget.layout-bar .prayer-bar-content::-webkit-scrollbar {
    display: none;
}

.floating-prayer-widget.layout-bar .prayer-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: fit-content;
    padding: 0;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    height: 100%;
    background: none !important;
}

.floating-prayer-widget.layout-bar .prayer-label {
    font-size: 0.8em;
    opacity: 1;
    margin: 0 4px 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 28px;
    line-height: 1;
}

.floating-prayer-widget.layout-bar .current-prayer-name,
.floating-prayer-widget.layout-bar .next-prayer-name {
    font-weight: bold;
    margin: 0;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    height: 28px;
    box-sizing: border-box;
    background: none !important;
    opacity: 1 !important;
}

.floating-prayer-widget.layout-bar .prayer-time,
.floating-prayer-widget.layout-bar .next-prayer-time,
.floating-prayer-widget.layout-bar .countdown-timer {
    margin: 0;
    line-height: 1;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    height: 28px;
    box-sizing: border-box;
    background: none !important;
    opacity: 1 !important;
}

.floating-prayer-widget.layout-bar .city-name {
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 28px;
    line-height: 1.2;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.floating-prayer-widget.layout-bar .city-item {
    padding-right: 0;
    margin-right: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 28px;
    position: relative;
}

.floating-prayer-widget.layout-bar .city-item::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: currentColor;
    opacity: 0.4;
}

.floating-prayer-widget.layout-bar .countdown-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Responsive Bar Layout */
@media (max-width: 768px) {
    .floating-prayer-widget.layout-bar {
        padding: 8px 15px;
    }
    
    .floating-prayer-widget.layout-bar .prayer-bar-content {
        justify-content: space-around;
        gap: 10px;
    }
    
    .floating-prayer-widget.layout-bar .prayer-item {
        min-width: auto;
        flex: 1;
        padding: 3px 5px;
        justify-content: center;
        align-items: center;
    }
    
    .floating-prayer-widget.layout-bar .prayer-label {
        font-size: 0.7em;
    }
    
    .floating-prayer-widget.layout-bar .current-prayer-name,
    .floating-prayer-widget.layout-bar .next-prayer-name {
        font-size: 0.9em;
    }
    
    .floating-prayer-widget.layout-bar .prayer-time,
    .floating-prayer-widget.layout-bar .next-prayer-time,
    .floating-prayer-widget.layout-bar .countdown-timer {
        font-size: 0.85em;
    }
    
    .floating-prayer-widget.layout-bar .city-item {
        border-right: none;
        padding-right: 5px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .floating-prayer-widget.layout-bar .prayer-bar-content {
        gap: 5px;
    }
    
    .floating-prayer-widget.layout-bar .prayer-item {
        padding: 2px 3px;
        justify-content: center;
        align-items: center;
        background: none !important;
    }
    
    .floating-prayer-widget.layout-bar .prayer-label {
        font-size: 0.6em;
        margin-bottom: 1px;
    }
    
    .floating-prayer-widget.layout-bar .current-prayer-name,
    .floating-prayer-widget.layout-bar .next-prayer-name {
        font-size: 0.8em;
    }
    
    .floating-prayer-widget.layout-bar .prayer-time,
    .floating-prayer-widget.layout-bar .next-prayer-time,
    .floating-prayer-widget.layout-bar .countdown-timer {
        font-size: 0.75em;
    }
}

/* Loading States */
.prayer-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    opacity: 0.7;
}

.prayer-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Shimmer Effect for Loading Text */
.floating-prayer-widget .shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    height: 1em;
    display: inline-block;
    min-width: 60px;
}

.floating-prayer-widget.layout-bar .shimmer {
    background: none;
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    min-width: 50px;
    height: auto;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading state for text elements */
.floating-prayer-widget .current-prayer-name:empty::after,
.floating-prayer-widget .prayer-time:empty::after,
.floating-prayer-widget .next-prayer-name:empty::after,
.floating-prayer-widget .next-prayer-time:empty::after,
.floating-prayer-widget .countdown-timer:empty::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1em;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.floating-prayer-widget.layout-bar .current-prayer-name:empty::after,
.floating-prayer-widget.layout-bar .prayer-time:empty::after,
.floating-prayer-widget.layout-bar .next-prayer-name:empty::after,
.floating-prayer-widget.layout-bar .next-prayer-time:empty::after,
.floating-prayer-widget.layout-bar .countdown-timer:empty::after {
    display: none;
}

/* Nuclear Option - Override ALL Backgrounds AND Fix Colors */
.floating-prayer-widget.layout-bar .current-prayer-name,
.floating-prayer-widget.layout-bar .next-prayer-name,
.floating-prayer-widget.layout-bar .prayer-time,
.floating-prayer-widget.layout-bar .next-prayer-time,
.floating-prayer-widget.layout-bar .countdown-timer {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    opacity: 1 !important;
}

/* Editor background cleanup only */
.elementor-editor-active .floating-prayer-widget * {
    background: transparent !important;
}

/* Allow Elementor styling to work */

/* Allow hover lift control from Elementor */

/* No editor-specific restrictions */

/* Default Widget Styling */
.floating-prayer-widget {
    border-radius: 10px;
    padding: 15px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
}

.floating-prayer-widget.layout-bar {
    border-radius: 0;
}

/* Text Styling */
.current-prayer-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.prayer-time,
.next-prayer-time {
    font-size: 1em;
}

.next-prayer-label {
    font-size: 0.9em;
    margin-bottom: 2px;
}

.next-prayer-name {
    font-size: 1em;
}

.countdown-timer {
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.city-name {
    font-size: 0.9em;
    margin-bottom: 8px;
}

/* Smooth transitions everywhere */
.floating-prayer-widget * {
    transition: all 0.3s ease-in-out;
}

/* Smooth hover lift transition */
.floating-prayer-widget {
    transition: transform 0.3s ease-in-out;
}

