* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #87CEEB;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, #87CEEB 0%, #E1F5FE 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden
}

header {
    position: relative;
    padding: 20px 20px 0;
}

.location {
    display: none;
}

.location-link {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    z-index: 2;
}

.location-icon-container {
    display: none;
}

.location-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.map-pin-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.mosque-illustration {
    width: 100%;
    height: 500px;
    background: url('/static/image/mosque.png') no-repeat center center;
    background-size: cover;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*background-color: rgba(135, 206, 235, 0.8);*/
}

.month-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2196F3;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.month-link:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

.sub-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #38AAD0;
    text-decoration: none;
    font-size: 16px;
    padding-bottom: 5px;
}

.month-text {
    border-bottom: 1px dotted #2196F3;
    padding-bottom: 4px;
}

.moon-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.month-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.month-modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.month-modal-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
}

.month-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.month-modal-body {
    overflow-y: auto;
    max-height: calc(80vh - 60px);
    padding: 0;
}

.months-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.months-list li {
    padding: 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.months-list li:hover {
    background-color: #f5f5f5;
}

.months-list li:last-child {
    border-bottom: none;
}

.dotted-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px dotted #389FC2;
}

main {
    flex: 1;
    background: white;
    overflow: hidden;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

main::after {
    display: none;
}


table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    position: relative;
    z-index: 1;
    background: white;
}

thead {
    background-color: #389FC2;
}

th {
    padding: 12px 15px;
    color: white;
    font-weight: normal;
    font-size: 14px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.2);
    color: #333;
    font-size: 14px;
}

.dot {
    display: block;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

td:first-child {
    color: #389FC2;
    text-align: center;
    width: 40px;
    position: relative;
}

td:nth-child(2) {
    text-align: left;
    padding-left: 0;
}

td:nth-child(3) {
    text-align: center;
    color: #389FC2;
}

td:nth-child(4) {
    text-align: center;
}

td:nth-child(5) {
    text-align: right;
}

tbody tr {
    background-color: white;
}

tbody tr:nth-child(even) {
    background-color: rgba(242, 246, 252, 0.6);
}

tbody tr:hover {
    background-color: rgba(56, 170, 208, 0.1);
}

tbody tr:last-child td {
    position: relative;
}

tbody tr:last-child td::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    height: 20px;
    background-color: #38AAD0;
}

tbody tr:last-child td:first-child::after {
    border-bottom-left-radius: 20px;
}

tbody tr:last-child td:last-child::after {
    border-bottom-right-radius: 20px;
}

tbody tr.selected {
    background-color: #38AAD0;
}

tbody tr.selected td {
    color: white !important;
}

footer {
    background-color: #38AAD0;
    padding: 20px;
    text-align: center;
    color: white;
    margin-top: 0;
}

.download-text {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.app-stores {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.app-store, .google-play {
    display: inline-block;
    width: 180px;
    height: 54px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
}

.app-store {
    background-image: url('/static/image/apple.png');
}

.google-play {
    background-image: url('/static/image/google.png');
}

.logo {
    width: 80px;
    height: 30px;
    background: url('/static/image/iqup_logo.png') no-repeat center/contain;
    margin: 10px auto;
}

.copyright {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 480px) {
    .mosque-illustration {
        height: 300px;
    }

    .location {
        top: 15px;
        right: 15px;
        font-size: 12px;
    }

    .location-icon,
    .moon-icon {
        width: 14px;
        height: 14px;
    }

    .sub-nav-link {
        font-size: 14px;
    }

    th, td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .app-stores {
        gap: 10px;
    }

    .app-store, .google-play {
        width: 160px;
        height: 48px;
    }

    .download-text {
        font-size: 13px;
        padding: 0 10px;
    }
}

@media (min-width: 481px) {
    .container {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}