﻿:root {
    --custom-blue: #0B5394;
    --custom-orange: #f0b800;
    --custom-red: #9E2A2B;
    --custom-dark: #212529;
    --custom-dark-blue: #222537;
    --custom-light-blue: #3498db;
}

body {
    height: 100%;
    overflow: auto;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100%;
    z-index: 999;
    transition: transform 0.3s ease;
    background-color: var(--custom-dark-blue);
}

    .sidebar .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 20px;
        color: white;
        text-decoration: none;
        transition: background-color 0.3s ease, border-left 0.3s ease;
    }

        .sidebar .nav-link:hover {
            background-color: color-mix(in srgb, var(--custom-light-blue) 15%, transparent);
            border-left: 5px solid var(--custom-light-blue);
            padding-left: 10px;
        }

.navbar {
    position: fixed;
    top: 0;
    left: 180px;
    width: calc(100% - 180px);
    height: 45px;
    background-color: var(--custom-dark);
    transition: left 0.3s ease, width 0.3s ease;
}

/* Main content positioning */
.main-content {
    margin-left: 180px;
    margin-top: 45px;
    min-height: 100%;
    transition: margin-left 0.3s ease;
}
.login-container {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-box {
    background-color: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}
/* Removes the spaces for the side and top navbars */
.logged-out-main-content {
    margin-left: 0px;
    margin-top: 0px;
}

.hide-mobile-button {
    display: none;
}
/* Change from orientation-based to width-based media query */
@media (max-width: 1200px) {
    .hide-mobile-button {
        display: block !important;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 180px;
        top: 45px;
        height: calc(100vh - 45px);
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .navbar {
        left: 0;
        width: 100%;
    }

    .main-content {
        margin-left: 0;
    }

    .overlay {
        position: fixed;
        top: 45px;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
    }

        .overlay.show {
            display: block;
        }
}
/* Overriding the btn class */
.btn {
    border-color: transparent;
    padding: 0.4rem 1.2rem;
}

    .btn:hover,
    .btn:active,
    .btn:focus,
    .btn:focus:active {
        box-shadow: none;
        opacity: 0.9;
    }

/* Overriding the Primary button */
.btn-primary {
    background-color: var(--custom-orange);
}

    .btn-primary:hover,
    .btn-primary:active,
    .btn-primary:focus,
    .btn-primary:focus:active {
        background-color: var(--custom-orange);
    }

/* Overriding the Danger button */
.btn-danger {
    background-color: var(--custom-red);
}

    .btn-danger:hover,
    .btn-danger:active,
    .btn-danger:focus,
    .btn-danger:focus:active {
        background-color: var(--custom-red);
    }

/* Overriding the Warning button */
.btn-warning {
    background-color: var(--custom-orange);
    color: white;
}

    .btn-warning:hover,
    .btn-warning:active,
    .btn-warning:focus,
    .btn-warning:focus:active {
        background-color: var(--custom-orange);
        color: white;
    }

/* Overriding the Secondary button */
.btn-secondary {
    background-color: var(--custom-dark);
}

    .btn-secondary:hover,
    .btn-secondary:active,
    .btn-secondary:focus,
    .btn-secondary:focus:active {
        background-color: var(--custom-dark);
    }

/* Override Bootstrap's table-bordered class for rounded corners */
.table-bordered {
    border-radius: 5px;
    overflow: hidden;
}

/* Prevent excessive column shrinking */
.table th, .table td {
    white-space: nowrap;
    min-width: 80px;
}

.card-body {
    flex: 1 1 auto;
    padding: 0.8rem 0.8rem;
}

.mt-1 {
    margin-top: .25rem !important;
}

.card-title {
    margin-bottom: .4rem;
}

.h5, h5 {
    font-size: 1.05rem;
}

.table-dark {
    --bs-table-bg: var(--custom-dark-blue)
}

/* Overriding the Input classes to present better */
.form-control:focus {
    box-shadow: none;
    border-color: var(--custom-blue);
}

/* Overriding the Select classes to present better */
.form-select:focus {
    box-shadow: none;
    border-color: var(--custom-blue);
}

/* Overriding the active class for list-group-items*/
.list-group-item.active {
    background-color: var(--custom-blue);
    color: white !important;
}

/* Custom dashboard cards styles */
.custom-border-primary {
    border-left: 4px solid #007bff;
}

.custom-border-success {
    border-left: 4px solid #28a745;
}

.custom-border-warning {
    border-left: 4px solid #ffc107;
}

/* Custom structure */
.custom-scrollable-section {
    max-height: 12rem;
    overflow-y: auto;
}

.cursor-pointer {
    cursor: pointer;
}

/* Custom Badge styling */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

    .status-badge.new {
        background-color: #e8f4fc;
        color: #3498db;
    }

    .status-badge.in-progress {
        background-color: #e8f8f5;
        color: #16a085;
    }

    .status-badge.waiting {
        background-color: #fef5e8;
        color: #f39c12;
    }

    .status-badge.completed {
        background-color: #eafaf1;
        color: #27ae60;
    }

/* Custom Time elapsed danger levels */
.time-normal {
    color: #2ecc71;
}

.time-warning {
    color: #f39c12;
}

.time-danger {
    color: #e74c3c;
}

.sticky-pagination {
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
    border-top: 1px solid #dee2e6;
    padding: 10px 0;
}