:root {
    --cdt-red: #B80000;
    --cdt-blue: #1D70B8;
    --cdt-green: #198754;
    --cdt-white: #FFFFFF;
    --cdt-bg: #FDFDFD;
    --cdt-black: #000000;
    --cdt-border: rgba(0,0,0,0.06);
    --cdt-glass: rgba(255, 255, 255, 0.8);
}
/* spacing scale (0–5) */
:root {
    --cdt-space-0: 0;
    --cdt-space-1: 0.25rem; /* 4px */
    --cdt-space-2: 0.5rem;  /* 8px */
    --cdt-space-3: 1rem;    /* 16px */
    --cdt-space-4: 1.5rem;  /* 24px */
    --cdt-space-5: 3rem;    /* 48px */
}
/* Margin all */
.cdt-m-0 { margin: var(--cdt-space-0); }
.cdt-m-1 { margin: var(--cdt-space-1); }
.cdt-m-2 { margin: var(--cdt-space-2); }
.cdt-m-3 { margin: var(--cdt-space-3); }
.cdt-m-4 { margin: var(--cdt-space-4); }
.cdt-m-5 { margin: var(--cdt-space-5); }

/* Margin top */
.cdt-mt-0 { margin-top: var(--cdt-space-0); }
.cdt-mt-1 { margin-top: var(--cdt-space-1); }
.cdt-mt-2 { margin-top: var(--cdt-space-2); }
.cdt-mt-3 { margin-top: var(--cdt-space-3); }
.cdt-mt-4 { margin-top: var(--cdt-space-4); }
.cdt-mt-5 { margin-top: var(--cdt-space-5); }

/* Margin bottom */
.cdt-mb-0 { margin-bottom: var(--cdt-space-0); }
.cdt-mb-1 { margin-bottom: var(--cdt-space-1); }
.cdt-mb-2 { margin-bottom: var(--cdt-space-2); }
.cdt-mb-3 { margin-bottom: var(--cdt-space-3); }
.cdt-mb-4 { margin-bottom: var(--cdt-space-4); }
.cdt-mb-5 { margin-bottom: var(--cdt-space-5); }

/* Margin start / end */
.cdt-ms-3 { margin-left: var(--cdt-space-3); }
.cdt-me-3 { margin-right: var(--cdt-space-3); }

/* Auto */
.cdt-m-auto { margin: auto; }
.cdt-ms-auto { margin-left: auto; }
.cdt-me-auto { margin-right: auto; }
/* Padding all */
.cdt-p-0 { padding: var(--cdt-space-0); }
.cdt-p-1 { padding: var(--cdt-space-1); }
.cdt-p-2 { padding: var(--cdt-space-2); }
.cdt-p-3 { padding: var(--cdt-space-3); }
.cdt-p-4 { padding: var(--cdt-space-4); }
.cdt-p-5 { padding: var(--cdt-space-5); }

/* Padding Y / X */
.cdt-py-3 {
    padding-top: var(--cdt-space-3);
    padding-bottom: var(--cdt-space-3);
}

.cdt-px-3 {
    padding-left: var(--cdt-space-3);
    padding-right: var(--cdt-space-3);
}
/* Row */
.cdt-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

/* Column base */
.cdt-col {
    flex: 1 0 0%;
    padding-left: 12px;
    padding-right: 12px;
}

/* Fixed columns */
.cdt-col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.cdt-col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.cdt-col-3 { flex: 0 0 25%; max-width: 25%; }
.cdt-col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.cdt-col-6 { flex: 0 0 50%; max-width: 50%; }
.cdt-col-12 { flex: 0 0 100%; max-width: 100%; }
/* Display */
.cdt-d-flex { display: flex; }
.cdt-d-inline-flex { display: inline-flex; }
.cdt-d-block { display: block; }
.cdt-d-none { display: none; }

/* Direction */
.cdt-flex-row { flex-direction: row; }
.cdt-flex-column { flex-direction: column; }

/* Justify */
.cdt-justify-start { justify-content: flex-start; }
.cdt-justify-center { justify-content: center; }
.cdt-justify-end { justify-content: flex-end; }
.cdt-justify-between { justify-content: space-between; }
.cdt-justify-around { justify-content: space-around; }

/* Align */
.cdt-align-start { align-items: flex-start; }
.cdt-align-center { align-items: center; }
.cdt-align-end { align-items: flex-end; }

/* Wrap */
.cdt-flex-wrap { flex-wrap: wrap; }
.cdt-flex-nowrap { flex-wrap: nowrap; }

@media (min-width: 576px) {
    .cdt-col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .cdt-col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
    .cdt-col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .cdt-col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .cdt-col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .cdt-col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 992px) {
    .cdt-col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .cdt-col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .cdt-col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}
.cdt-gap-0 { gap: 0; }
.cdt-gap-1 { gap: 0.25rem; }
.cdt-gap-2 { gap: 0.5rem; }
.cdt-gap-3 { gap: 1rem; }
.cdt-gap-4 { gap: 1.5rem; }
.cdt-gap-5 { gap: 3rem; }
.cdt-text-start { text-align: left; }
.cdt-text-center { text-align: center; }
.cdt-text-end { text-align: right; }
.cdt-text-uppercase { text-transform: uppercase; }
.cdt-text-lowercase { text-transform: lowercase; }
.cdt-text-capitalize { text-transform: capitalize; }
.cdt-fw-light { font-weight: 300; }
.cdt-fw-normal { font-weight: 400; }
.cdt-fw-medium { font-weight: 500; }
.cdt-fw-bold { font-weight: 700; }
@media (min-width: 768px) {
    .cdt-text-md-start { text-align: left; }
    .cdt-text-md-center { text-align: center; }
}

@media (min-width: 992px) {
    .cdt-text-lg-start { text-align: left; }
    .cdt-text-lg-end { text-align: right; }
}
.cdt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.cdt-btn-red {
    background: var(--cdt-red);
    color: #fff;
}

.cdt-btn-blue {
    background: var(--cdt-blue);
    color: #fff;
}

.cdt-btn-red:hover {
    background: #990000;
}

.cdt-btn-blue:hover {
    background: #155a94;
}
.cdt-btn-outline-red {
    background: transparent;
    color: var(--cdt-red);
    border-color: var(--cdt-red);
}

.cdt-btn-outline-blue {
    background: transparent;
    color: var(--cdt-blue);
    border-color: var(--cdt-blue);
}

.cdt-btn-outline-red:hover {
    background: var(--cdt-red);
    color: #fff;
}

.cdt-btn-outline-blue:hover {
    background: var(--cdt-blue);
    color: #fff;
}
.cdt-btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.cdt-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}
.cdt-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cdt-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.cdt-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-weight: 600;
}

.cdt-card-body {
    padding: 1.25rem;
}

.cdt-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}
@keyframes cdtFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cdt-animate-fade {
    animation: cdtFadeIn 0.6s ease forwards;
}
@keyframes cdtSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cdt-animate-up {
    animation: cdtSlideUp 0.6s ease forwards;
}
@keyframes cdtScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cdt-animate-scale {
    animation: cdtScaleIn 0.35s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
    .cdt-animate-fade,
    .cdt-animate-up,
    .cdt-animate-scale {
        animation: none;
    }
}
/* Display Headings Base */
.cdt-display-1, .cdt-display-2, .cdt-display-3,
.cdt-display-4, .cdt-display-5, .cdt-display-6 {
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}
.cdt-display-1 { font-size: 5rem; }   /* ~80px */
.cdt-display-2 { font-size: 4.5rem; } /* ~72px */
.cdt-display-3 { font-size: 4rem; }   /* ~64px */
.cdt-display-4 { font-size: 3.5rem; } /* ~56px */
.cdt-display-5 { font-size: 3rem; }   /* ~48px */
.cdt-display-6 { font-size: 2.5rem; } /* ~40px */
/* Medium devices (MD: ≥768px) */
@media (max-width: 991.98px) {
    .cdt-display-1 { font-size: 4rem; }   /* 64px */
    .cdt-display-2 { font-size: 3.5rem; } /* 56px */
    .cdt-display-3 { font-size: 3rem; }   /* 48px */
    .cdt-display-4 { font-size: 2.5rem; } /* 40px */
    .cdt-display-5 { font-size: 2rem; }   /* 32px */
    .cdt-display-6 { font-size: 1.75rem;} /* 28px */
}

/* Small devices (SM: <768px) */
@media (max-width: 575.98px) {
    .cdt-display-1 { font-size: 3rem; }   /* 48px */
    .cdt-display-2 { font-size: 2.5rem; } /* 40px */
    .cdt-display-3 { font-size: 2.25rem;} /* 36px */
    .cdt-display-4 { font-size: 1.75rem;} /* 28px */
    .cdt-display-5 { font-size: 1.5rem; } /* 24px */
    .cdt-display-6 { font-size: 1.25rem;} /* 20px */
}


/* Background color utilities */
.bg-cdt-red { background-color: var(--cdt-red) !important; }
.bg-cdt-blue { background-color: var(--cdt-blue) !important; }
.bg-cdt-white { background-color: var(--cdt-white) !important; }
.bg-cdt-bg { background-color: var(--cdt-bg) !important; }
.bg-cdt-black { background-color: var(--cdt-black) !important; }

/* Text color utilities */
.text-cdt-red { color: var(--cdt-red) !important; }
.text-cdt-blue { color: var(--cdt-blue) !important; }
.text-cdt-white { color: var(--cdt-white) !important; }
.text-cdt-bg { color: var(--cdt-bg) !important; }
.text-cdt-black { color: var(--cdt-black) !important; }

/* Border color utilities */
.border-cdt-red { border-color: var(--cdt-red) !important; }
.border-cdt-blue { border-color: var(--cdt-blue) !important; }
.border-cdt-white { border-color: var(--cdt-white) !important; }
.border-cdt-bg { border-color: var(--cdt-bg) !important; }
.border-cdt-black { border-color: var(--cdt-black) !important; }
body {
    background-color: var(--cdt-bg);
    color: var(--cdt-black);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* SLIM STICKY HEADER */
.navbar {
    background: var(--cdt-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cdt-border);
    padding: 0.6rem 0; /* Reduced Y-axis */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cdt-black) !important;
    margin-left: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--cdt-blue) !important; }
/* FLAG STYLING */
.country-flag {
    height: 48px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    vertical-align: middle;
    margin-left: 10px;
}
/* HERO SECTION */
.hero-section {
    padding: 20px 0;
    background: radial-gradient(circle at 80% 20%, rgba(29, 112, 184, 0.04), transparent);
}

.main-clock-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
    color: var(--cdt-black);
}

.main-clock-display span {
    color: var(--cdt-red);
    animation: pulse 2s infinite;
}

@keyframes pulse { 50% { opacity: 0.2; } }

/* REFINED ANALOG CLOCK */
.analog-outer {
    width: 320px;
    height: 320px;
    margin: auto;
    position: relative;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        20px 20px 60px #d9d9d9,
        -20px -20px 60px #ffffff; /* Neomorphic Shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 9px solid var(--cdt-black);
}

.analog-outer::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border: 1px dashed rgba(0,0,0,0.05);
    border-radius: 50%;
}

/* WORLD GRID LIGHT THEME */
.world-grid-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    border-top: 1px solid var(--cdt-border);
}

.time-tile {
    background: var(--cdt-white);
    border: 1px solid var(--cdt-border);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.time-tile:hover {
    transform: translateY(-5px);
    border-color: var(--cdt-blue);
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.tile-city {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--cdt-black);
}

.tile-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    color: var(--cdt-blue);
    margin: 10px 0;
}

.tile-tz {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cdt-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-toggle-custom {
    background: #eee;
    padding: 3px;
    border-radius: 8px;
    display: inline-flex;
}

.btn-toggle-custom button {
    border: none;
    background: transparent;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
}

.btn-toggle-custom button.active {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Container & Wrapper */
.cdt-tools-wrapper {
    padding: 80px 0;
    background-color: var(--cdt-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
.tools-intro {
    text-align: center;
    margin-bottom: 50px;
}

.tools-intro .badge {
    background: rgba(184, 0, 0, 0.1);
    color: var(--cdt-red);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.tools-intro h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 10px 0;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
}

/* List Panel (Left) */
.list-panel {
    background: var(--cdt-white);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--cdt-border);
}

.category-group {
    margin-bottom: 30px;
}

.category-group h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--cdt-black);
}

.link-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-tags a {
    background: var(--cdt-bg);
    border: 1px solid var(--cdt-border);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: 0.2s;
}

.link-tags a:hover {
    background: var(--cdt-blue);
    color: white;
    transform: translateY(-2px);
}

/* Interactive Panel (Right) */
.interactive-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tool-card {
    background: var(--cdt-white);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--cdt-border);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transform: translateY(-5px);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.tool-info h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.tool-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

/* Accent Colors */
.accent-orange { border-top: 5px solid #FF9500; }
.accent-deep-orange { border-top: 5px solid #FF5E00; }
.accent-blue { border-top: 5px solid var(--cdt-blue); }
.accent-green { border-top: 5px solid #34C759; }
.accent-purple { border-top: 5px solid #AF52DE; }

/* Buttons & Presets */
.tool-btn {
    margin-top: auto;
    background: var(--cdt-black);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.timer-presets, .alarm-presets {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.timer-presets span, .alarm-presets span {
    background: var(--cdt-bg);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-split a {
    background: var(--cdt-bg);
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--cdt-black);
    border: 1px solid var(--cdt-border);
}

/* Responsive Design */
@media (max-width: 992px) {
    .bento-grid { grid-template-columns: 1fr; }
    .tool-row { grid-template-columns: 1fr; }
}

/* Footer Styles */
.cdt-footer {
    background-color: var(--cdt-white);
    border-top: 1px solid var(--cdt-border);
    padding: 80px 0 0 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: block;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--cdt-black);
}

.footer-desc {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cdt-blue);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--cdt-bg);
    color: var(--cdt-black);
    transition: all 0.3s ease;
    border: 1px solid var(--cdt-border);
}

.social-icon:hover {
    background: var(--cdt-red);
    color: white;
    transform: translateY(-3px);
}

/* Mini Calendar Styling */
.mini-calendar {
    background: var(--cdt-bg);
    border: 1px solid var(--cdt-border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid var(--cdt-border);
    background: #fcfcfc;
}

.bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.bottom-legal a {
    margin-left: 20px;
    color: #888;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-col:last-child {
        grid-column: span 1;
    }
    .bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .hero-section {
        padding: 10px 0;
    }
    /* REFINED ANALOG CLOCK */
    .analog-outer {
        width: 220px;
        height: 220px;
    }
    .world-grid-section {
        padding: 20px 0;
    }
    .country-flag { height: 32px; }
}

/*!* Small devices (portrait tablets and large phones, 600px and up) *!*/
/*@media only screen and (min-width: 600px) {...}*/

/*!* Medium devices (landscape tablets, 768px and up) *!*/
/*@media only screen and (min-width: 768px) {...}*/

/*!* Large devices (laptops/desktops, 992px and up) *!*/
/*@media only screen and (min-width: 992px) {...}*/

/*!* Extra large devices (large laptops and desktops, 1200px and up) *!*/
/*@media only screen and (min-width: 1200px) {...}*/


/* ================================
   VERTICAL WORLD TIME (PREMIUM)
================================ */

.world-vertical {
    /*max-width: 620px;*/
    margin: 20px auto;
    padding: 0 16px;
}


/* LIST */
.time-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ROW */
.time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f7f9fc);
    box-shadow:
        0 10px 30px rgba(0,0,0,.06),
        inset 0 0 0 1px rgba(255,255,255,.6);
    transition: transform .2s ease, box-shadow .2s ease;
}

.time-row:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 18px 45px rgba(0,0,0,.10),
        inset 0 0 0 1px rgba(255,255,255,.7);
}

/* LEFT */
.city {
    display: flex;
    flex-direction: column;
}

.city-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #111;
}

.city-meta {
    font-size: .8rem;
    color: #6c757d;
    margin-top: 2px;
}

/* RIGHT */
.city-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0d6efd;
    letter-spacing: .5px;
}
/* MOBILE FEEL */
@media (max-width: 480px) {
    .city-time {
        font-size: 1.4rem;
    }
    .time-row {
        padding: 16px;
    }
}
.logo-text{
    font-size: large;
}
/* --- Weather Pro Widget --- */

/* Container */
.weather-pro-container {
    max-width: 480px;
    position: relative;
    --weather-color: #607D8B; /* fallback */
    --weather-gradient: linear-gradient(135deg, #90A4AE 0%, #455A64 100%);
    /* Entrance animation */
    animation: fadeInUp 0.8s ease-out;
}

/* Background blur circle */
.weather-pro-blur {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--weather-color);
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
    /* Pulsing background effect */
    animation: pulseBlur 6s infinite ease-in-out;
}

/* Main card */
.weather-pro-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the card */
.weather-pro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.2);
}

/* Card body */
.weather-pro-card .card-body {
    padding: 1rem;
}

/* Header */
.weather-pro-header .weather-pro-city {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -1px;
    color: #202124;
    margin-bottom: 0;
}

.weather-pro-header .weather-pro-date {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    font-size: 1rem;
}

/* Flag container */
.weather-pro-flag {
    background: #fff;
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}

.weather-pro-flag img {
    width: 72px;
    opacity: 0.6;
}

/* Temperature section */
.weather-pro-temp {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 0.8;
    color: #202124;
}

/* Toggle buttons */
.weather-pro-toggle {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    margin-top: 0.5rem;
}

.weather-pro-toggle button {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.weather-pro-toggle button:hover {
    background: rgba(0,0,0,0.05);
}

.weather-pro-btn-active {
    background: #fff;
    color: #202124;
}

.weather-pro-btn-inactive {
    background: transparent;
    color: #6c757d;
}

/* Weather icon */
.weather-pro-icon {
    font-size: 5rem;
    color: var(--weather-color);
    filter: drop-shadow(0 10px 15px var(--weather-color)40);
    animation: float 4s infinite ease-in-out;
    display: inline-block;
}

/* Badge */
.weather-pro-badge {
    background: var(--weather-gradient);
    color: #fff;
    box-shadow: 0 4px 12px var(--weather-color)50;
    font-size: 1.3rem;
}

/* Weather details */
.weather-pro-detail-item {
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(0,0,0,0.03);
    transition: background 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 0.5s ease-out backwards;
}

.weather-pro-detail-item:hover {
    background: rgba(0,0,0,0.06);
    transform: scale(1.02);
}

.weather-pro-detail-item i {
    margin-bottom: 0.25rem;
}

/* Staggered entrance for detail items */
.weather-pro-detail-item:nth-child(1) { animation-delay: 0.2s; }
.weather-pro-detail-item:nth-child(2) { animation-delay: 0.3s; }
.weather-pro-detail-item:nth-child(3) { animation-delay: 0.4s; }

/* --- Keyframes --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseBlur {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0.4; }
}

.custom-spinner-header{
    --bs-spinner-width: 8px; --bs-spinner-height: 8px;
}
