﻿

/*body {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: url("https://images.unsplash.com/photo-1516912481808-3406841bd33c?ixlib=rb-0.3.5&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ&s=183f2924ba5a8429441804609b2d4f61") no-repeat center / cover;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: inherit;
        filter: blur(10px);
    }
}*/

.calendar {
    position: relative;
    width: 300px;
    background-color: #fff;
    box-sizing: border-box;
    box-shadow: 0 5px 50px rgba(#000, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

/*.calendar__picture {
    position: relative;
    height: 200px;
    padding: 20px;
    color: #fff;
    background: #262626 url("https://images.unsplash.com/photo-1516912481808-3406841bd33c?ixlib=rb-0.3.5&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ&s=183f2924ba5a8429441804609b2d4f61") no-repeat center / cover;
    text-shadow: 0 2px 2px rgba(#000, 0.2);
    box-sizing: border-box;

    &::before {
        content: "";
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        position: absolute;
        background: linear-gradient(to top, rgba(#000, 0.25), rgba(#000, 0.1));
    }

    h2 {
        margin: 0;
    }

    h3 {
        margin: 0;
        font-weight: 500;
    }
}*/

.calendar__date {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25px, 1fr));
    grid-gap: 10px;
    box-sizing: border-box;
}

.calendar__day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    font-weight: 600;
    color: #262626;
    font-size: 20px;

    &:nth-child(7) {
        color: #ff685d;
    }
}

.calendar__number {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    /*width: 60px;*/
    color: #262626;
    /*background-color: orange;*/
    cursor: pointer;
    font-size: 20px;
    margin-left: 0px;
    margin-right: 0px;

    &:nth-child(7n) {
        color: #ff685d;
        font-weight: 700;
    }
}

    .calendar__number:hover {
        background-color: #009688;
        color: #fff !important;
        font-weight: 700;
        cursor: pointer;
    }



.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #ddd; /* Creates the border lines */
}

.calendar-day {
    background-color: white;
    min-height: 120px;
    padding: 2px;
    display: flex;
    flex-direction: column;
    border: none;
}

.item-list {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    flex-grow: 1;
    font-size: 0.8rem;
    border: none;
    background-color: transparent;
}

    .item-list li {
        background: #FAE7CE;
        margin-bottom: 2px;
        padding: 2px 5px;
        border-radius: 3px;
        border-left: 0px solid #2196f3;
        cursor: pointer
    }

.add-btn {
    align-self: flex-end;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #ccc;
}

.calendar-day {
    min-height: 100px;
    border: 0px solid #eee;
    padding: 2px;
}



.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .nav-controls h2 {
        margin: 0;
        min-width: 200px;
        text-align: center;
    }

    .nav-controls button {
        padding: 5px 15px;
        border: 1px solid #ccc;
        background: white;
        cursor: pointer;
    }

.btn-group button {
    padding: 5px 15px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
}

.btn-active {
    background-color: #007bff !important;
    color: white;
    border-color: #0056b3 !important;
}


/* This is the outer container for the Month View */
.month-view-container {
    height: 75vh; /* Set a height relative to the screen (or use pixels like 600px) */
    overflow-y: auto; /* Enables vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal jitters */
    border: 1px solid #ddd;
    background-color: #fff;
    position: relative;
    padding-left: 5px;
    padding-right: 5px;
}

/* The actual grid layout */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    /* Remove 'height: 100%' so the grid can grow taller than the container */
    gap: 1px;
    background-color: #ccc;
}

/* Ensure individual days can grow if they have many items */
.calendar-day {
    min-height: 120px; /* Minimum size, but can grow if content pushes it */
    background: white;
    padding: 5px;
}

.calendar-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    position: sticky; /* The magic property */
    top: 0;
    z-index: 10; /* Keeps it above the scrollable day boxes */
    background: white;
    font-weight: bold;
    text-align: center;
    border-bottom: 0.5px solid #ddd;
}

.not-current-month {
    background-color: #F2EDED;
    color: dimgray;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    /*max-width: 1200px;*/ /* Optional: centers the calendar on large screens */
    /*margin: auto auto;*/
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden; /* Keeps the child scrollbar from "leaking" out */
    margin-top: 0px;
    /*height:60vh;*/
    /*padding-bottom:-50px;*/
}

.day-number {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 5px;
    padding: 2px 5px;
    /* Optional: make the current day stand out */
    border-radius: 50%;
    border: none;
}

.day-number-today {
    width: 27px;
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 5px;
    padding: 2px 5px;
    /* Optional: make the current day stand out */
    border-radius: 50%;
    background-color: #E74C3C;
    color: white;
    display: inline-block;
    border: none;
}


.virtual-bin-container {
    height: 82vh;
    margin-top: 10px;
    background-color: white;
    padding: 0px;
    padding-right: 0px;
    padding-bottom: 4px;
    border-radius: 10px;
    overflow-y: hidden; /* Enables vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal jitters */
}

.virtual-bin-list {
    overflow-y: auto; /* Enables vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal jitters */
    list-style: none;
    padding: 5px;
    margin: 0px;
    flex-grow: 1;
    font-size: 0.8rem;
    /*border-top: 1px solid lightgray;*/
    background-color: transparent;
    height: calc(100% - 70px);
    margin-top: 0px;
    padding: 5px;
}

.virtual-bin-list-job {
    background: #FAE7CE;
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    margin-top: 4px;
    padding: 5px 10px;
    border-radius: 5px;
    border-left: 0px solid #2196f3;
    cursor: pointer
}

.virtual-bin-list-po {
    background: #B1C9D8;
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    margin-top: 4px;
    padding: 5px 10px;
    border-radius: 5px;
    border-left: 0px solid #2196f3;
    cursor: pointer
}
