﻿@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype'), url('../fonts/roboto-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype'), url('../fonts/roboto-bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Italic.ttf') format('truetype'), url('../fonts/roboto-italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

:root {
    --height-size: 16px;
    --width-size: 16px;
}

.dynamic-height {
    height: var(--height-size, auto) !important;
}

.dynamic-width {
    width: var(--width-size, auto) !important;
}

body {
    font-family: 'Roboto', sans-serif;
    padding: 0px;
    margin: 0px;
    overflow-x: hidden !important;
}

#app {
}

#sidebar {
    height: 100vh;
    position: fixed;
    width: 200px;
    background-color: #1e1522;
    top: 0;
    left: 0;
    z-index: 1000;
}

    #sidebar.collapsed {
        width: 60px;
        text-align: center;
    }

    #sidebar .vdt-logo {
        height: 60px;
        border-bottom: 1px solid #ffffff;
        font-size: 20px;
        min-height: 60px;
    }

    #sidebar.collapsed .menu-text {
        display: none;
    }

    #sidebar .vdt-nav {
        color: white;
        text-decoration: none;
        padding: 16px 16px;
        display: block;
        border-bottom: 1px solid #6c757d;
    }

        #sidebar .vdt-nav:hover {
            background-color: #433e3e;
        }

        #sidebar .vdt-nav.active {
            background-color: #787676;
        }

        #sidebar .vdt-nav i {
            text-align: center;
        }

#header {
    position: fixed;
    left: 200px;
    right: 0;
    top: 0;
    height: 60px;
    background-color: #f8f9fa;
    padding: 0 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: end;
}

    #header.main-header-with-sidebar-collapsed {
        left: 60px;
    }

#main-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #eeeff1;
    overflow: auto;
}

    #main-content.main-content-with-header {
        top: 60px;
    }

    #main-content.main-content-with-sidebar {
        left: 200px;
    }

    #main-content.main-content-with-sidebar-collapsed {
        left: 60px !important;
    }

.spinner-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    opacity: 0.6;
    z-index: -1;
}

    .spinner-container .spinner {
        width: 36px;
        height: 36px;
        border: 3px solid transparent;
        border-top: 3px solid #007bff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.required-label::after {
    content: " (*)";
    color: red;
}

.disabled {
    background-color: #e9ecef;
}

.error {
    color: red;
}

.input-error {
    border: 1px solid red;
}

.display-on-top {
    z-index: 99999 !important;
}

.date-picker {
}

.datepicker table {
    border: none;
    background-color: #f9f9f9;
}

.datepicker th, .datepicker td {
    text-align: center;
    padding: 10px;
}

.datepicker .prev, .datepicker .next {
    color: #007bff;
    cursor: pointer;
    font-size: 18px;
}

.datepicker .day:hover {
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.datepicker .datepicker-dropdown {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.datepicker td.disabled {
    color: #dcdcdc;
}

.datepicker td.selected {
    background-color: #007bff;
    color: white;
}

.datepicker {
    border-radius: 4px;
    box-shadow: 0 6px 12px #abb1b8;
}

.expand-collapse {
    border-bottom: 1px solid #cccc;
}

.bootstrap-datetimepicker-widget {
    z-index: 9999 !important;
}

.bootstrap-datetpicker-widget {
    z-index: 9999 !important;
}

.number-input {
    text-align: right;
}

/* Mask Layer */
#sidebar-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Mobile First Styles */
@media (max-width: 768px) {
    #sidebar {
        width: 200px;
        left: -200px;
        transition: left 0.3s;
        z-index: 1000;
    }

        #sidebar.active {
            left: 0;
        }

            #sidebar.active + #sidebar-mask {
                display: block;
            }

        #sidebar #btn-collapse-sidebar {
            display: none;
        }


    #header {
        left: 0 !important;
        right: 0;
        justify-content: space-between !important;
    }

    /* Adjust main content for mobile */
    #main-content.main-content-with-sidebar,
    #main-content.main-content-with-sidebar-collapsed {
        left: 0 !important;
    }

    /* Adjust header for mobile */
    #header.main-header-with-sidebar,
    #header.main-header-with-sidebar-collapsed {
        left: 0 !important;
    }

    .user-info #full-name {
        display: none;
    }

    /* Mobile menu button */
    .mobile-menu-btn {
        color: #333 !important;
        font-size: 24px;
        margin-left: -10px;
    }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }
}
