﻿.sidebar {
    width: 240px;
    background: #2f3e46;
    color: #fff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

    .sidebar h2 {
        text-align: center;
        margin-bottom: 30px;
    }

    .sidebar a {
        color: #fff;
        text-decoration: none;
        padding: 15px 20px;
        display: block;
    }

        .sidebar a:hover {
            background: #354f52;
        }

.main-content {
    margin-left: 240px;
    padding: 20px;
}

.cards-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex: 0 0 220px; /* Fixed smaller width */
    max-width: 220px; /* Prevent stretching */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-icon {
    font-size: 30px;
    margin-bottom: 10px;
    color: #74a044;
}

.card-content h2, .card-content h3 {
    margin: 10px 0;
    font-size: 18px;
}

.card-content ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .cards-container {
        flex-direction: column;
    }
}



table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    box-sizing: border-box;
}



/* snackbar */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

    #snackbar.show {
        visibility: visible;
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}


/* spinner */

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #74a044;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Topbar */

/* Container styling */
.topbar-section {
    position: fixed; /* Make it fixed at top */
    top: 0;
    left: 0;
    z-index: 1000; /* Stay on top of other elements */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: subtle shadow */
    width: 100%;
    background: #1e1e2f;
    color: #fff;
    padding: 10px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Left Menu Links */
.topsocial a {
    color: #ccc;
    text-decoration: none;
    margin-right: 15px;
    font-size: 15px;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 4px;
}

    .topsocial a:hover {
        color: #00bcd4;
        border-bottom: 2px solid #000000;
    }

/* Welcome and Logout */
.topsearch {
    text-align: right;
    font-size: 14px;
}

    .topsearch i {
        margin-right: 15px;
        font-style: normal;
        color: #aaa;
    }

    .topsearch a {
        color: #00bcd4;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s;
    }

        .topsearch a:hover {
            color: #0097a7;
        }

/* Responsive */
@media (max-width: 768px) {
    .topsocial {
        margin-bottom: 10px;
        display: flex;
        flex-wrap: wrap;
    }

        .topsocial a {
            margin-right: 10px;
            margin-bottom: 5px;
        }

    .topsearch {
        text-align: left;
        width: 100%;
    }
}

/* LogOut */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}

.modal-actions button {
    margin: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#confirmLogout {
    background-color: red;
    color: white;
}

#cancelLogout {
    background-color: gray;
    color: white;
}

