/* --- General Body & Theme --- */
body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding-top: 140px; /* Space for sticky header */
}

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

/* --- Sticky Header --- */
.sticky-header {
    background-color: #2c2c2c;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.logo{
    width: 40%;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
}

.logo a {
    color: #00aaff;
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
}

.language-selector select {
    background-color: #3d3d3d;
    color: #f0f0f0;
    border: 1px solid #555;
    padding: 5px;
    border-radius: 4px;
}

/* --- Navigation --- */
.main-nav {
    background-color: #333;
    width: 100%;
    text-align: center;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}

.main-nav ul li a {
    display: block;
    color: #f0f0f0;
    padding: 15px 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.main-nav ul li a:hover {
    background-color: #00aaff;
    color: #1a1a1a;
}

/* --- Navigation Dropdown Styles --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .drop-btn {
    border: none;
    outline: none;
    color: #f0f0f0;
    padding: 15px 20px;
    background-color: inherit;
    font-family: inherit;
    font-size: 1em; /* Matches other nav links */
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c2c2c;
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    z-index: 1001; /* Must be higher than other elements */
}

.dropdown-content a {
    color: #f0f0f0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #00aaff;
    color: #1a1a1a;
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* On mobile, remove dropdown hover effect */
@media (max-width: 768px) {
    .logo{
    width: 80%;
}
    .dropdown {
        display: block; /* Make it a full list item */
    }
    .dropdown .drop-btn {
        width: 100%;
        text-align: left;
    }
    .dropdown-content {
        position: static; /* No absolute positioning */
        box-shadow: none;
        background-color: #3d3d3d; /* Slightly different bg */
    }
}

.mobile-menu-icon {
    display: none;
    font-size: 2em;
    cursor: pointer;
}

/* --- Ad Spaces --- */
.header-ad-banner {
    min-height: 60px;
    min-width: 468px;
    background-color: #333;
    color: #888;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-ad-banner-sticky {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #2c2c2c;
    min-height: 50px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    color: #888;
}

/* --- Footer --- */
.site-footer {
    background-color: #2c2c2c;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 2px solid #00aaff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    width: 30%;
}

.footer-column h4 {
    color: #00aaff;
}

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

.footer-column ul li a {
    color: #f0f0f0;
    text-decoration: none;
    line-height: 1.8;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Adjust for smaller header */
    }
    
    .header-ad-banner {
        display: none;
    }

    .main-nav {
        display: none; /* Hide nav by default on mobile */
        width: 100%;
    }

    .main-nav.active {
        display: block; /* Show when toggled */
    }

    .main-nav ul {
        flex-direction: column;
    }

    .mobile-menu-icon {
        display: block;
    }

    .mobile-ad-banner-sticky {
        display: flex;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }
}


/* --- World Clock Styles --- */
.world-clock-add-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
#timezone-input {
    flex-grow: 1;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #555;
    color: #f0f0f0;
    border-radius: 4px;
    font-size: 1.1em;
}
#add-clock-btn {
    padding: 0 25px;
    font-size: 1.1em;
    background-color: #00aaff;
    color: #1a1a1a;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.clock-card {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    border-left: 5px solid #00aaff;
}
.clock-card .city {
    font-size: 1.6em;
    font-weight: bold;
    color: #f0f0f0;
    margin: 0;
}
.clock-card .country {
    font-size: 1em;
    color: #ccc;
    margin: 0 0 15px 0;
}
.clock-card .time {
    font-size: 3.5em;
    font-family: 'Courier New', Courier, monospace;
    color: #00aaff;
    text-align: center;
    margin: 10px 0;
}
.clock-card .date {
    text-align: center;
    color: #ccc;
    font-size: 1.1em;
}
.remove-clock-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.8em;
    cursor: pointer;
    line-height: 1;
}
.remove-clock-btn:hover {
    color: #fff;
}


/* --- Calculator & Converter Containers --- */
.calculator-container {
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #444;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #555;
    color: #f0f0f0;
    border-radius: 4px;
    font-size: 1em;
}

/* --- Timezone Converter Specific Styles --- */
.timezone-converter {
    justify-content: space-between;
    align-items: flex-start;
}

.timezone-column {
    flex: 1;
    min-width: 280px;
}

.swap-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px; /* Aligns with the second input group */
}

.swap-column button {
    background-color: #00aaff;
    color: #fff;
    border: none;
    font-size: 2em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

.swap-column button:hover {
    transform: rotate(180deg);
}

#result-container {
    margin-top: 30px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.live-result {
    font-size: 2.5em;
    font-weight: bold;
    color: #00aaff;
}

.live-result-small {
    font-size: 1.2em;
    color: #ccc;
    margin-top: 5px;
}

/* --- General Utility Classes --- */
.hidden {
    display: none;
}

/* --- Form Group Enhancements --- */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto; /* Override default width for checkboxes */
}

.calculator-container button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background-color: #00aaff;
    color: #1a1a1a;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.calculator-container button:hover {
    background-color: #0088cc;
}

/* --- Live Counter for Time Calculator --- */
.live-counter {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    /* New Flexbox styles for horizontal layout */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    gap: 25px; /* Creates space between each time unit */
}

.live-counter p {
    margin: 10px 0;
    font-size: 1.6em;
    color: #f0f0f0;
}

.live-counter p span {
    font-weight: bold;
    color: #00aaff;
    min-width: 50px; /* Aligns numbers nicely */
    display: inline-block;
    text-align: right;
    margin-right: 10px;
}

.time-unit {
    text-align: center;
    color: #ccc;
    font-size: 1.1em;
}

/* NEW style for the number part of the unit */
.time-unit span {
    display: block; /* Puts the number on its own line above the label */
    font-size: 2.2em;
    font-weight: bold;
    color: #00aaff;
    margin-bottom: 5px;
}

/* --- Stopwatch Styles --- */
.stopwatch-container {
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #444;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.stopwatch-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 4.5em;
    color: #f0f0f0;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.stopwatch-display #sw-milliseconds {
    color: #888;
    font-size: 0.7em;
}

.stopwatch-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.sw-btn {
    width: 120px;
    height: 50px;
    border-radius: 25px; /* Pill shape */
    border: 2px solid;
    background-color: transparent;
    color: #f0f0f0;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.sw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sw-btn-start { border-color: #28a745; color: #28a745; }
.sw-btn-start:hover:not(:disabled) { background-color: #28a745; color: #1a1a1a; }

.sw-btn-stop { border-color: #dc3545; color: #dc3545; }
.sw-btn-stop:hover:not(:disabled) { background-color: #dc3545; color: #1a1a1a; }

.sw-btn-lap { border-color: #00aaff; color: #00aaff; }
.sw-btn-lap:hover:not(:disabled) { background-color: #00aaff; color: #1a1a1a; }

.sw-btn-reset { border-color: #6c757d; color: #6c757d; }
.sw-btn-reset:hover:not(:disabled) { background-color: #6c757d; color: #1a1a1a; }

.stopwatch-laps {
    max-height: 200px;
    overflow-y: auto;
    background-color: #1a1a1a;
    border-radius: 4px;
    padding: 0 15px;
}

.stopwatch-laps ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.stopwatch-laps li {
    padding: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', Courier, monospace;
}

.stopwatch-laps li:last-child {
    border-bottom: none;
}

/* --- Timer Styles --- */
.timer-container {
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #444;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.timer-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 5em;
    color: #f0f0f0;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: color 0.3s;
}

/* Style for when the timer ends */
.timer-display.finished {
    color: #dc3545;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timer-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.timer-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-input-group label {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 10px;
}

.timer-input-group input {
    width: 80px;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px solid #555;
    color: #f0f0f0;
    border-radius: 4px;
    font-size: 1.5em;
    text-align: center;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.timer-btn {
    width: 150px;
    height: 50px;
    border-radius: 25px;
    border: 2px solid;
    background-color: transparent;
    color: #f0f0f0;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.timer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timer-btn-start { border-color: #28a745; color: #28a745; }
.timer-btn-start:hover:not(:disabled) { background-color: #28a745; color: #1a1a1a; }

.timer-btn-pause { border-color: #ffc107; color: #ffc107; }
.timer-btn-pause:hover:not(:disabled) { background-color: #ffc107; color: #1a1a1a; }

.timer-btn-reset { border-color: #6c757d; color: #6c757d; }
.timer-btn-reset:hover:not(:disabled) { background-color: #6c757d; color: #1a1a1a; }

/* --- Calendar Styles (Corrected) --- */
.calendar-container {
    background-color: #2c2c2c;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #444;
    max-width: 900px; /* You can adjust this width as needed */
    margin: 20px auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.calendar-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8em;
    font-weight: bold;
}

#year-select {
    font-size: 0.8em;
    font-weight: bold;
    background-color: #3d3d3d;
    color: #f0f0f0;
    border: 1px solid #555;
    padding: 5px 10px;
    border-radius: 4px;
}

.calendar-nav-btn {
    background: none;
    border: none;
    color: #00aaff;
    font-size: 2.5em;
    cursor: pointer;
    padding: 0 15px;
    transition: color 0.3s;
}

.calendar-nav-btn:hover {
    color: #fff;
}

/* THIS IS THE MAIN FIX: Applying grid to the direct parents of the cells */
.calendar-weekdays,
.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px; /* Creates space between cells */
}

/* Adding some space between the weekdays row and the dates grid */
.calendar-weekdays {
    margin-bottom: 10px;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: bold;
    color: #00aaff;
    padding-bottom: 5px;
}

.calendar-dates div {
    display: flex; /* Helps vertically center the number */
    justify-content: center;
    align-items: center;
    font-weight: bold;
    background-color: #3d3d3d;
    border-radius: 4px;
    min-height: 80px; /* Adjust height of date cells */
    transition: background-color 0.3s;
}

.calendar-dates div.empty {
    background-color: transparent;
    border: none;
}

.calendar-dates div.current-day {
    background-color: #00aaff;
    color: #1a1a1a;
    position: relative;
    border: 2px solid #f0f0f0;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.7);
}

/* --- Sun & Moon Page Styles --- */
.tool-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .tool-grid-two-col {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}

#use-location-btn {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    background-color: #00aaff;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

#use-location-btn:hover {
    background-color: #0088cc;
}

.sun-moon-results {
    margin-top: 20px;
}

.sun-moon-results p {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid #444;
}

.sun-moon-results p:last-child {
    border-bottom: none;
}

.sun-moon-results p span {
    font-weight: bold;
    color: #00aaff;
}

.loading-text {
    color: #888;
    text-align: center;
    font-style: italic;
}

/* Moon Visualizer */
#moon-phase-visual {
    text-align: center;
    margin-bottom: 20px;
}

#moon-phase-text {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #f0f0f0;
}

#moon-disc {
    width: 150px;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(240, 240, 240, 0.5);
}

#moon-shadow {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- Tab System Styles --- */
.tabs-container {
    width: 100%;
}
.tab-buttons {
    display: flex;
    border-bottom: 2px solid #444;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 15px 25px;
    cursor: pointer;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.tab-btn:hover {
    background-color: #3d3d3d;
}
.tab-btn.active {
    color: #00aaff;
    border-bottom: 3px solid #00aaff;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* --- Regional Calendar Specific Styles (Corrected) --- */
/* Apply grid directly to the date containers */
#islamic-calendar-dates,
#chinese-calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

/* The style for each date cell */
.date-cell-regional {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    padding: 8px;
    background-color: #3d3d3d;
    border-radius: 4px;
}

.regional-calendar-day {
    font-size: 1.5em;
    font-weight: bold;
}

.regional-calendar-sub-day {
    font-size: 0.8em;
    color: #ccc;
    margin-top: 5px;
}

.chinese-animal-sign {
    font-size: 0.7em;
    color: #00aaff;
    margin-top: 5px;
}

/* Highlight for current day */
.date-cell-regional.current-day {
    background-color: #00aaff;
    color: #1a1a1a;
    border: 2px solid #f0f0f0;
}

.date-cell-regional.current-day .regional-calendar-sub-day {
    color: #1a1a1a; /* Make sub-text visible on highlight */
}

/* --- General Calendar Title Styling --- */
.calendar-title-h2 {
    font-size: 1.8em;
    font-weight: bold;
    color: #f0f0f0;
    text-align: center;
    flex-grow: 1; /* Allows the title to take up space */
}

/* --- Holidays Page Styles --- */
.holidays-container {
    background-color: #2c2c2c;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #444;
}

.filter-bar {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-bar label {
    font-size: 1.2em;
    font-weight: bold;
}

#country-filter {
    padding: 10px;
    font-size: 1.1em;
    background-color: #3d3d3d;
    color: #f0f0f0;
    border: 1px solid #555;
    border-radius: 4px;
}

.holidays-list .holiday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #444;
}

.holidays-list .holiday-item:last-child {
    border-bottom: none;
}

.holiday-date {
    font-weight: bold;
    color: #00aaff;
    font-size: 1.1em;
}

.holiday-name {
    font-size: 1.1em;
    color: #f0f0f0;
}

/* --- Calculators Page Styles --- */
.calculator-wrapper {
    background-color: #2c2c2c;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #444;
    margin-bottom: 30px; /* Space between calculators */
}

.calculator-wrapper h2 {
    color: #00aaff;
    margin-top: 0;
    text-align: center;
    border-bottom: 2px solid #444;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.result-box {
    margin-top: 25px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 4px;
    border-left: 5px solid #00aaff;
}

.result-box h3 {
    margin-top: 0;
    color: #f0f0f0;
}

.result-box p {
    font-size: 1.2em;
    margin: 10px 0;
}

.result-box p span {
    font-weight: bold;
    color: #f0f0f0;
}

.result-box .total-days {
    font-size: 1.4em;
    font-weight: bold;
    color: #00aaff;
    margin-top: 15px;
}

/* --- Legal Page Styles --- */
.legal-page-content {
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 8px;
    line-height: 1.8;
}

.legal-page-content h1 {
    color: #00aaff;
    border-bottom: 2px solid #444;
    padding-bottom: 15px;
}

.legal-page-content h2 {
    color: #f0f0f0;
    margin-top: 30px;
}

.legal-page-content p {
    color: #ccc;
}

.legal-page-content em {
    color: #888;
}

/* --- Work Hours Calculator Styles --- */
.timesheet-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.timesheet-header {
    font-weight: bold;
    color: #00aaff;
    padding-bottom: 10px;
}

.timesheet-row input {
    width: 100%;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px solid #555;
    color: #f0f0f0;
    border-radius: 4px;
    font-size: 1em;
    text-align: center;
}

.timesheet-row .day-label {
    font-weight: bold;
}

.timesheet-row .total-col {
    font-weight: bold;
    text-align: center;
}

.timesheet-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.timesheet-controls button {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

#add-day-btn {
    background-color: #28a745;
    color: #fff;
}

#reset-sheet-btn {
    background-color: #6c757d;
    color: #fff;
}

/* --- Calculator Submit Button --- */
.calculator-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background-color: #00aaff;
    color: #1a1a1a;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.calculator-submit-btn:hover {
    background-color: #0088cc;
}

/* --- Meeting Planner Styles --- */
.selected-timezones-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.timezone-tag {
    background-color: #00aaff;
    color: #1a1a1a;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.timezone-tag.home {
    background-color: #28a745; /* Highlight the 'home' timezone */
    color: #fff;
}
.remove-tz-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 1.2em;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

/* Results Grid */
#meeting-planner-grid-container {
    margin-top: 30px;
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
}
.meeting-grid {
    display: grid;
    border-left: 1px solid #444;
}
.grid-header, .grid-row {
    display: contents; /* Makes children act as direct grid items */
}
.grid-cell {
    padding: 12px;
    border-right: 1px solid #444;
    border-bottom: 1px solid #444;
    text-align: center;
    min-width: 150px;
}
.grid-header .grid-cell {
    background-color: #3d3d3d;
    font-weight: bold;
    position: sticky;
    top: 0;
}
.grid-cell.time-header {
    font-weight: bold;
    background-color: #333;
}

/* Cell Highlighting */
.grid-cell.good-hour { background-color: #28a745; color: #fff; } /* 9am - 5pm */
.grid-cell.okay-hour { background-color: #ffc107; color: #1a1a1a; } /* 7-9am, 5-7pm */
.grid-cell.bad-hour { background-color: #444; } /* Outside work hours */

/* Best Time Highlighting */
.grid-row.best-time .grid-cell {
    border-left: 5px solid #00aaff;
    font-weight: bold;
}

/* --- On This Day Page Styles --- */
.history-section {
    background-color: #2c2c2c;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.history-section h2 {
    color: #00aaff;
    margin-top: 0;
    border-bottom: 2px solid #444;
    padding-bottom: 15px;
}
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.history-list li {
    padding: 15px 0;
    border-bottom: 1px solid #444;
    line-height: 1.6;
    color: #ccc;
}
.history-list li:last-child {
    border-bottom: none;
}
.history-year {
    font-weight: bold;
    color: #f0f0f0;
    margin-right: 10px;
}
.history-text a {
    color: #00aaff;
    text-decoration: none;
}
.history-text a:hover {
    text-decoration: underline;
}