/* SYNLAB Custom CSS Styles - Light Theme Version */

/* Card label consistency fixes */
.synlab-card .text-muted.small {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #666666 !important;
}

/* Dashboard stats card styles */
.synlab-card {
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    background-color: #ffffff;
}

.synlab-card-header {
    background-color: rgba(95, 37, 159, 0.05);
    border-bottom: 1px solid rgba(95, 37, 159, 0.1);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #003366;
}

.synlab-card-body {
    padding: 1.25rem;
    background-color: #ffffff;
    color: #333333;
}

/* Sidebar Menu and Logout Button Styling */
.synlab-sidebar-menu {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}

.synlab-sidebar .mt-auto {
    margin-top: auto !important;
    border-top: 1px solid #e0e0e0;
    padding: 15px;
}

.synlab-sidebar .btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: white;
    transition: all 0.3s;
    font-weight: 500;
}

.synlab-sidebar .btn-outline-danger:hover {
    color: white;
    background-color: #dc3545;
}

/* SYNLAB color scheme */
.btn-synlab-primary {
    background-color: #5F259F;
    color: white;
    border: none;
}

.btn-synlab-primary:hover {
    background-color: #4a1d78;
    color: white;
}

.btn-synlab-outline {
    color: #5F259F;
    background-color: transparent;
    border: 1px solid #5F259F;
}

.btn-synlab-outline:hover {
    color: white;
    background-color: #5F259F;
}

/* Status badge styles */
.status-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: #fff;
}

.status-badge.pending {
    background-color: #ffc107;
    color: #212529;
}

.status-badge.accepted {
    background-color: #17a2b8;
}

.status-badge.en-route {
    background-color: #007bff;
}

.status-badge.picked {
    background-color: #6f42c1;
}

.status-badge.awaiting-confirmation {
    background-color: #fd7e14;
    color: #212529;
}

.status-badge.delivered {
    background-color: #28a745;
}

/* Fix for table text visibility */
.table {
    color: #333 !important;
}

.table th {
    background-color: #f8f9fa;
}

/* Sidebar styling for light theme */
.synlab-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.synlab-content {
    margin-left: 260px;
    padding: 20px;
    transition: all 0.3s;
}

.synlab-mobile-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1050;
    display: none;
    background-color: #5F259F;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
}

.synlab-sidebar-logo {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.synlab-sidebar-logo img {
    max-width: 120px;
    margin-bottom: 10px;
}

.synlab-sidebar-logo .logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #5F259F;
}

.synlab-sidebar .nav-link {
    color: #333;
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    margin-bottom: 5px;
}

.synlab-sidebar .nav-link:hover,
.synlab-sidebar .nav-link.active {
    color: #5F259F;
    background-color: rgba(95, 37, 159, 0.1);
}

.synlab-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .synlab-sidebar {
        transform: translateX(-100%);
    }
    
    .synlab-sidebar.active {
        transform: translateX(0);
    }
    
    .synlab-content {
        margin-left: 0;
    }
    
    .synlab-mobile-toggle {
        display: block;
    }
    
    .synlab-content.sidebar-active {
        margin-left: 0;
        opacity: 0.8;
    }
    
    /* Ensure logout button stays at the bottom on mobile */
    .synlab-sidebar-menu {
        height: calc(100vh - 180px);
    }
    
    .synlab-sidebar .mt-auto {
        position: relative;
        margin-bottom: 15px;
        padding-bottom: 25px;
    }
}