/* ================================
             GENERAL
   ================================ */

:root {
    --bg-color: #121212;
    --panel-bg: #2f4050;
    --input-bg: white;
    --input-border: #3a3a3a;
    --input-border-focus: #00bfa5;
    --text-color: black;
    --label-color: #a0a0a0;
    --primary-color: #00bfa5;
    --button-bg:#2f4050;
    --button-bg-hover: linear-gradient(135deg, #1de9b6, #00bfa5);
    --shadow-color: rgba(0, 191, 165, 0.2);
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    /*background: var(--bg-color);*/
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    min-height: 100vh;
    overflow: hidden;
    background: white;
}

form {
    d-flex;
    align-content-center;
    justify-content-center;
}

main {
    margin: 15px auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-color);
    padding: 2rem 3rem 3rem 3rem;
    overflow: auto;
    max-height: 95vh;
    margin-left: 250px;
}

.container {
    margin: 15px auto;
    background: var(--panel-bg);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-color);
    padding: 2rem 3rem 3rem 3rem;
    overflow: auto;
    max-height: 95vh;
    max-width: 100%;
}


.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
}

h1 {
    margin: 0 0 0.3rem 0;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h2 {
    margin: 0 0 2rem 0;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

/* ================================
             Inputs
   ================================ */

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--label-color);
    user-select: none;
    margin-top: 15px;
}


input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1.6px solid var(--input-border);
    border-radius: 10px;
    padding: 0.55rem 1rem;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.25s cubic-bezier(0.77,0,0.175,1), box-shadow 0.25s cubic-bezier(0.77,0,0.175,1);
    font-weight: 400;
    font-family: inherit;
    resize: vertical;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    input[type="number"]:focus,
    input[type="password"]:focus,
    select:focus,
    textarea:focus {
        border-color: var(--input-border-focus);
        box-shadow: 0 0 10px var(--input-border-focus);
        outline: none;
    }

    input[readonly],
    textarea[readonly] {
        background: #222;
        border-color: #444;
        color: #bbb;
        cursor: default;
    }

/* ================================
             Buttons
   ================================ */

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

button {
    grid-column: 1 / -1;
    padding: 0.85rem 1.8rem;
    background: var(--button-bg);
    border: none;
    border-radius: 14px;
    color: var(--panel-bg);
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 6px 20px var(--shadow-color);
    user-select: none;
    width: 100%;
}

.btn-primary {
    grid-column: 1 / -1;
    background: var(--button-bg);
    border-radius: 14px;
    border-color: black;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 6px 20px var(--shadow-color);
    user-select: none;
    width: 100%;
    margin-right: 5px;
    margin-bottom:5px;
}

.btn-danger {
    grid-column: 1 / -1;
    border-radius: 14px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 6px 20px var(--shadow-color);
    user-select: none;
    width: 100%;
    margin-right: 5px;
    margin-bottom: 5px;
}

.btn-success{
    grid-column: 1 / -1;
    border-radius: 14px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 6px 20px var(--shadow-color);
    user-select: none;
    width: 100%;
    margin-right: 5px;
    margin-bottom: 5px;
}

.btn-info {
    grid-column: 1 / -1;
    border-radius: 14px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 6px 20px var(--shadow-color);
    user-select: none;
    width: 100%;
    margin-right: 5px;
    margin-bottom: 5px;
}


button:hover,
button:focus {
    background: white !important;
    color: #2f4050 !important;
    outline: none;
    box-shadow: 0 8px 30px var(--shadow-color);
}

/* ================================
             Nav Bar
   ================================ */

.main-menu {
    overflow: hidden;
    background: var(--panel-bg);
    box-shadow: 0 8px 24px var(--shadow-color);
    padding-top: 10px;
    border-radius: 0 15px 15px 0;
    font-family: "Roboto", sans-serif;
    width: 220px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
}

.main-menu h1 {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin: 20px 0 30px;
    color: black;
    font-family: "Nunito", sans-serif;
}

.logo {
    height: 16px;
    width: 16px;
}

.nav-item {
    position: relative;
    display: block;
}

.nav-item a {
    padding: 15px 0;
    height: 80px;
}

.main-menu .nav-link {
    color: #ecf0f1;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

.main-menu .nav-link i {
    margin-right: 10px;
}

/* Hover effect */
.main-menu .nav-link:hover {
    background-color: #34495e;
    color: #ffffff;
}

.main-menu .nav-item.active .nav-link {
    background: linear-gradient(135deg, #8bd0ba, #2f4050); /* gradient effect */
    color: white !important;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    border-left: 4px solid #ffffff;
}

.nav-icon {
    width: 60px;
    height: 20px;
    font-size: 20px;
    text-align: center;
}

.nav-text {
    display: block;
    width: 100%;
    height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

svg {
    margin: 15px;
}


/* ================================
             Table sorting
   ================================ */


.dataTables_wrapper .dataTables_length select {
    background: white !important;
}

.dataTables_wrapper .dataTables_filter input {
    background: white !important;
}

.dataTables_info {
    color: white !important;
}

.dataTables_wrapper
.dataTables_paginate
.paginate_button.disabled,
.dataTables_wrapper
.dataTables_paginate
.paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    background: white !important;
}

.dataTables_wrapper
.dataTables_paginate
.paginate_button.current,
.dataTables_wrapper
.dataTables_paginate
.paginate_button.current:hover {
    background: var(--button-bg) !important;
    color: white !important;
}

/* ================================
             TABLES
   ================================ */

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    background-color: #ffffff;
    margin-top: 25px;
}

.table-scroll {
    max-height: 25vh;
    overflow: auto;
}

.table th,
.table td {
    text-align: left;
    padding: 12px;
    vertical-align: top;
    border-top: 0;
    transition: all 0.3s ease;
}

.table thead th {
    font-weight: bold;
    background: #8bd0ba;
    color: var(--panel-bg);
    vertical-align: bottom;
    border: 1px solid black;
}

.table tbody + tbody {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* Condensed Table */
.table-condensed th,
.table-condensed td {
    padding: 8px;
}


/* Striped Table */
.table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

/* Hover Table */
.table-hover tbody tr:hover {
    background-color: #8bd0ba;
    color: white;
}

.table-hover tbody tr:hover a {
    color: white
}
/* Responsive Table */
@media screen and (max-width: 768px) 
{
    .table-responsive-vertical {
        overflow-x: auto;
    }

    .table-responsive-vertical .table thead,
    .table-responsive-vertical .table tfoot {
        display: none;
    }

    .table-responsive-vertical .table tbody {
        display: block;
    }

    .table-responsive-vertical .table tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 2px;
    }

    .table-responsive-vertical .table tbody td {
        display: block;
        text-align: right;
        padding: 12px;
        background-color: #fff;
        vertical-align: middle;
    }

    .table-responsive-vertical .table tbody td[data-title]::before {
        content: attr(data-title);
        float: left;
        font-weight: bold;
        color: #333;
    }
}

.table-hover.table-mc-light-blue tbody tr:hover p {
    color: white;
}

.table tr {
    background: white;
    color: black;
}


.table-responsive-vertical {
    padding: 45px;
}

@media screen and (max-width: 1500px) {
    .table-responsive-vertical {
        overflow-x: auto;
        position: absolute;
        display: flex;
        width: 75%;
        max-width: 100%;
    }
}

.tables-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 10px;
    max-width: 100%;
    margin: 20px auto;
}


.table-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0.5px 0 1px rgba(255, 255, 255, 0.23) inset, 0 1px 0 0 rgba(255, 255, 255, 0.66) inset, 0 4px 16px rgba(0, 0, 0, 0.12);
    height: auto;
}

.table-header {
    background: #2f4050;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
}

/* ================================
             Modals
   ================================ */



.modalComponent__DetailedForm__Inner-lg {
    border-top: 1px solid #E9EAEB;
    background: #2f4050;
    border-bottom: 1px solid #E9EAEB;
    padding: 24px 24px 32px;
    overflow-y: scroll;
    height: 70vh
}
}

@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        max-width: 1000px; /* bigger modal */
    }
}


/* ================================
             Scroll bars
   ================================ */


/*SCROLL BAR*/
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #D5D7DA;
    border-radius: 10px;
}

.container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.container::-webkit-scrollbar-track {
    background: white;
    border-radius: 15px;
}

.container::-webkit-scrollbar-thumb {
    background-color: #8bd0ba;
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

.container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ================================
             Login Page
   ================================ */


.login-page {
    background: url('~/img/blob-scene-haikei.svg') no-repeat center center fixed;
    background-size: cover;
}

.login-box {
    backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.9);
}


/* ================================
             Account Tiles/cards
   ================================ */


.Account-Header {
    background: #2f4050;
    color: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.Account-Header:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.Account-Wrapper h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    color: white;
}

.Account-Wrapper h1 span {
    font-weight: 400;
    opacity: 0.9;
}


.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: #8bd0ba;
    color: #fff;
    border: none;
    border-bottom: 3px solid #0078D7;
    padding: 12px 20px;
}

.card-header h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    color: white;
}

.card-body {
    background-color: #f9fafb;
    padding: 25px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control:focus {
        border-color: #0078D7;
        box-shadow: 0 0 5px rgba(0, 120, 215, 0.25);
    }

.text-danger {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }
}


.combined-card {
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    background: #fff;
}

    .combined-card .card-header {
        background: #8bd0ba;
        color: #fff;
        font-weight: 600;
    }

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    color: #2f4050;
}

/* ================================
             MISC
   ================================ */

.userPieChart {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    margin-top: 80px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

hr {
    color: #8bd0ba;
    margin-top: 15px !important;
    margin-bottom: 5px;
    padding: 1px;
    opacity: unset;
}





/* ================================
             REMOVE
   ================================ */

/*SLIDER CSS*/

/*.form-check-input.large {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-check-label.large {
    position: relative;
    padding-left: 50px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

    .form-check-label.large::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 20px;
        background-color: #ccc;
        border-radius: 34px;
        transition: background-color 0.2s;
    }

    .form-check-label.large::after {
        content: "";
        position: absolute;
        left: 2px;
        top: 2px;
        width: 16px;
        height: 16px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.2s;
    }

.form-check-input.large:checked + .form-check-label.large::before {
    background-color: #0078D7;
}

.form-check-input.large:checked + .form-check-label.large::after {
    transform: translateX(20px);
}*/

/* Custom larger checkboxes */
/*.form-check-input.large {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.25em;
}

.form-check-label.large {
    padding-left: 0.5em;
    font-size: 1.1em;
}*/

/* Group full width fields */
/*.full-width {
    grid-column: 1 / -1;
}*/

/* Radio group styling */
/*.radio-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.3rem;
}

    .radio-group label {
        font-weight: normal;
        font-size: 0.9rem;
        color: var(--label-color);
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .radio-group input[type="radio"] {
        accent-color: var(--primary-color);
        width: 1.1rem;
        height: 1.1rem;
        cursor: pointer;
    }*/