/* App Page */

:root {
    --islamic-green: #00a86b;
    --islamic-dark: #2c3e50;
    --islamic-gray: #6c757d;
    --islamic-light: #f8f9fa;
    --prayer-box: #F2F2F2;
}

body {
    background-color: var(--islamic-light);
}
.header {
    background-color: white;
    padding: 12px 24px;
}
.logo-box {
    width: 32px;
    height: 32px;
    background-color: var(--islamic-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-inner {
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 4px;
}
.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}
.search-container i[data-lucide="map-pin"] {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--islamic-gray);
    width: 16px;
    height: 16px;
}
.search-input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px 8px 36px;
}
.search-input:focus {
    border-color: var(--islamic-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 107, 0.25);
}
.btn-download {
    background-color: var(--islamic-green);
    border-color: var(--islamic-green);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
.btn-download:hover {
    background-color: #008c59;
    border-color: #008c59;
}
.nav-links {
    padding: 12px 24px;
    background-color: white;
    border-bottom: 1px solid #dee2e6;
}
.nav-links a {
    color: var(--islamic-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--islamic-green);
}

.nav-links .d-lg-none .nav-link:hover {
    color: var(--islamic-green);
    background-color: rgba(0, 168, 107, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-links .d-lg-none .nav-link.active {
    color: var(--islamic-green);
    font-weight: 600;
}
.top-header > * {
    margin-bottom: 8px;
}
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    /* Mobile Navigation Styles */
    .nav-links .d-lg-none {
        padding: 0 16px;
    }
    
    .nav-links .d-lg-none .nav-link {
        font-size: 14px;
        padding: 8px 12px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0;
    }
    
    
    
    .nav-links .d-lg-none .d-flex {
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .nav-links .d-lg-none .nav-link {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .nav-links .d-lg-none .d-flex {
        gap: 4px;
    }
    
    .nav-links .d-lg-none {
        padding: 0 8px;
    }
}

/* Ensure proper spacing and alignment for mobile navigation */
.nav-links .d-lg-none .d-flex {
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
}

.nav-links .d-lg-none .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 6px;
    margin: 0;
    transition: all 0.2s ease;
    position: relative;
    min-width: fit-content;
}

/* Add subtle indicator for active mobile navigation item */
.nav-links .d-lg-none .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--islamic-green);
    border-radius: 1px;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .nav-links .d-lg-none .nav-link {
        min-height: 48px;
        touch-action: manipulation;
    }
}




/* Slide Page */
.slide-form {
  position: fixed;
  top: 0;
  right: -400px; /* hidden by default */
  height: 100vh;
  width: 350px;
  background-color: #fff;
  transition: right 0.4s ease-in-out;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

.slide-form.active {
  right: 0;
}



/* calender  */



.monthly-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header-green {
    background-color: var(--islamic-green);
}

.table-islamic th {
    background-color: var(--islamic-light);
    color: var(--islamic-dark);
    font-weight: 600;
    border: none;
    padding: 12px 8px;
}

.table-islamic td {
    border: 1px solid #e9ecef;
    padding: 12px 8px;
    vertical-align: middle;
}

.today-row {
    background-color: rgba(0, 168, 107, 0.1);
}

.badge-islamic {
    background-color: var(--islamic-green);
}

.badge-light-islamic {
    background-color: var(--islamic-light);
    color: var(--islamic-dark);
}

/* Title refinements */
.city-title {
    font-size: 32px;
    line-height: 1.15;
    margin: 0;
}
.country-title {
    color: var(--islamic-gray);
    margin: 6px 0 0;
}

/* Prayer widget */
.prayer-widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.prayer-widget::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 200px;
    background-size: contain;
    opacity: 0.3;
}

.left-section {
    position: relative;
    z-index: 1;
}

.location-info {
    color: #1f2937;
    display: flex;
    align-items: left;
}

.location-info .city-title {
    font-size: 23px;
}

.location-info .country-title {
    font-size: 23px;
}

.change-location{
    color: #00a86b;
    font-size: 15px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.change-location a{
    color: #00a86b;
    text-decoration: none;
}
.current-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 5px 0;
}

.date-info {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.calendar-icon {
    color: #10b981;
    margin-right: 8px;
    
}

.hijri-date {
    color: #4b5563;
    font-weight: 500;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.countdown-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.countdown-circle {
    width: 220px;
    height: 220px;
    border: 6px solid #10b981;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
}

.countdown-circle::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px dashed #10b981;
    border-radius: 50%;
    opacity: 0.5;
}

.next-prayer-name {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.upcoming-label {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.countdown-time {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
}

.prayer-times-list {
    position: relative;
    z-index: 1;
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.prayer-item:last-child {
    border-bottom: none;
}
.prayer-item.all {
    background: rgba(175, 182, 180, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    margin: 5px -15px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.prayer-item.next {
    background: #10b981;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 5px -15px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.prayer-name {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.prayer-item.next .prayer-name {
    color: #ffffff;
    font-weight: 600;
}

.prayer-time {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.prayer-item.next .prayer-time {
    color: #ffffff;
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .city-title { font-size: 28px; }
}
@media (max-width: 768px) {
    .prayer-widget {
        padding: 24px;
        margin: 10px;
    }
    .location-info h1 { font-size: 28px; text-align: left;}
    .location-info p { font-size: 28px; text-align: left;}
    .current-time { font-size: 1.75rem; text-align: left;}
    .countdown-circle { width: 170px; height: 170px; }
    .countdown-circle::before { width: 150px; height: 150px; }
    .countdown-time { font-size: 1.25rem; }
    .next-prayer-name { font-size: 1.25rem; }
}

@media (max-width: 576px) {
    .prayer-widget { padding: 18px; }
    .row { text-align: center; }
    .countdown-section { margin: 16px 0; }
    .city-title { font-size: 24px; }
    .country-title { font-size: 14px; }
}

/* Table responsiveness helpers */
.table-responsive { overflow-x: auto; }
.table-islamic th div { white-space: nowrap; }
.table-islamic td .badge { white-space: nowrap; }

/* Cities Card Section */
.cities-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* .cities-card h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
} */

.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* .city-item {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
} */

/* .city-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
} */

.city-link {
    text-decoration: none;
    color: unset;
    display: block;
}

.city-link:hover {
    text-decoration: underline;
}

.city-name {
    color: #43a782;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.city-province {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 400;
}

.view-all-container {
    text-align: center;
    margin-top: 1rem;
}

.view-all-btn {
    background-color: #00a86b;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.view-all-btn:hover {
    background-color: #008c59;
    color: white;
    text-decoration: none;
}

.no-cities {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* Responsive design for cities grid */
@media (max-width: 992px) {
    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cities-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .cities-grid {
        grid-template-columns: 1fr;
    }
    .cities-card {
        padding: 1rem;
    }
}

/* Footer  */
.footer-part a{
    text-decoration: none;
}

.btn-group-sm .btn {
        background-color: #f8f9fa; /* Light background */
        color: #333;
        border: 1px solid #ccc;
        transition: all 0.2s ease-in-out;
    }

    .btn-group-sm .btn:hover {
        background-color: #e9ecef;
    }

    .btn-check:checked + .btn {
        background-color: var(--islamic-green) !important;
        color: #fff !important;
        border-color: var(--islamic-green) !important;
    }