/* Prayer Times Section */
.findcountry {
    width: 50px;
    height: 56px;
    background: none;
    border-right: 2px solid var(--Black);
    color: var(--Black);
    background: var(--White);
    border-radius: 7px 0 0 0;
}

.findcountry:disabled {
    background: var(--Soft-Gray);
    cursor: not-allowed;
}

.UseLocation.loading {
    background: var(--Soft-Gray);
    cursor: not-allowed;
}

/* Prayer Countdown Content */
.prayer-countdown-content {
    margin-top: .8rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: fade 0.5s ease;
}

.prayer-countdown-content.show {
    display: flex;
}

/* Current and Next Prayer Styles */
.current-next-prayerTimes {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-top: .8rem;
}

.current-prayer-time,
.next-prayer-countdown {
    width: 100%;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.current-prayer-time:hover,
.next-prayer-countdown:hover {
    transform: translateY(-5px);
}

.countdown-timer>span {
    width: 57px;
    height: 44px;
}

.current-prayer-time h2,
.next-prayer-countdown h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.current-prayer-name,
.next-prayer-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

.current-prayer-status,
.next-prayer-time {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 8px 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.countdown-hours,
.countdown-minutes,
.countdown-seconds {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.current-prayer-time,
.next-prayer-countdown,
.prayer-times-list {
    background: #34495e;
    color: #ecf0f1;
}

.current-prayer-time h2,
.next-prayer-countdown h2,
.prayer-times-list h2 {
    color: #ecf0f1;
    border-bottom: 2px solid #f1f1f1;
}

.current-prayer-name,
.next-prayer-name,
.prayer-time-name,
.prayer-time-value {
    color: var(--Gold);
}

.current-prayer-status,
.next-prayer-time {
    color: var(--White);
}

.prayer-time-item {
    background-color: #2c3e50;
    border-color: #34495e;
    color: var(--Gold);
}

/* Prayer Times List */
.prayer-times-list {
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.prayer-times-list:hover {
    transform: translateY(-5px);
}

.prayer-times-list h2 {
    margin-top: 0;
    color: var(--Gold);
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 15px;
}

.prayer-times-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 100%;
    /* Added to prevent overflow */
    gap: 12px;
}

/* Prayer Time Item Base Styles */
.prayer-time-item {
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Added to include padding in width calculation */
}

.prayer-time-item>div {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    /* Changed from width: 100% to flex: 1 */
    min-width: 0;
    /* Added to allow text truncation */

}

.prayer-time-name {
    font-weight: 600;
    color: var(--Green);
    font-size: 1.1rem;
    white-space: nowrap;
    /* Added to prevent wrapping */
    overflow: hidden;
    /* Added to contain text */
    text-overflow: ellipsis;
    /* Added for overflow indication */
    max-width: 120px;
    /* Added to limit width */
}

.prayer-time-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    align-self: end;
    white-space: nowrap;
    /* Added to match prayer-time-name */
}

/* Current Prayer Styling */
.prayer-time-item.prayer-now {
    background-color: #d4edda;
    border-color: #c3e6cb;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.prayer-time-item.prayer-now .prayer-time-name {
    color: var(--Gold);
    font-weight: bold;
}

.prayer-time-item.prayer-now .prayer-time-value {
    color: var(--Gold);
    font-weight: bold;
}

/* Next Prayer Styling */
.prayer-time-item.prayer-next {
    background-color: #fff3cd;
    border-color: #ffeeba;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
}

.prayer-time-item.prayer-next .prayer-time-name {
    color: var(--Gold);
    font-weight: bold;
}

.prayer-time-item.prayer-next .prayer-time-value {
    color: var(--Gold);
    font-weight: bold;
}

.animate-spin {
    animation: rotate 1s linear infinite;
}

/* Invalid input state */
.invalid-input {
    animation: shake 0.5s ease;
    border: 2px solid #e74c3c !important;
}