/* wwwroot/css/styles.css */

/* Global styles */
body {
    background-color: #181A1B;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
    align-items: center;
    color: #C8C3BC;
}

/* Banner styles - UPDATED for title centering */
.banner {
    position: relative;
    width: 85%;
    margin: 20px auto;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 3em;
    color: #C8C3BC;
    text-align: center;
}

    .banner > span {
    }

/* Sub-header message */
.sub-header {
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 1.2em;
    color: #B2ACA2;
    margin: -10px auto 15px auto;
    font-weight: normal;
}

/* Copy button */
.copy-button {
    background-color: #0062CC;
    color: #E8E6E3;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 10px;
}

.copy-button-copied {
    background-color: #28a745;
    color: #E8E6E3;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: default;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* LOGIN BUTTON - UPDATED for size and position */
.login-button {
    background-color: #0062CC;
    color: #E8E6E3;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.login-button:hover {
    background-color: #155a94;
}

/* Container styles */
.container,
.year-month-selection-container,
.chart-container,
.selected-year-container,
.graph-title,
.top-section {
    width: 80%;
    margin: 20px auto;
}

/* Top Section: "That's Me" Button and Grand Total Count */
.top-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hug button styles */
.hug-button {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #920D00;
    color: #E8E6E3;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

    .hug-button:hover {
        background-color: #a51500;
    }

    .hug-button:active {
        transform: scale(0.98);
    }

/* Little to None Anymore button styles */
.little-to-none-button {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #800080;
    color: #E8E6E3;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

    .little-to-none-button:hover {
        background-color: #6a006a;
    }

    .little-to-none-button:active {
        transform: scale(0.98);
    }

/* Toggle Mode button styles */
.toggle-mode-button {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #0062CC;
    color: #E8E6E3;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

    .toggle-mode-button:hover {
        background-color: #155a94;
    }

    .toggle-mode-button:active {
        transform: scale(0.98);
    }

    .toggle-mode-button:disabled {
        background-color: #333;
        color: #666;
        cursor: not-allowed;
    }

/* Count box styling */
.count-box {
    background-color: #202325;
    color: #C8C3BC;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.5em;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

/* Time Since counter styling */
.time-since-box {
    background-color: #202325;
    color: #C8C3BC;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.2em;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    margin-left: 20px;
    display: none;
}

/* Year and Month selection container styling */
.year-month-selection-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

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

.dropbtn {
    background-color: #920D00;
    color: #E8E6E3;
    padding: 15px 25px;
    font-size: 1.2em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

    .dropbtn:hover {
        background-color: #a51500;
        transform: translateY(-2px);
    }

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2A2D2F;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.4);
    border-radius: 12px;
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .dropdown-content button {
        color: #C8C3BC;
        padding: 12px 20px;
        text-decoration: none;
        display: block;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        font-size: 1em;
        transition: background-color 0.2s ease;
        font-family: 'Arial', sans-serif;
        font-weight: bold;
    }

        .dropdown-content button:hover {
            background-color: #2A2D2F;
        }

.dropdown.show .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.selected-year-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

    .selected-year-container .hug-description {
        font-size: 1em;
        color: #B2ACA2;
        font-family: 'Arial', sans-serif;
        font-weight: bold;
    }

.graph-title {
    font-size: 2em;
    font-weight: bold;
    color: #C8C3BC;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.chart-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 50px;
    height: 500px;
    position: relative;
    padding-bottom: 50px;
}

.already-clicked,
.greyed-out {
    background-color: #2A2D2F !important;
    color: #B2ACA2 !important;
    border-color: #444 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.timer-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.02rem;
    color: #E8E6E3;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

    .timer-tag.active-timer {
        background-color: #4caf50;
    }

    .timer-tag.framed-timer {
        background-color: #2196f3;
    }

.timer-date {
    display: inline-block;
    font-size: 0.75rem;
    color: #B2ACA2;
    margin-bottom: 0.2rem;
    vertical-align: middle;
    margin-right: 8px;
}

#littleToNoneTimesContainer {
    position: fixed;
    top: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 1000;
}

.timer-entry {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


button.hug-button:hover:not(.already-clicked) {
    background-color: #a51500;
    color: #E8E6E3;
}

button.little-to-none-button:hover:not(.greyed-out) {
    background-color: #6a006a;
    color: #E8E6E3;
}

.app-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.app-modal-content-box {
    background: #2A2D2F;
    color: #C8C3BC;
    padding: 2rem;
    border-radius: 8px;
    min-width: 300px;
    width: auto;
    max-width: 500px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-modal-content-box input {
    background-color: #2A2D2F;
    color: #C8C3BC;
    border: 1px solid #555;
    padding: 0.5rem;
    border-radius: 4px;
}

.app-modal-content-box button {
    cursor: pointer;
}

/* ApexCharts tooltip overrides */
.apexcharts-tooltip {
    background: #181A1B !important;
    border: 1px solid #363A3E !important;
    color: #B2ACA2 !important;
}

.apexcharts-tooltip-title {
    background: #212425 !important;
    border-bottom: 1px solid #363A3E !important;
    color: #B2ACA2 !important;
}

.apexcharts-tooltip-text {
    color: #B2ACA2 !important;
}

.apexcharts-tooltip-series-group {
    color: #B2ACA2 !important;
}

/* Chart hover highlight bar */
.apexcharts-xcrosshairs {
    fill: #1D1F20 !important;
    stroke: #1D1F20 !important;
}

.apexcharts-bar-area:hover {
    fill-opacity: 1;
}
