/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 20px;
}

/* Header styles */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

header .logo img {
    width: 85px;
}

.weather-info {
    display: flex;
    align-items: center;
}

.weather-info p {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.weather-info .smallclass {
    font-size: 10px;
}

.weather-info img {
    width: 32px;
    margin-right: 10px;
}

/* Container styles */
.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Gateway styles (Navigation) */
.gateway-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gateway {
    text-align: center;
    cursor: pointer;
    background-color: #f7f7f7;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.gateway:hover {
    color: #ffcc00;
}

.gateway i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #000;
    transition: color 0.3s ease;
}

.gateway:hover i {
    color: #ffcc00;
}

.gateway p, .gateway a {
    margin: 0;
    color: #000;
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.gateway:hover p, .gateway:hover a {
    color: #ffcc00;
    font-size: 14px;
}

.gateway:first-child p {
    font-weight: bold;
}

.gateway:first-child i {
    font-weight: bold;
    color: #FF0000;
}

/* Filter styles */
.filter-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    max-width: 600px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.filter {
    flex: 1;
}

#citySelect {
    padding: 8px;
    font-size: 16px;
    width: calc(100% - 16px);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 5px;
}

.show-btn {
    cursor: pointer;
    background-color: #ffcc00;
    color: #000;
    padding: 12px;
    border: none;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 3px;
}

.show-btn:hover {
    background-color: #e6b800;
}

/* Timer styles */
.timer-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.timer-container {
    position: relative;
    display: inline-block;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: #f3f4f6; /* Boz arxa plan rəngi */
    stroke-width: 8;
}

.progress-ring-circle {
    fill: none;
    stroke: #ffcc00; /* Başlangıçda sarı rəng */
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke 0.5s ease-in-out; /* Rəng dəyişimi üçün transition */
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #000;
}

#countdown {
    font-size: 2rem;
    font-weight: bold;
}

.target-time {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.calendar-btn {
    cursor: pointer;
    background-color: #ffcc00;
    color: #000;
    padding: 12px;
    border: none;
    border-radius: 4px;
    margin-top: 15px; /* Taymerdən 15px aşağı */
}

.calendar-btn:hover {
    background-color: #e6b800;
}

/* Table styles */
.prayer-times {
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

th {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #000;
}

/* Icon styles for prayer times */
.prayer-times td:first-child i,
.prayer-times th:first-child i {
    margin-right: 5px; /* İkon və mətn arasında boşluq */
    font-size: 16px; /* İkon ölçüsünü tənzimlə */
    color: #000; /* İkon rəngi */
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    margin: auto; /* Mərkəzləşdirilmə */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.modal-header h2 {
    font-size: 20px;
    color: #000;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

.close-btn:hover {
    color: #ffcc00;
}

/* Footer styles */
footer {
    margin-top: 50px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

footer a {
    margin-right: 10px;
    color: #333;
    text-decoration: none;
}

footer a:hover {
    color: #ffcc00;
}

footer img {
    margin-left: 5px;
    vertical-align: middle;
}

/* Utility classes */
.today {
    background-color: #f7f7f7;
    font-weight: bold; /* Yazı qalın olsun */
}

/* Table styles inside modal */
#calendarTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#calendarTable th, #calendarTable td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

#calendarTable th {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #000;
}

.today {
    background-color: #ffcc00; /* Highlight today's row */
}

.today-marker {
    font-weight: bold;
    color: #ff0000;
}
/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 6px solid #f3f4f6;
    border-top: 6px solid #ffcc00;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Preloader gizlənəndə */
.preloader.hidden {
    display: none;
}
/* Calendar Modal */
#calendarModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

#calendarTable {
    width: 100%;
    border-collapse: collapse;
}

#calendarTable thead th {
    background-color: #ff4000;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

#calendarTable tbody td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#calendarTable tbody tr.today {
    background-color: #f7db4f;
    font-weight: bold;
}

.close-btn {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}