

.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 10px;
    bottom: 10px;
    left: 10px;
    background-color: #014377;
    width: 70px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: width 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    user-select: none;
    z-index: 100;
    padding-top: 10px; /* Added spacing at the top */
}

    .sidebar:hover {
        width: 220px;
    }

/* Menu Items */
.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    margin: 4px 10px;
    border-radius: 8px;
    color: #fff;
    transition: background-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    background-color: rgba(255, 255, 255, 0.06); /* card feel */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

    .menu-item:hover {
        background-color: #02588d;
    }

    /* Active Tab */
    .menu-item.active {
        background-color: #00aaff;
        color: #fff;
        font-weight: 600;
        box-shadow: 0 0 12px #00aaff88;
        position: relative;
    }

        .menu-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 10px;
            bottom: 10px;
            width: 5px;
            background: #eceeb3;
            border-radius: 0 4px 4px 0;
        }

    /* Icons and Text */
    .menu-item svg {
        width: 22px;
        height: 22px;
        fill: white;
        flex-shrink: 0;
    }

.menu-text {
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
}

.sidebar:hover .menu-text {
    opacity: 1;
}

.sidebar:not(:hover) .menu-item {
    justify-content: center;
}

.sidebar:not(:hover) .menu-text {
    display: none;
}

/* Logout positioning */
.logout {
    margin-top: auto;
    margin-bottom: 20px;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 50px 40px;
    position: relative;
    background: white;
    margin-left: 90px; /* space for sidebar */
    box-shadow: inset 0 0 15px rgb(0 0 0 / 0.05);
    overflow-y: auto;
    user-select: text;
}

.welcome {
    margin-top: 40px;
    margin-left: 20px;
    font-size: 32px;
    font-weight: 500;
}

/* Floating + Button */
.floating-plus {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 65px;
    height: 65px;
    background-color: #014377; /* match sidebar */
    color: white;
    font-size: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    user-select: none;
    text-decoration: none;
    font-family: 'JosefinSans';
}

    .floating-plus:hover {
        background-color: #02588d;
        transform: scale(1.1);
    }

    .floating-plus::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(1, 67, 119, 0.4); /* ripple color */
        animation: ripple 1.8s infinite ease-out;
        z-index: -1;
    }

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Scrollbar */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-thumb {
    background-color: rgba(1, 67, 119, 0.4);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-track {
    background-color: #f4f6f9;
}


/* === Panels === */
.panel {
    position: fixed;
    top: 15px;
    left: 90px;
    right: 15px;
    bottom: 15px;
    background: white;
    z-index: 99;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    border: solid 5px rgb(0 0 0 / 0.05);
    border-radius: 5px;
}

    .panel h2 {
        margin-bottom: 20px;
        color: #014377;
        padding-bottom: 5px;
        border-bottom: solid 1px #ccc;
    }

.close-btn-db {
    position: absolute;
    top: 35px;
    right: 35px;
    font-size: 40px;
    color: #014377;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: lighter;
    line-height: 1;
    text-decoration: none;
}


#clock {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #ccc;
    margin-top: 10px;
}

/*Dashboard*/

.dashboard-wrapper {
    padding: 40px;
    display: flex;
    justify-content: left;
    align-items: start;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    width: 50%;
    max-width: 500px;
}

.card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
}
    .card:hover
    {
        border-radius:15px;
    }
    /*padding: 20px; border-radius: 5px; color: white; text-align: center; font-weight: 600; cursor: pointer; backdrop-filter: blur(12px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); transition: all 0.35s ease;
*/
    .side-label {
        writing-mode: vertical-rl; /* vertical text */
        transform: rotate(180deg); /* make it read bottom-to-top */
        background: rgba(0,0,0,0.25);
        padding: 10px 5px;
        font-size: 1em;
        font-weight: 100;
        letter-spacing: 2px;
        color: #fff;
        text-align: center;
    }

.content {
    flex: 1;
    padding: 15px;
    text-align: center;
}

.title {
    font-size: 1.1em;
    opacity: 0.95;
    letter-spacing: 0.5px;
    color:#fff;
}

.count {
    font-size: 2.6em;
    font-weight: 800;
    margin-top: 12px;
    display: block;
    color:#fff;
}
/* Gradient Colors */
.blue-gradient {
    background: linear-gradient(135deg, #014377, #0275d8);
}

.purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.red {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

#scrollContainer {
    position: absolute; /* Keeps it fixed in the viewport */
    top: 100px; /* Gap from top */
    bottom: 10px; /* Gap from bottom */
    left: 15px; /* Gap from left */
    right: 10px; /* Gap from right */
    overflow: auto; /* Enables scroll when content overflows */
    background: #fff; /* Optional: background color */
    padding: 10px;
    padding-top: 0px;
    /* Smooth, nice-looking scrollbar */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #014377 #fff; /* Firefox */
}

    /* Chrome, Edge, Safari */
    #scrollContainer::-webkit-scrollbar {
        width: 8px;
    }

    #scrollContainer::-webkit-scrollbar-track {
        background: #fff;
        border-radius: 4px;
    }

    #scrollContainer::-webkit-scrollbar-thumb {
        background: #014377;
        border-radius: 4px;
    }

        #scrollContainer::-webkit-scrollbar-thumb:hover {
            background: #014377;
        }
