/* ===========================================
   AL DUBAI NEWS
   PRAYER TIMES
=========================================== */

:root {

    --primary: #0d6efd;
    --secondary: #0b5ed7;
    --green: #198754;
    --red: #dc3545;
    --orange: #fd7e14;

    --dark: #1e293b;
    --text: #334155;
    --muted: #64748b;

    --border: #e5e7eb;
    --bg: #f5f7fb;
    --white: #ffffff;

    --radius: 18px;

    --shadow:
        0 10px 30px rgba(0, 0, 0, .08);

}

/* ===========================================
RESET
=========================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

body {

    font-family: 'Poppins', sans-serif;

    background: var(--bg);

    color: var(--text);

    line-height: 1.7;

    font-size: 16px;

}

/* ===========================================
MAIN WRAPPER
=========================================== */

.adn-prayer {

    width: 100%;

    padding: 50px 20px;

    background: var(--bg);

}

.adn-container {

    max-width: 1200px;

    margin: auto;

}

/* ===========================================
HEADER
=========================================== */

.adn-header {

    text-align: center;

    margin-bottom: 45px;

}

.adn-tag {

    display: inline-block;

    padding: 8px 18px;

    border-radius: 30px;

    background: var(--primary);

    color: #fff;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 1px;

    margin-bottom: 18px;

    text-transform: uppercase;

}

.adn-header h1 {

    font-size: 42px;

    font-weight: 700;

    color: var(--dark);

    margin-bottom: 12px;

}

.adn-header p {

    max-width: 760px;

    margin: auto;

    color: var(--muted);

    font-size: 17px;

}

/* ===========================================
SUMMARY
=========================================== */

.adn-summary {

    display: grid;

    grid-template-columns:

        repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;

    margin-bottom: 35px;

}

/* ===========================================
CARD
=========================================== */

.adn-box,

.adn-card {

    background: #fff;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    padding: 30px;

    transition: .30s;

    border: 1px solid #eef1f4;

}

.adn-box:hover,

.adn-card:hover {

    transform: translateY(-5px);

}

.adn-box h3 {

    font-size: 17px;

    margin-bottom: 12px;

    color: var(--primary);

    font-weight: 600;

}

.adn-box div {

    font-size: 24px;

    font-weight: 700;

    color: var(--dark);

}

#adn-countdown,

#countdown {

    margin-top: 15px;

    font-size: 34px;

    font-weight: 700;

    color: var(--red);

    letter-spacing: 1px;

}

/* ===========================================
SECTION TITLE
=========================================== */

.adn-card h2 {

    font-size: 28px;

    margin-bottom: 22px;

    color: var(--dark);

    position: relative;

    padding-left: 18px;

}

.adn-card h2::before {

    content: "";

    position: absolute;

    left: 0;

    top: 4px;

    width: 6px;

    height: 32px;

    border-radius: 50px;

    background: var(--primary);

}

/* ===========================================
CONTENT
=========================================== */

.adn-card p {

    color: var(--muted);

    font-size: 16px;

    margin-bottom: 18px;

}

/* ===========================================
   STEP 2B
   PRAYER TABLES
=========================================== */

.adn-prayer-table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 10px;

}

.adn-prayer-table tr {

    border-bottom: 1px solid var(--border);

    transition: .25s;

}

.adn-prayer-table tr:last-child {

    border-bottom: none;

}

.adn-prayer-table tr:hover {

    background: #f8fbff;

}

.adn-prayer-table td {

    padding: 16px;

    font-size: 16px;

}

.adn-prayer-table td:first-child {

    font-weight: 600;

    color: var(--dark);

    width: 50%;

}

.adn-prayer-table td:last-child {

    text-align: right;

    font-weight: 700;

    color: var(--primary);

}

/* ===========================================
30 DAY TABLE
=========================================== */

.adn-table {

    overflow-x: auto;

    border-radius: 14px;

    border: 1px solid var(--border);

}

.adn-table table {

    width: 100%;

    border-collapse: collapse;

    min-width: 900px;

    background: #fff;

}

.adn-table thead {

    background: var(--primary);

}

.adn-table thead th {

    padding: 16px;

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    white-space: nowrap;

    text-align: center;

}

.adn-table tbody td {

    padding: 15px;

    border-bottom: 1px solid var(--border);

    text-align: center;

    font-size: 15px;

    white-space: nowrap;

}

.adn-table tbody tr {

    transition: .25s;

}

.adn-table tbody tr:hover {

    background: #f5f9ff;

}

.adn-table tbody tr:last-child td {

    border-bottom: none;

}

/* ===========================================
TODAY ROW
=========================================== */

.adn-today {

    background: #fff8dd !important;

    font-weight: 700;

}

.adn-today td {

    color: var(--dark);

}

/* ===========================================
PRAYER STATUS
=========================================== */

.adn-current {

    background: #e8f7ee !important;

}

.adn-current td {

    font-weight: 700;

    color: var(--green);

}

.adn-next {

    background: #eef6ff !important;

}

.adn-next td {

    font-weight: 700;

    color: var(--primary);

}

/* ===========================================
BADGES
=========================================== */

.adn-badge-green {

    display: inline-block;

    padding: 5px 10px;

    background: var(--green);

    color: #fff;

    font-size: 12px;

    font-weight: 600;

    border-radius: 30px;

    text-transform: uppercase;

}

.adn-badge-blue {

    display: inline-block;

    padding: 5px 10px;

    background: var(--primary);

    color: #fff;

    font-size: 12px;

    font-weight: 600;

    border-radius: 30px;

    text-transform: uppercase;

}

.adn-badge-orange {

    display: inline-block;

    padding: 5px 10px;

    background: var(--orange);

    color: #fff;

    font-size: 12px;

    font-weight: 600;

    border-radius: 30px;

    text-transform: uppercase;

}

/* ===========================================
LOADING
=========================================== */

.adn-loading {

    padding: 40px;

    text-align: center;

    color: var(--muted);

    font-size: 18px;

}

.adn-spinner {

    width: 40px;

    height: 40px;

    margin: auto;

    border: 4px solid #ddd;

    border-top: 4px solid var(--primary);

    border-radius: 50%;

    animation: adn-spin 1s linear infinite;

}

@keyframes adn-spin {

    0% {

        transform: rotate(0deg);

    }

    100% {

        transform: rotate(360deg);

    }

}

/* ===========================================
SCROLLBAR
=========================================== */

.adn-table::-webkit-scrollbar {

    height: 8px;

}

.adn-table::-webkit-scrollbar-thumb {

    background: var(--primary);

    border-radius: 20px;

}

.adn-table::-webkit-scrollbar-track {

    background: #edf2f7;

}

/* ===========================================
   STEP 2C
   RESPONSIVE & FINAL POLISH
=========================================== */

/* Smooth animations */

.adn-box,
.adn-card,
.adn-prayer-table tr,
.adn-table tbody tr {

    transition: all .3s ease;

}

/* Better focus styles */

.adn-prayer button,
.adn-prayer a {

    transition: .25s;

}

.adn-prayer button:focus,
.adn-prayer a:focus {

    outline: 2px solid var(--primary);

    outline-offset: 2px;

}

/* Links */

.adn-card a {

    color: var(--primary);

    text-decoration: none;

    font-weight: 600;

}

.adn-card a:hover {

    text-decoration: underline;

}

/* Better spacing */

.adn-card+.adn-card {

    margin-top: 30px;

}

/* Table zebra rows */

.adn-table tbody tr:nth-child(even) {

    background: #fafcff;

}

/* Prayer time highlight */

.adn-highlight {

    background: #e8f3ff;

    border-left: 5px solid var(--primary);

}

/* Countdown */

#countdown {

    margin-top: 15px;

    font-size: 34px;

    font-weight: 700;

    color: var(--red);

    letter-spacing: 2px;

}

/* Loading text */

#adn-date,
#adn-hijri,
#currentPrayer,
#nextPrayer {

    font-size: 22px;

    font-weight: 700;

}

/* Footer note */

.adn-footer {

    margin-top: 40px;

    text-align: center;

    font-size: 14px;

    color: var(--muted);

}

/* ===========================================
TABLET
=========================================== */

@media(max-width:992px) {

    .adn-header h1 {

        font-size: 34px;

    }

    .adn-summary {

        grid-template-columns: repeat(2, 1fr);

    }

    .adn-card {

        padding: 25px;

    }

}

/* ===========================================
MOBILE
=========================================== */

@media(max-width:768px) {

    .adn-prayer {

        padding: 25px 15px;

    }

    .adn-header {

        margin-bottom: 30px;

    }

    .adn-header h1 {

        font-size: 28px;

        line-height: 1.3;

    }

    .adn-header p {

        font-size: 15px;

    }

    .adn-summary {

        grid-template-columns: 1fr;

        gap: 20px;

    }

    .adn-box {

        text-align: center;

    }

    .adn-box div {

        font-size: 22px;

    }

    #adn-countdown,
    #countdown {

        font-size: 28px;

    }

    .adn-card {

        padding: 20px;

    }

    .adn-card h2 {

        font-size: 22px;

    }

    .adn-prayer-table td {

        padding: 12px;

        font-size: 15px;

    }

    .adn-table {

        overflow-x: auto;

    }

    .adn-table table {

        min-width: 760px;

    }

    .adn-table th {

        font-size: 14px;

        padding: 12px;

    }

    .adn-table td {

        font-size: 14px;

        padding: 12px;

    }

}

/* ===========================================
SMALL MOBILE
=========================================== */

@media(max-width:480px) {

    .adn-header h1 {

        font-size: 24px;

    }

    .adn-tag {

        font-size: 11px;

        padding: 6px 14px;

    }

    .adn-card {

        padding: 16px;

    }

    .adn-card h2 {

        font-size: 20px;

    }

    .adn-box h3 {

        font-size: 15px;

    }

    .adn-box div {

        font-size: 20px;

    }

    .adn-prayer-table td {

        font-size: 14px;

        padding: 10px;

    }

    #adn-countdown,
    #countdown {

        font-size: 24px;

    }

}

/* ===========================================
PRINT
=========================================== */

@media print {

    body {

        background: #fff;

    }

    .adn-card {

        box-shadow: none;

        border: 1px solid #ccc;

    }

    .adn-table {

        overflow: visible;

    }

}

/* ===========================================
OPTIONAL DARK MODE
=========================================== */

@media(prefers-color-scheme:dark) {

    body {

        background: #0f172a;

        color: #e2e8f0;

    }

    .adn-box,
    .adn-card {

        background: #1e293b;

        color: #e2e8f0;

        border-color: #334155;

    }

    .adn-header h1 {

        color: #fff;

    }

    .adn-card h2 {

        color: #fff;

    }

    .adn-prayer-table td:first-child {

        color: #fff;

    }

    .adn-table tbody tr:nth-child(even) {

        background: #263548;

    }

    .adn-table tbody tr:hover {

        background: #334155;

    }

    .adn-card p {

        color: #cbd5e1;

    }

}

/* ===========================================
END OF STYLE
=========================================== */