:root {
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --day-fill: #ffcc00;
    --night-fill: #8a2be2;
    --accent-blue: #00b4d8;
}

/* Visually hidden but accessible to screen readers and search engines */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100dvh;
    background-color: #050510;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Smooth entry animations after load */
.app-loaded #app-container {
    animation: fadeIn 0.6s ease;
}
.app-loaded .layout-block {
    animation: slideInUp 0.8s ease both;
}
.app-loaded #block-prayers {
    animation-delay: 0.1s;
}
.app-loaded #block-circle {
    animation-delay: 0.2s;
}
.app-loaded #block-player {
    animation-delay: 0.3s;
}
.app-loaded .prayer-card {
    animation: slideInUp 0.6s ease both;
}
.app-loaded .prayer-card:nth-child(1) { animation-delay: 0.15s; }
.app-loaded .prayer-card:nth-child(2) { animation-delay: 0.2s; }
.app-loaded .prayer-card:nth-child(3) { animation-delay: 0.25s; }
.app-loaded .prayer-card:nth-child(4) { animation-delay: 0.3s; }
.app-loaded .prayer-card:nth-child(5) { animation-delay: 0.35s; }
.app-loaded .prayer-card:nth-child(6) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    will-change: opacity;
    pointer-events: none;
    transition: opacity 1.5s ease;
}

#bg-night { background: linear-gradient(to bottom, #020205 0%, #0d0d26 100%); }
#starsCanvas { width: 100%; height: 100%; display: block; }
#bg-dawn { background: linear-gradient(to bottom, #0d1236 0%, #3d204a 50%, #d46b57 100%); }
#bg-day { background: linear-gradient(to bottom, #0b2e59 0%, #2e74b5 100%); }
#bg-dusk { background: linear-gradient(to bottom, #0f1533 0%, #3a1a3b 40%, #b34233 80%, #e68a45 100%); }

#app-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    z-index: 10;
    box-sizing: border-box;
}

/* ===== SIDEBAR MENI ===== */
#menu-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 200;
    width: 48px;
    height: 48px;
    background: rgb(10 10 25 / 0%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: background 0.3s, border-color 0.3s;
}
#menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}
#menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #ffffff !important;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease;
}
#menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 10, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
#sidebar-overlay.open {
    opacity: 1;
    pointer-events: all;
}

#sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 85vw;
    height: 100dvh;
    background: rgb(8 8 22 / 88%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 180;
    display: flex;
    flex-direction: column;
    padding: 90px 36px 36px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}
#sidebar::-webkit-scrollbar {
    width: 5px;
}
#sidebar::-webkit-scrollbar-track {
    background: transparent;
}
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
}
#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}
#sidebar.open {
    transform: translateX(0);
}

#sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
#sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s;
}
#sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
#sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.5;
}
#sidebar-nav a .nav-icon-file {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--icon-url);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: var(--icon-url);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    opacity: 0.5;
}
#sidebar-nav a:hover svg {
    opacity: 0.9;
}
#sidebar-nav a:hover .nav-icon-file {
    opacity: 0.9;
}

/* Active page */
#sidebar-nav a.nav-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
}
#sidebar-nav a.nav-active svg {
    opacity: 1;
}
#sidebar-nav a.nav-active .nav-icon-file {
    opacity: 1;
}

#sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 12px 0;
}

#sidebar-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
#sidebar-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
#sidebar-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
#sidebar-social a svg {
    width: 18px;
    height: 18px;
}

/* Cast dugme */
#cast-btn, #fullscreen-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
#cast-btn:hover, #fullscreen-btn:hover {
    background: rgba(140, 220, 160, 0.1);
    border-color: rgba(140, 220, 160, 0.3);
    color: rgba(140, 220, 160, 0.9);
}
#cast-btn svg, #fullscreen-btn svg {
    width: 20px;
    height: 20px;
}
#cast-btn.casting {
    background: rgba(140, 220, 160, 0.15);
    border-color: rgba(140, 220, 160, 0.4);
    color: rgba(140, 220, 160, 0.95);
    animation: castPulse 2s ease infinite;
}
@keyframes castPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(140, 220, 160, 0.2); }
    50% { box-shadow: 0 0 12px 4px rgba(140, 220, 160, 0.15); }
}
.cast-status {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: rgba(140, 220, 160, 0.6);
    min-height: 14px;
    transition: opacity 0.3s;
}

#sidebar-footer-text {
    margin-top: 16px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

/* SIDEBAR SETTINGS */
#sidebar-settings {
    padding-top: 20px;
    margin-top: auto;
    margin-bottom: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-settings-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.setting-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.setting-label-main {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}
.setting-label-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
    pointer-events: none;
}
.toggle-switch input:checked ~ .toggle-track {
    background: rgba(140, 220, 160, 0.2);
    border-color: rgba(140, 220, 160, 0.4);
}
.toggle-switch input:checked ~ .toggle-knob {
    transform: translateX(20px);
    background: rgba(140, 220, 160, 0.95);
}

/* Minutes input */
.setting-minutes-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease, padding 0.35s ease, margin 0.35s ease;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -8px;
}
.setting-minutes-row.visible {
    opacity: 1;
    max-height: 60px;
    padding: 10px 12px;
    margin-top: 0;
}
.setting-minutes-row label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.minutes-input {
    width: 56px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 6px 8px;
    font-variant-numeric: tabular-nums;
    outline: none;
    transition: border-color 0.25s;
    -moz-appearance: textfield;
    appearance: textfield;
}
.minutes-input:focus {
    border-color: rgba(140, 220, 160, 0.5);
}
.minutes-input::-webkit-inner-spin-button,
.minutes-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.minutes-unit {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* HEADER & FOOTER */

/* ═══════════════════════════════════════════
   MINI SIDEBAR (collapsed icon rail)
   Non-homepage pages: icons visible when closed
   ═══════════════════════════════════════════ */

body.sidebar-mini #menu-toggle {
    display: none;
}

/* Rail hamburger toggle – hidden by default, shown only in mini mode */
#rail-toggle {
    display: none;
}
body.sidebar-mini #rail-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 64px;
    margin: 0 0 12px;
    padding: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s;
}
body.sidebar-mini #rail-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
body.sidebar-mini #rail-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease;
}
body.sidebar-mini #rail-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
body.sidebar-mini #rail-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
body.sidebar-mini #rail-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Collapsed rail — always visible */
body.sidebar-mini #sidebar {
    transform: translateX(calc(100% - 80px));
}
body.sidebar-mini #sidebar.open {
    transform: translateX(0);
}

/* Icon rail styling when collapsed */
body.sidebar-mini #sidebar-nav a {
    position: relative;
    white-space: nowrap;
}

/* When collapsed: shrink to icon rail, HIDE labels completely */
body.sidebar-mini:not(.sidebar-open) #sidebar {
    padding: 0 0 36px;
    width: 80px;
    overflow-x: hidden;
    overflow-y: auto;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    gap: 0;
    border-radius: 0;
    overflow: visible;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a span.nav-label {
    display: none;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a svg {
    opacity: 0.65;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a .nav-icon-file {
    opacity: 0.65;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a:hover svg {
    opacity: 1;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a:hover .nav-icon-file {
    opacity: 1;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a.nav-active svg {
    opacity: 1;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a.nav-active .nav-icon-file {
    opacity: 1;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a.nav-active {
    background: rgba(255, 255, 255, 0.11);
}

/* Hide settings, social, footer text when collapsed */
body.sidebar-mini:not(.sidebar-open) #sidebar-settings,
body.sidebar-mini:not(.sidebar-open) #sidebar-social,
body.sidebar-mini:not(.sidebar-open) #sidebar-footer-text {
    display: none;
}

/* Restore full width when open */
body.sidebar-mini.sidebar-open #sidebar {
    width: 420px;
    max-width: 85vw;
    padding: 90px 36px 36px;
}
body.sidebar-mini.sidebar-open #sidebar-nav a span.nav-label {
    display: inline;
}

/* Close button inside sidebar (for mini mode) */
#sidebar-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
#sidebar-close-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
#sidebar-close-btn svg {
    width: 18px;
    height: 18px;
}
body.sidebar-mini.sidebar-open #sidebar-close-btn {
    display: none;
}

/* Rail toggle repositioned when sidebar is open */
body.sidebar-mini.sidebar-open #rail-toggle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 64px;
    margin: 0;
    align-items: flex-end;
    padding-right: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Tooltip on hover for collapsed icons */
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 15, 35, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}
body.sidebar-mini:not(.sidebar-open) #sidebar-nav a:hover::after {
    opacity: 1;
}

/* HEADER & FOOTER */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    box-sizing: border-box;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#site-header.header-hidden {
    transform: translateY(-100%);
}

/* Homepage header: transparent over dark background */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.header-logo {
    width: 32px;
    height: 32px;
    display: block;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    transition: color 0.25s;
}

.header-logo-mark {
    background-color: currentColor;
    -webkit-mask: url('../assets/icon/mosque-moon.svg') center / contain no-repeat;
    mask: url('../assets/icon/mosque-moon.svg') center / contain no-repeat;
}

.header-brand:hover .header-logo {
    color: rgba(255, 255, 255, 0.95);
}

#site-header.header-hidden {
    transform: translateY(-100%);
}
/* Homepage header: transparent over dark background */
body.sidebar-mini #site-header {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.sidebar-mini .header-logo {
    color: #1e293b;
}
body.sidebar-mini .header-brand:hover .header-logo {
    color: #0f172a;
}
/* On desktop, header right edge stops before the 80px sidebar icon rail */
@media (min-width: 769px) {
    body.sidebar-mini #site-header {
        right: 80px;
    }
}
body.sidebar-mini.sidebar-open #site-header {
    transform: translateY(-100%);
}

/* Footer — layout handled by footer.css */
#site-footer {
    flex-shrink: 0;
    width: 100%;
}

/* GLAVNI LAYOUT — tri bloka po 33% */
#main-layout {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 0;
}
.layout-block {
    flex: 1 1 33.333%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}
#block-circle { overflow: hidden; }

#controls {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.35;
    transition: opacity 0.3s;
}
#controls:hover { opacity: 0.8; }

#method-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
#method-select option {
    background: #050510;
    color: #fff;
}
#hour12-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.75);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}
#hour12-toggle:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}


#canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    container-type: size;
    container-name: clock-wrapper;
}

canvas#clockCanvas {
    display: block;
    pointer-events: all;
}

/* HTML CENTRALNI SAT */
#html-clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    width: calc(var(--cs, 600px) * 0.5);
    z-index: 30;
}

#clock-icon-container {
    width: calc(var(--cs, 600px) * 0.05);
    height: calc(var(--cs, 600px) * 0.05);
    margin-bottom: calc(var(--cs, 600px) * 0.01);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(var(--cs, 600px) * 0.06);
}
#clock-icon-container svg {
    width: 100%;
    height: 100%;
}

#clock-phase {
    font-weight: 700;
    font-size: clamp(8px, calc(var(--cs, 600px) * 0.014), 16px);
    letter-spacing: 4px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

#clock-time {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(48px, calc(var(--cs, 600px) * 0.14), 160px);
    line-height: 1;
    margin: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    white-space: nowrap;
}

#next-prayer-countdown {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, calc(var(--cs, 600px) * 0.047), 53px);
    letter-spacing: 2px;
    margin-top: clamp(6px, calc(var(--cs, 600px) * 0.015), 18px);
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    line-height: 1;
}

#clock-date {
    font-weight: 400;
    font-size: clamp(11px, calc(var(--cs, 600px) * 0.017), 21px);
    letter-spacing: 2px;
    opacity: 0.35;
    margin-top: clamp(3px, calc(var(--cs, 600px) * 0.005), 7px);
    text-transform: uppercase;
}

#prayer-tooltip {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(10, 10, 30, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 14px;
    pointer-events: none;
    z-index: 50;
    transform: translate(-50%, -120%);
}
#prayer-tooltip.visible { display: flex; }
#tooltip-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
#tooltip-time {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

#clock-weekday {
    font-weight: 600;
    font-size: clamp(9px, calc(var(--cs, 600px) * 0.012), 15px);
    letter-spacing: 4px;
    opacity: 0.5;
    text-transform: uppercase;
    margin-bottom: calc(var(--cs, 600px) * 0.01);
}

#hijri-date {
    font-weight: 500;
    font-size: clamp(13px, calc(var(--cs, 600px) * 0.02), 26px);
    letter-spacing: 2px;
    margin-top: calc(var(--cs, 600px) * 0.06);
    text-transform: uppercase;
    color: rgba(140, 220, 160, 0.65);
    font-family: 'Inter', sans-serif;
}

#clock-location {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: opacity 0.3s;
}
#clock-location:hover { opacity: 0.8; }
#clock-location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #a8b2bd;
}
#clock-location #location-name {
    font-variant-numeric: tabular-nums;
}
#clock-location #locateBtn {
    cursor: pointer;
    opacity: 0.55;
    margin-left: 4px;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.4s ease, opacity 0.2s;
    display: inline-block;
}
#clock-location #locateBtn:hover {
    opacity: 1;
    transform: rotate(180deg);
}

/* Light-page footer overrides (all non-homepage pages) */
body.sidebar-mini #clock-location {
    color: rgba(30, 41, 59, 0.85);
    opacity: 0.5;
}
body.sidebar-mini #clock-location:hover { opacity: 0.85; }
body.sidebar-mini #clock-location svg {
    color: #475569;
}
body.sidebar-mini #controls {
    opacity: 0.45;
}
body.sidebar-mini #controls:hover { opacity: 0.85; }
body.sidebar-mini #method-select {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: #334155;
}
body.sidebar-mini #method-select option {
    background: #fff;
    color: #1e293b;
}

/* QUR'AN PLAYER */
#quran-player {
    position: relative;
    width: 100%;
    max-width: 260px;
    background: rgba(10, 10, 25, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px 20px 18px;
    z-index: 35;
    color: #fff;
    pointer-events: all;
    opacity: 0.7;
    transition: opacity 0.35s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
#quran-player:hover { opacity: 1; }

.qp-info {
    text-align: center;
    margin-bottom: 18px;
    min-height: 70px;
}
.qp-surah-ar {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255,255,255,0.95);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}
.qp-surah-en {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(140, 220, 160, 0.75);
    margin-bottom: 3px;
}
.qp-surah-num {
    font-size: 9px;
    letter-spacing: 2px;
    opacity: 0.4;
    font-family: 'Space Grotesk', sans-serif;
    font-variant-numeric: tabular-nums;
}

.qp-progress-wrap {
    margin-bottom: 14px;
}
.qp-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.qp-progress-fill {
    height: 100%;
    background: rgba(140, 220, 160, 0.75);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}
.qp-time {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    font-size: 9px;
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', sans-serif;
    font-variant-numeric: tabular-nums;
    opacity: 0.5;
}

.qp-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.qp-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
    transition: 0.2s;
    padding: 0;
}
.qp-btn svg {
    width: 16px;
    height: 16px;
}
.qp-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.08);
}
.qp-play {
    width: 46px;
    height: 46px;
    background: rgba(140, 220, 160, 0.12);
    border: 1px solid rgba(140, 220, 160, 0.28);
    color: rgba(140, 220, 160, 0.95);
    opacity: 1;
    margin: 0 4px;
}
.qp-play svg {
    width: 18px;
    height: 18px;
}
.qp-play:hover {
    background: rgba(140, 220, 160, 0.2);
}
.qp-expand {
    margin-left: 4px;
}
.qp-expand svg {
    width: 13px;
    height: 13px;
}
.qp-popout {
    margin-left: 2px;
}
.qp-popout svg {
    width: 13px;
    height: 13px;
}
.qp-repeat svg {
    width: 14px;
    height: 14px;
}
.qp-repeat.active {
    opacity: 1;
    color: rgba(140, 220, 160, 0.95);
    background: rgba(140, 220, 160, 0.12);
}

/* QURAN PLAYER SETTINGS MODAL */
.qp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.qp-modal.open {
    opacity: 1;
    pointer-events: all;
}
.qp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 2, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.qp-modal-content {
    position: relative;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    background: rgba(12, 12, 30, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.qp-modal.open .qp-modal-content {
    transform: scale(1);
}
.qp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.qp-modal-header h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}
.qp-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.qp-modal-close:hover {
    background: rgba(255, 100, 100, 0.15);
    border-color: rgba(255, 100, 100, 0.3);
    color: rgba(255, 100, 100, 0.9);
}
.qp-modal-close svg {
    width: 18px;
    height: 18px;
}
.qp-modal-body {
    padding: 28px 32px;
    overflow-y: auto;
    flex: 1;
}

/* Firefox scrollbar */
.qp-modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.02);
}

/* Webkit scrollbar */
.qp-modal-body::-webkit-scrollbar {
    width: 10px;
}
.qp-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
}
.qp-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 5px;
}
.qp-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

.qp-settings-section {
    margin-bottom: 32px;
}
.qp-settings-section:last-child {
    margin-bottom: 0;
}
.qp-settings-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 16px;
}

/* RECITER GRID */
.qp-reciter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.qp-reciter-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
}
.qp-reciter-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
.qp-reciter-card.active {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.12));
    border-color: var(--qp-accent-border, rgba(140, 220, 160, 0.35));
}
.qp-reciter-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}
.qp-reciter-lang {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* SURAH SEARCH & LIST */
.qp-search-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.25s;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.qp-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--qp-accent-border, rgba(140, 220, 160, 0.4));
}
.qp-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.qp-surah-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

/* Firefox scrollbar */
.qp-surah-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.02);
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
.qp-surah-list::-webkit-scrollbar {
    width: 8px;
}
.qp-surah-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.qp-surah-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    transition: background 0.2s;
}
.qp-surah-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
.qp-surah-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
    gap: 12px;
}
.qp-surah-item:last-child {
    border-bottom: none;
}
.qp-surah-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.qp-surah-item.active {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.1));
}
.qp-surah-item.playing {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.15));
}
.qp-surah-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.qp-surah-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Space Grotesk', sans-serif;
}
.qp-surah-item.active .qp-surah-number {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.2));
    color: var(--qp-accent, rgba(140, 220, 160, 0.95));
}
.qp-surah-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qp-surah-name-en {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}
.qp-surah-name-ar {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}
.qp-surah-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    opacity: 0;
}
.qp-surah-item:hover .qp-surah-play-btn,
.qp-surah-item.playing .qp-surah-play-btn {
    opacity: 1;
}
.qp-surah-item.playing .qp-surah-play-btn {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.15));
    border-color: var(--qp-accent-border, rgba(140, 220, 160, 0.3));
}
.qp-surah-play-btn:hover {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.2));
    border-color: var(--qp-accent-border, rgba(140, 220, 160, 0.4));
}
.qp-surah-play-btn svg {
    width: 12px;
    height: 12px;
    fill: var(--qp-accent, rgba(140, 220, 160, 0.9));
}
.qp-surah-playing-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0;
}
.qp-surah-item.playing .qp-surah-playing-indicator {
    opacity: 1;
}
.qp-playing-bar {
    width: 2px;
    height: 12px;
    background: var(--qp-accent, rgba(140, 220, 160, 0.8));
    border-radius: 2px;
    animation: audioWave 0.8s ease-in-out infinite;
}
.qp-playing-bar:nth-child(1) { animation-delay: 0s; height: 8px; }
.qp-playing-bar:nth-child(2) { animation-delay: 0.2s; height: 14px; }
.qp-playing-bar:nth-child(3) { animation-delay: 0.4s; height: 10px; }
@keyframes audioWave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* COLOR THEMES */
.qp-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.qp-theme-card {
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
}
.qp-theme-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}
.qp-theme-card.active {
    border-color: var(--qp-accent, rgba(140, 220, 160, 0.6));
    box-shadow: 0 0 0 1px var(--qp-accent, rgba(140, 220, 160, 0.3));
}
.qp-theme-preview {
    height: 60px;
    width: 100%;
}
.qp-theme-name {
    padding: 10px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

/* PLAYBACK OPTIONS */
.qp-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.qp-option-row:last-child {
    border-bottom: none;
}
.qp-option-row label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.qp-option-desc {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
}
.qp-select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}
.qp-select:hover {
    background: rgba(255, 255, 255, 0.08);
}
.qp-select option {
    background: #0c0c1e;
    color: #fff;
}

/* PLAYER COLOR THEMES (CSS Variables) */
#quran-player.theme-default {
    --qp-accent: rgba(140, 220, 160, 0.95);
    --qp-accent-bg: rgba(140, 220, 160, 0.12);
    --qp-accent-border: rgba(140, 220, 160, 0.28);
    /* Default ostaje proziran */
}

#quran-player.theme-blue {
    --qp-accent: #5eb3ff;
    --qp-accent-bg: rgba(94, 179, 255, 0.2);
    --qp-accent-border: rgba(94, 179, 255, 0.4);
    background: linear-gradient(135deg, #1a4d7a, #2563a8) !important;
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(94, 179, 255, 0.3) !important;
}

#quran-player.theme-purple {
    --qp-accent: #b888ff;
    --qp-accent-bg: rgba(184, 136, 255, 0.2);
    --qp-accent-border: rgba(184, 136, 255, 0.4);
    background: linear-gradient(135deg, #4a2873, #6b3ba8) !important;
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(184, 136, 255, 0.3) !important;
}

#quran-player.theme-gold {
    --qp-accent: #ffc857;
    --qp-accent-bg: rgba(255, 200, 87, 0.2);
    --qp-accent-border: rgba(255, 200, 87, 0.4);
    background: linear-gradient(135deg, #8b6914, #b8951a) !important;
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(255, 200, 87, 0.3) !important;
}

#quran-player.theme-rose {
    --qp-accent: #ff7b9c;
    --qp-accent-bg: rgba(255, 123, 156, 0.2);
    --qp-accent-border: rgba(255, 123, 156, 0.4);
    background: linear-gradient(135deg, #8b2e4a, #b83d63) !important;
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(255, 123, 156, 0.3) !important;
}

#quran-player.theme-teal {
    --qp-accent: #4dd4ac;
    --qp-accent-bg: rgba(77, 212, 172, 0.2);
    --qp-accent-border: rgba(77, 212, 172, 0.4);
    background: linear-gradient(135deg, #1a6b5a, #248c73) !important;
    border: none !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(77, 212, 172, 0.3) !important;
}

/* Dodatna stilizacija za obojene teme */
#quran-player.theme-blue .qp-surah-ar,
#quran-player.theme-purple .qp-surah-ar,
#quran-player.theme-gold .qp-surah-ar,
#quran-player.theme-rose .qp-surah-ar,
#quran-player.theme-teal .qp-surah-ar {
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

#quran-player.theme-blue .qp-btn,
#quran-player.theme-purple .qp-btn,
#quran-player.theme-gold .qp-btn,
#quran-player.theme-rose .qp-btn,
#quran-player.theme-teal .qp-btn {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

#quran-player.theme-blue .qp-btn:hover,
#quran-player.theme-purple .qp-btn:hover,
#quran-player.theme-gold .qp-btn:hover,
#quran-player.theme-rose .qp-btn:hover,
#quran-player.theme-teal .qp-btn:hover {
    background: var(--qp-accent-bg);
    color: var(--qp-accent);
}

/* Apply theme colors to player elements */
#quran-player .qp-surah-en,
#quran-player .qp-progress-fill,
#quran-player .qp-play,
#quran-player .qp-repeat.active {
    color: var(--qp-accent, rgba(140, 220, 160, 0.95));
}
#quran-player .qp-progress-fill {
    background: var(--qp-accent, rgba(140, 220, 160, 0.75));
}
#quran-player .qp-play {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.12));
    border-color: var(--qp-accent-border, rgba(140, 220, 160, 0.28));
    color: var(--qp-accent, rgba(140, 220, 160, 0.95));
}
#quran-player .qp-play:hover {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.2));
}
#quran-player .qp-repeat.active {
    background: var(--qp-accent-bg, rgba(140, 220, 160, 0.12));
}


/* DONJI BAR — samo namazna vremena */
#bottom-dashboard {
    position: relative;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: all;
    opacity: 0.85;
    transition: opacity 0.35s ease;
}
#bottom-dashboard:hover { opacity: 1; }

/* PRAYER CARDS */
.prayer-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 16px 16px;
    border-radius: 14px;
    background: transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s, border-color 0.3s, opacity 0.3s;
    position: relative;
    border: none;
}

.prayer-dot { display: none !important; }

.prayer-card-name {
    grid-column: 1;
    grid-row: 1;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgb(255 255 255 / 85%);
    text-transform: uppercase;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.prayer-card-relative {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
    font-weight: 400;
    color: rgb(255 255 255 / 40%) !important;
    margin: 0;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.1;
}

.prayer-card-time {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 26px;
    color: #fff;
    margin: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Aktivna — posljednji prošli namaz */
.prayer-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.prayer-card.active .prayer-card-name {
    color: rgba(255, 255, 255, 0.95) !important;
}
.prayer-card.active .prayer-card-time {
    color: #ffffff !important;
}
.prayer-card.active .prayer-card-relative {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Sljedeći namaz */
.prayer-card.next .prayer-card-name {
    color: rgba(140, 230, 170, 0.95) !important;
}
.prayer-card.next .prayer-card-time {
    color: #8ce6aa !important;
}
.prayer-card.next .prayer-card-relative {
    color: rgba(140, 230, 170, 0.7) !important;
}

/* Prošla / inaktivna molitva — zatamnjena */
.prayer-card.past {
    opacity: 0.55;
}
.prayer-card.past .prayer-card-relative {
    color: rgba(255, 255, 255, 0.25) !important;
}

/* TOAST NOTIFIKACIJE */
.prayer-toast {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgb(12 14 30 / 82%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(140, 220, 160, 0.18);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(140,220,160,0.06);
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    max-width: 360px;
    min-width: 260px;
}
.prayer-toast.toast-show {
    transform: translateX(0);
    opacity: 1;
}
.prayer-toast.toast-hide {
    animation: toastSlideOut 0.45s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}
@keyframes toastSlideOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-120%); opacity: 0; }
}
.prayer-toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(140, 220, 160, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.prayer-toast-body {
    flex: 1;
    min-width: 0;
}
.prayer-toast-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(140, 220, 160, 0.5);
    margin-bottom: 3px;
}
.prayer-toast-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
    line-height: 1.2;
}
.prayer-toast-time {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.prayer-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.2s;
}
.prayer-toast-close:hover {
    color: rgba(255,255,255,0.6);
}
/* NOW varijanta — amber/gold umjesto zelene */
.prayer-toast.now {
    border-color: rgba(255, 190, 60, 0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(255,190,60,0.08);
}
.prayer-toast.now .prayer-toast-icon {
    background: rgba(255, 190, 60, 0.1);
}
.prayer-toast.now .now-label {
    color: rgba(255, 190, 60, 0.6);
}
.prayer-toast.now .prayer-toast-name {
    color: rgba(255, 220, 120, 0.95);
}
.prayer-toast.now .prayer-toast-time {
    color: rgba(255, 190, 60, 0.4);
}

/* TABLET / MANJI DESKTOP — blok-prayers i blok-circle 50%, block-player 100% (ispod) */
@media (max-width: 1024px) {
    #main-layout {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .layout-block {
        flex: 1 1 50%;
        width: 50%;
        padding: 16px;
    }
    #block-prayers { order: 1; }
    #block-circle {
        min-height: min(80vh, 600px);
        order: 2;
    }
    #block-player { 
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }
    #bottom-dashboard {
        max-width: 360px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        opacity: 1;
        margin: 0 auto;
    }
    #quran-player {
        max-width: 360px;
        opacity: 1;
        margin: 0 auto;
    }
}

/* MOBILNI UREĐAJI — blokovi se stackaju u jednu kolonu */
@media (max-width: 768px) {
    #main-layout {
        flex-direction: column;
        align-items: center;
    }
    .layout-block {
        flex: 0 0 auto;
        width: 100%;
    }

    /* ─── Mobile sidebar-mini overrides ─── */

    /* Hide collapsed sidebar icon rail on mobile */
    body.sidebar-mini #sidebar:not(.open) {
        transform: translateX(100%);
    }
}

/* Desktop and tablet: keep content clear of collapsed right icon rail */
@media (min-width: 768px) {
    body.sidebar-mini:not(.sidebar-open) main {
        padding-right: 96px;
    }
}

/* TELEFON */
@media (max-width: 560px) {
    /* #site-footer height managed by footer.css */
    .layout-block { padding: 12px; }
    #block-circle { min-height: 60vh; }
    #bottom-dashboard {
        max-width: 420px;
    }
    .prayer-card { padding: 10px 14px; }
    .prayer-card-name { font-size: 12px; letter-spacing: 1.2px; }
    .prayer-card-time { font-size: 22px; }
    .prayer-card-relative { font-size: 11px; }
    #quran-player { max-width: 320px; padding: 18px 16px 14px; }
}
