*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom properties */
:root {
    --ff-primary: 'Source Sans Pro', sans-serif;
    --ff-secondary: 'Source Code Pro', monospace;

    --fw-reg: 300;
    --fw-bold: 600;

    --clr-light: rgba(255, 255, 255, 0.915);
    --clr-dark: #3c3939;
    --clr-blue: #667eea;

    --clr-btn: #c74927;
    --clr-btn-accent: #ff6f47;

    --fs-h1: 3rem;
    --fs-icon: 1.3rem;
    --fs-body: 1rem;
    --fs-label: 0.9rem;


    --bs: 0.25em 0.25em 0.75em rgba(0,0,0,.25),
    0.125em 0.125em 0.25em rgba(0,0,0,.15);
}

/* Global styling */

html {
    scroll-behavior: smooth;
    overscroll-behavior: none;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 2.5rem 1.25rem 3rem;
    background-color: #303030;
    color: var(--clr-light);
    font-family: var(--ff-primary);
}

.todo-app {
    width: min(720px, 100%);
    box-shadow: var(--bs);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    position: relative;
}

/* HEADER styling */

.title-section {
    text-align: center;
    margin-bottom: 1rem;
}

.subtitle-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-title {
    font-size: var(--fs-h1);
    letter-spacing: .2em;
    text-transform: lowercase;
    margin: 0;
}

.logo-subtitle {
    font-size: var(--fs-label);
    font-family: var(--ff-secondary);
    font-weight: var(--fw-reg);
    letter-spacing: .1em;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.header-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* justify-content: center; */
    flex-wrap: wrap;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--clr-btn-accent);
    transform: translateY(-2px);
    box-shadow: var(--bs);
}

.social-icons i {
    font-size: var(--fs-icon);
}

/* DATE SELECTOR styling */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* Language icon-only menu */
.language-menu-wrapper {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.language-button {
    /* background: rgba(255, 255, 255, 0.1); */
    background: transparent;
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    color: var(--clr-light);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.language-button:hover {
    background: var(--clr-btn-accent);
    border-color: var(--clr-btn-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 71, 0.3);
}

.language-dropdown {
    position: absolute;
    top: 38px;
    right: 0;
    background: rgba(139, 137, 137, 0.95);
    color: var(--clr-light);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    border: 1px solid rgba(0,0,0,0.1);
    min-width: 160px;
    padding: 0.4rem;
    backdrop-filter: blur(6px);
    z-index: 10;
}

.language-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.language-item:hover {
    background: rgba(0,0,0,0.06);
}

.language-item.active {
    background: var(--clr-light);
    color: var(--clr-btn-accent);
    font-weight: 600;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.date-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--clr-light);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.date-nav-btn:hover {
    background: var(--clr-btn-accent);
    border-color: var(--clr-btn-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 71, 0.3);
}

.date-nav-btn:active {
    transform: translateY(0);
}

.date-picker {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-light);
    border-radius: 8px;
    font-family: var(--ff-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.date-picker:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.date-picker:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--clr-btn-accent);
    box-shadow: 0 0 0 3px rgba(255, 111, 71, 0.2);
}

.date-picker::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Calendar styling for date input */
.date-picker::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-picker::-webkit-calendar-picker-indicator:hover {
    filter: invert(1) brightness(1.4) drop-shadow(0 0 4px rgba(255, 111, 71, 0.4));
}

.header-right {
    display: none;
}

.selected-date-display {
    font-size: 0.95rem;
    color: var(--clr-btn-accent);
    font-weight: 600;
    letter-spacing: 0.05em;
    min-width: 90px;
    text-align: center;
    font-family: var(--ff-secondary);
}

/* PRIORITY LEGEND styling */

.priority-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    margin: 1rem 0 0;
    padding: 0.4rem 0.3rem;
    overflow-x: auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.legend-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.high {
    background: #f44336;
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.4);
}

.legend-dot.medium {
    background: #ffc107;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
}

.legend-dot.low {
    background: #2196f3;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.4);
}

/* INPUT, BUTTON AND SELECT */

.input-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.input-container form {
    flex: 1;
}

.input-group {
    display: flex;
    background: var(--clr-light);
    border-radius: 12px;
    box-shadow: var(--bs);
    overflow: hidden;
    min-width: 0;
    flex: 1;
    gap: 0;
}

.todo-input {
    flex: 1;
    padding: 0 1.1rem;
    font-size: var(--fs-body);
    border: none;
    outline: none;
    background: transparent;
    color: var(--clr-dark);
    min-width: 150px;
    display: flex;
    align-items: center;
}

.priority-select {
    padding: 0.5rem 0.4rem;
    font-size: var(--fs-label);
    border: none;
    border-right: 1px solid rgba(0,0,0,0.05);
    background: transparent;
    color: var(--clr-btn-accent);
    cursor: pointer;
    outline: none;
    font-weight: 600;
    min-width: 90px;
    max-width: 90px;
}

.priority-select option {
    padding: 0.5rem;
}

.todo-input:focus {
    box-shadow: var(--bs);
}

.todo-button {
    padding: 0 1.1rem;
    border: none;
    background: var(--clr-btn-accent);
    /* background: linear-gradient(135deg, var(--clr-btn), var(--clr-btn-accent)); */
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.todo-button i {
    pointer-events: none;
}

.todo-button:hover {
    transform: translateY(-1px);
    background: var(--clr-light);
    color: var(--clr-btn-accent);
}

.todo-button:active {
    transform: translateY(0);
}

.select {
    margin: 0;
    margin-left: auto;
    position: relative;
    overflow: hidden;
    min-width: 10rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: none;
}

select {
    color: var(--clr-btn-accent);
    font-size: var(--fs-label);
    /* width: 100%; */
    cursor: pointer;
    padding: 1rem;
    background: rgba(255,255,255,0.9);
    font-weight: var(--fw-bold);
}

option {
    font-size: 0.75rem;
    padding: 0.8rem;
    background: white;
    color: var(--clr-dark);
    line-height: 1.8;
}

.select::after {
    content: '\25BC';
    position: absolute;
    background: var(--clr-btn-accent);
    top: 0;
    right: 0;
    padding: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.select:hover::after {
    background: white;
    color: var(--clr-btn-accent);
} 

.filter-sort-container {
    display: flex;
    gap: .3rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.filter-todo {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--clr-light);
}

select.filter-todo {
    width: 200px; 
}

.sort-btn {
    padding: 1rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--clr-btn), var(--clr-btn-accent));
    color: var(--clr-light);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.sort-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.sort-btn:active {
    transform: translateY(0);
}

.sort-btn i {
    font-size: 1rem;
}

/* Form styling */

form input, form button {
    font-size: var(--fs-body);
    height: 3rem;
    border: none;
    background: white;
}

form button {
    color: #d88771;
    position: relative;
    cursor: pointer;
    width: 3rem;
    transition: all 0.3 ease;
}

form button:hover {
    background: #d88771;
    color: white;
}

/* ToDo List styling */

.todo-list {
    min-width: 30%;
    list-style: none;
    width: min(700px, 100%);
    display: flex;
    flex-direction: column;
}

.todo {
    margin: 0.5rem;
    background: var(--clr-light);
    color: var(--clr-dark);
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-left: 6px solid var(--clr-btn-accent);
}

.priority-badge {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.4rem;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.02);
}

.priority-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-label);
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.priority-low {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.priority-medium {
    background: linear-gradient(135deg, #ffd700, #ffc107);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.priority-high {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
    -webkit-animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 16px rgba(244, 67, 54, 0.6);
    }
}

@-webkit-keyframes pulse {
    0%, 100% {
        -webkit-transform: scale(1);
        box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    }
    50% {
        -webkit-transform: scale(1.15);
        box-shadow: 0 4px 16px rgba(244, 67, 54, 0.6);
    }
}

.todo.completed .priority-high {
    animation: none;
    -webkit-animation: none;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.todo li {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.trash-btn, .complete-btn {
    background: transparent;
    color: var(--clr-btn-accent);
    border: none;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    font-size: var(--fs-icon);
    transition: transform 0.15s ease, color 0.2s ease, filter 0.2s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.complete-btn {
    color: rgb(73, 204, 73);
}

.trash-btn:hover {
    color: #ff5722;
    transform: translateY(-2px) scale(1.1);
}

.complete-btn:hover {
    color: rgb(56, 180, 56);
    transform: translateY(-2px) scale(1.1);
}

.todo:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.14);
}

.todo-item {
    padding: 0.9rem 0.5rem;
}

.trash-btn i,
.complete-btn i {
    pointer-events: none;
}

.completed {
    text-decoration: line-through;
    opacity: 0.2;
    border-left-color: rgb(73, 204, 73);
}

.fall {
    transform: translateY(8rem) rotateZ(20deg);
    opacity: 0;
}

.todo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 0.25rem 1rem;
}

/* Responsive design */

@media (max-width: 480px) {
    .todo-app {
        padding-top: 2.2rem;
    }

    .title-section {
        padding-top: 0.4rem;
    }

    .language-menu-wrapper {
        top: 0.4rem;
        right: 0.4rem;
    }

}

@media (max-width: 768px) {
    :root {
        --fs-h1: 2.25rem;
    }

    body {
        padding: 1rem 0.75rem 1.5rem;
        gap: 1rem;
    }

    .todo-app {
        padding: 1.25rem;
    }

    .title-section {
        margin-bottom: 0.8rem;
    }

    .subtitle-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    header {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }


    .date-selector {
        width: 100%;
        justify-content: center;
    }

    .date-picker {
        flex: 1;
        /* min-width: 120px; */
    }

    .selected-date-display {
        font-size: 0.95rem;
        min-width: auto;
        padding: 0;
    }

    .input-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .input-group {
        flex-direction: row;
        flex-wrap: nowrap;
        border-radius: 12px;
        overflow: hidden;
    }

    .priority-legend {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .todo-input {
        padding: 0.8rem;
        font-size: 0.9rem;
        min-width: 0;
        flex: 1;
    }

    .priority-select {
        font-size: 0.8rem;
        line-height: 1.8;
        flex: 0 0 auto;
        max-width: 80px;
        min-width: 80px;
        padding: 0.4rem 0.3rem;
        border-right: 1px solid rgba(0,0,0,0.05);
        border-left: none;
    }

    .todo-button {
        border-radius: 0;
        padding: 1rem 1.5rem;
        font-size: var(--fs-icon);
        flex-shrink: 0;
    }

    select {
        padding: 0.8rem 0.5rem;
        font-size: var(--fs-label);
    }

    option {
        font-size: var(--fs-label);
        padding: 0.5rem;
    }

    .todo {
        grid-template-columns: auto 1fr 48px 48px;
    }

    .filter-sort-container {
        flex-direction: row-reverse;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.3rem;
    }

    .select {
        min-width: auto;
        flex: 1;
    }

    select.filter-todo {
        width: 100%;
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }

    .sort-btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

}

/* Responsive MOBILE */

@media (max-width: 370px) {
    header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .date-selector {
        width: 100%;
        padding: 0.4rem 0.3rem;
        gap: 0.3rem;
        justify-content: space-between;
    }

    .date-nav-btn {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        padding: 0;
    }

    .date-picker {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .selected-date-display {
        font-size: 0.8rem;
        min-width: auto;
        padding: 0;
        white-space: nowrap;
    }

    .title-section {
        margin-bottom: 0.5rem;
    }

    .logo-title {
        font-size: 1.8rem;
        letter-spacing: 0.1em;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .subtitle-section {
        gap: 0.4rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .subtitle-with-icons {
        gap: 0.3rem;
    }

    .priority-legend {
        gap: 0.3rem;
        font-size: 0.6rem;
        margin: 0.6rem 0 0;
        padding: 0.3rem 0.3rem;
    }

    .legend-item {
        gap: 0.15rem;
    }

    .legend-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .legend-dot.high {
        background: #f44336;
    }

    .legend-dot.medium {
        background: #ffc107;
    }

    .legend-dot.low {
        background: #2196f3;
    }

    .todo-input::placeholder {
        font-size: 0.9rem;
    }

    .social-icons a {
        width: 18px;
        height: 18px;
    }

    .todo-input {
        padding: 0 0.3rem;
        font-size: 0.75rem;
        min-width: 0;
        flex: 1;
        height: 2.5rem;
    }

    .todo-button {
        padding: 0 0.6rem;
        flex-shrink: 0;
        font-size: 1rem;
    }

    .priority-select {
        font-size: 0.75rem;
        padding: 0.3rem 0.2rem;
        min-width: 75px;
        max-width: 75px;
        flex-shrink: 0;
    }

    select {
        padding: 0.8rem 0.5rem;
        font-size: var(--fs-label);
    }

    .input-container {
        gap: 4px;
        flex-direction: row;
        align-items: center;
        margin: 1rem 0;
    }

    .input-group {
        flex-direction: row;
        flex-wrap: nowrap;
        border-radius: 12px;
        overflow: hidden;
        min-width: 0;
        flex: 1;
        gap: 0;
        height: 2.5rem;
    }

    .filter-sort-container {
        flex-direction: row-reverse;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.5rem;
        width: 100%;
    }

    .select {
        flex: 1;
        min-width: 100px;
    }

    select.filter-todo {
        width: 100%;
    }

    .sort-btn {
        flex: 1;
        padding: 0.7rem 0.5rem;
        font-size: var(--fs-label);
    }

    .todo-app {
        padding: 1rem;
    }

    .trash-btn, .complete-btn {
        padding: 0.3rem 0.4rem;
        font-size: var(--fs-icon);
    }

    .priority-indicator {
        width: 28px;
        height: 28px;
        font-size: var(--fs-label);
    }
}

/* CALENDAR OVERLAY */
.calendar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
    overflow-y: auto;
}

.calendar-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.calendar-popup {
    background: rgba(48, 48, 48, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 320px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    margin: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-month-year {
    font-size: 1rem;
    color: var(--clr-light);
    margin: 0;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--clr-light);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.calendar-nav-btn:hover {
    background: var(--clr-btn-accent);
    border-color: var(--clr-btn-accent);
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.calendar-weekday {
    text-align: center;
    font-weight: bold;
    color: var(--clr-btn-accent);
    padding: 0.3rem 0;
    font-size: 0.75rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-light);
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.calendar-day.today {
    background: var(--clr-btn-accent);
    border-color: var(--clr-btn-accent);
    font-weight: bold;
}

.calendar-day.selected {
    background: var(--clr-btn);
    border-color: var(--clr-btn);
    font-weight: bold;
}

.calendar-day.other-month {
    color: rgba(255, 255, 255, 0.3);
    background: transparent;
}

.calendar-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.calendar-today-btn,
.calendar-close-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--ff-primary);
    font-size: 0.8rem;
}

.calendar-today-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-light);
}

.calendar-today-btn:hover {
    background: var(--clr-btn-accent);
    border-color: var(--clr-btn-accent);
}

.calendar-close-btn {
    background: transparent;
    color: var(--clr-light);
}

.calendar-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
