* {
    box-sizing: border-box !important;
}

/* Utils */
.full-width {
    width: 100% !important;
}

.width-available {
    width: -webkit-fill-available;
}

.full-height {
    height: 100% !important;
}

.force-full-width {
    width: 100vw !important;
}

.force-full-height {
    min-height: 100vh !important;
}

.padding-default {
    padding: 32px !important;
}

.margin-default {
    margin: 16px !important;
}

.uk-divider-icon {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* base style */
body {
    min-height: 100vh !important;
}

#background-header {
    width: 100%;
    height: 300px;
}

.uk-card-default {
    border: 1px solid #E0E0E0 !important;
}

.uk-tab {
    position: inherit;
}

.uk-tab > li > a {
    padding: 12px !important;
    
}

.uk-tab > li.uk-active > a {
    padding: 12px !important;
    border-color: var(--secondary-color) !important;
}

/* Color */
.text-white {
    color: #fff !important;
}

.text-dark {
    color: #222 !important;
}

.primary-color-text {
    color: var(--primary-color) !important;
}

.item-menu-color {
    color: rgba(255, 255, 255, .8) !important;
}

.disabled-color {
    background-color: #ffcdd2 !important;
}

.admin-color {
    background-color: #c8e6c9 !important;
}

.selected-color {
    background-color: #ECEFF1 !important;
}

.hide { display: none !important }

.uk-button-primary {
    background-color: var(--primary-color);
}

.uk-button-secondary {
    background-color: var(--secondary-color);
}

.uk-button-primary:focus,
.uk-button-primary:hover {
    background-color: color-mix(in srgb, var(--primary-color) 85%, black);
}

.uk-button-secondary {
    background-color: var(--secondary-color);
}

.uk-button-secondary:focus,
.uk-button-secondary:hover {
    background-color: color-mix(in srgb, var(--secondary-color) 85%, black);
}

.uk-alert.uk-alert-danger {
    background-color: #f0506e !important;
    color: #fef4f6 !important;
}

.uk-alert.uk-alert-success {
    background-color: #4CAF50 !important;
    color: #edfbf6 !important;
}

.uk-alert.uk-alert-warning {
    background-color: #faa05a !important;
    color: #fff6ee !important;
}

.bg-warning { background-color: #FFF9C4 !important }

/* Elements */
#side-menu {
    padding: 30px !important;
    height: 100vh;
    overflow-y: auto;
}

#offcanvas-slide {
    display: none !important;
}

#btn-offcanvas {
    display: none;
}

.tab-list {
    display: flex;
    width: 100% !important;
    overflow-x: auto !important;
    flex-direction: row;
    flex-wrap: nowrap;
}

.tab-list::before {
    display: none !important;
}

.uk-card {
    box-shadow: none !important;
    border-radius: 8px  !important;
}

.uk-flex {
    flex-wrap: wrap;
}

/* Notification */
.notification-icon {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}

.transparent {
    background-color: transparent !important;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    border-radius: 8px;
}

.status-1 {
    background-color: #ECEFF1;
    color: var(--primary-color) !important;
}

.status-2 {
    background-color: #3F51B5;
}

.status-3 {
    background-color: #F9A825;
}

.status-4 {
    background-color: #7CB342;
}

.status-5 {
    background-color: #E53935;
}

/* worktime details */
.record-detail-card {
    color: #fff !important;
    transition: all 0.3s ease;
    padding: 8px !important;
}

.record-detail-card:hover {
    transform: translateY(-2px);
}

.record-detail-label {
    font-size: 0.875rem;
    color: #f8f8f8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record-detail-value {
    font-weight: 600;
    color: #f8f8f8;
    margin-top: 4px;
}

.status-badge {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active { background: #32d296; color: white; }
.status-inactive { background: #f0506e; color: white; }
.status-pending { background: #faa05a; color: white; }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scroll */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f1f1f1;
}


@media only screen and (max-width: 600px) {
    .btn-full {
        width: 100%;
    }

    .padding-default {
        padding: 0 !important;
    }
}

@media only screen and (max-width: 1000px) {
    #side-menu {
        display: none;
    }

    #offcanvas-slide {
        display: block !important;
    }

    #btn-offcanvas {
        display: contents;
    }
}

@media only print {
    .hide-on-print {
        display: none !important;
    }

    #body-container {
        margin-top: 0 !important;
        margin-left: 0 !important;
    }

    #full-height-content {
        height: auto !important;
        overflow: visible !important;
    }

    #content-body {
        width: 100% !important;
    }

    #side-menu {
        display: none !important;
    }

    .uk-button {
        display: none !important;
    }

    .uk-button-* {
        display: none !important;
    }
}