/* Ensure the whole page does not scroll */
html, body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent scrolling */
    margin: 0;
    padding: 0;

}
body {
    background-color: #f9f9f9 !important;
}
/* Ensure the login page covers the full screen without overflow */
.auth-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f5f7;
    overflow: hidden; /* No unnecessary scrolling */
    margin: 0;
    padding: 0;
}

/* Two-Column Layout */
.auth-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center; /* Ensure everything stays centered */
    align-items: center;
    margin: 0 auto;
    overflow: hidden; /* Prevents horizontal scrolling */
}

/* Left Side - Branding */
.auth-left {
    background: white;
    color: #6f42c1; /* Purple */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    height: 100%;
    width: 50%;
    max-width: 50vw;
    
}

.auth-logo {
    font-size: 4rem;
    font-weight: 700;
}

.auth-description {
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 80%;
    color: #333;
}

/* Right Side - Login Card */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    height: 100%;
    width: 50%;
    max-width: 50vw;
    overflow: hidden;
}

/* Form Container */
.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    margin: 0 auto; /* Centers the card */
}

/* Fix any extra spacing */
.container-fluid, .row {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Purple Color for Heading */
.text-purple {
    color: #6f42c1 !important;
}

/* Form Elements */
.form-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 5px;
}

/* Buttons */
/*.btn-primary {*/
/*    padding: 10px;
    font-size: 1rem;*/
    /*border-radius: 5px;
}*/
.collapsed {
    display: none;
}



.main-expanded {
    margin-left: 75px;
    margin-top: 10px;
    /* Adds some spacing when expanded */
    width: calc(100% - 80px); /* Ensures it doesn’t overflow */
}



.top-navbar {
    width: calc(100% - 235px); /* Default width with sidebar */
    position: fixed;
    left: 235px; /* Start from here */
    top: 0;
    height: 60px;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.top-navbar-expanded {
    width: calc(100% - 80px); /* Adjust width when sidebar is collapsed */
    left: 80px; /* Move left when sidebar collapses */
}




.btn-outline-primary {
    padding: 5px;
    font-size: 1rem;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left {
        width: 100%;
        padding: 20px;
        height: 50%;
        max-width: 100%;
    }

    .auth-right {
        width: 100%;
        padding: 20px;
        height: 50%;
        max-width: 100%;
    }

    .auth-card {
        max-width: 90%;
    }
}
/* Override the top-navbar styles only for Consultant pages */
.consultant-page .top-navbar {
    width: 100%; /* Full width for Consultant navbar */
    position: fixed;
    left: 0; /* Remove the space on the left */
    top: 0;
    height: 60px;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Make sure when sidebar is collapsed, the navbar still spans full width */
.consultant-page .top-navbar-expanded {
    width: 100%; /* Full width when sidebar is collapsed */
    left: 0; /* Move to the left edge */
}

/* Styles for ticket pages */
.ticket-status-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
}

.ticket-info-card {
    transition: all 0.3s ease;
}

    .ticket-info-card:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.consultant-list-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

    .consultant-list-item:hover {
        border-left-color: var(--bs-primary);
        background-color: rgba(var(--bs-primary-rgb), 0.05);
    }

    .consultant-list-item.selected {
        border-left-color: var(--bs-success);
        background-color: rgba(var(--bs-success-rgb), 0.05);
    }

/* Additional badge colors for different statuses */
.badge.bg-info {
    background-color: #17a2b8 !important;
    color: white;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.badge.bg-success {
    background-color: #28a745 !important;
    color: white;
}

.badge.bg-secondary {
    background-color: #0b2f6d !important;
    color: white;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: white;
}

/* Ensure table responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ticket description area styling */
.ticket-description {
    white-space: pre-line;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Feather icon alignment fix */
.feather {
    vertical-align: text-bottom;
}

/* Button spacing in table */
.btn-group-sm > .btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.76563rem;
    border-radius: 0.2rem;
}

.icon-sm{
    margin-bottom:.1rem;
}
.icon-xs {
    width: 0.8rem;
    height: 0.8rem;
}

/* site.css or breadcrumb.css */

.page-header {
    padding: 10px 10px;
}

.page-title {
    font-size: 20px;
    font-weight: 470;
    margin: 7px 0;
    color: #333;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: transparent;
}

    .breadcrumb li {
        display: inline-block;
        font-size: 12px;
    }

        .breadcrumb li + li:before {
            padding: 0 8px;
            color: #6c757d;
            content: "/";
        }

        .breadcrumb li a {
            color: #007bff;
            text-decoration: none;
            transition: color 0.2s ease;
        }

            .breadcrumb li a:hover {
                color: #0056b3;
                text-decoration: underline;
            }

ul.breadcrumb {
    padding: 10px 16px;
    list-style: none;
    background-color: #eee;
}

    ul.breadcrumb li {
        display: inline;
        font-size: 16px;
    }

        ul.breadcrumb li + li:before {
            padding: 8px !important;
            padding-right:0px !important;
            color: black !important;
            content: "/\00a0" !important;
        }

        ul.breadcrumb li a {
            color: #0275D8;
            text-decoration: none;
        }

            ul.breadcrumb li a:hover {
                color: #01447E;
                text-decoration: underline;
            }

/*            for logo*/
/* Logo Container Styles */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 4.3rem; /* Match your original main logo height */
    min-width: 8.5rem; /* Ensure container width for main logo */
}

/* Base Logo Image Styles */
.logo-image {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: all 0.3s ease-in-out;
    object-fit: contain;
    object-position: left center;
}

/* Main Logo (SVG - expanded sidebar) */
.main-logo {
    opacity: 1;
    visibility: visible;
    height: 4.3rem; /* Your original height */
    width: 8.5rem; /* Your original width */
    max-width: 220px; /* Your original max-width */
}

/* Short Logo (JPG - collapsed sidebar) */
.short-logo {
    opacity: 0;
    visibility: hidden;
    height: 2.3rem; /* Same height as main logo */
    width: 2.3rem; /* Square aspect for short logo */
    max-width: 3rem;
}

/* When sidebar is collapsed, switch logos */
.sidebar-collapsed .main-logo {
    opacity: 0;
    visibility: hidden;
}

.sidebar-collapsed .short-logo {
    opacity: 1;
    visibility: visible;
}

/* Logo wrapper styling */
.logo-mini-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from center to match original */
}

    .logo-mini-wrapper a {
        display: flex;
        align-items: center;
        transition: opacity 0.3s ease;
        text-decoration: none;
    }

        .logo-mini-wrapper a:hover {
            opacity: 0.9;
        }

    /* Hover effects for logos */
    .logo-mini-wrapper:hover .logo-image {
        transform: translateY(-50%) scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    }

/* Sidebar header transition */
.sidebar-header {
    transition: all 0.3s ease;
}

/* Responsive logo adjustments - maintaining your original breakpoints */
@media (max-width: 1200px) {
    .logo-container {
        height: 40px;
    }

    .main-logo {
        height: 40px;
        max-width: 200px;
        width: auto; /* Let width adjust proportionally */
    }

    .short-logo {
        height: 40px;
        width: 40px;
        max-width: 40px;
    }
}

@media (max-width: 992px) {
    .logo-container {
        height: 38px;
    }

    .main-logo {
        height: 38px;
        max-width: 180px;
        width: auto;
    }

    .short-logo {
        height: 38px;
        width: 38px;
        max-width: 38px;
    }
}

@media (max-width: 768px) {
    .logo-container {
        height: 35px;
    }

    .main-logo {
        height: 35px;
        max-width: 160px;
        width: auto;
    }

    .short-logo {
        height: 35px;
        width: 35px;
        max-width: 35px;
    }

    /* Adjust spacing on mobile */
    .logo-mini-wrapper {
        margin-right: 1rem !important;
    }
}

@media (max-width: 576px) {
    .logo-container {
        height: 32px;
    }

    .main-logo {
        height: 32px;
        max-width: 140px;
        width: auto;
    }

    .short-logo {
        height: 32px;
        width: 32px;
        max-width: 32px;
    }
}

/* Error handling - if image fails to load */
.logo-image:not([src]),
.logo-image[src=""] {
    display: none;
}

/* Fallback: show text if image doesn't load */
.logo-mini-wrapper::after {
    content: attr(data-fallback);
    font-size: 1.25rem;
    font-weight: bold;
    color: purple;
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.logo-image:not([src]) + .logo-mini-wrapper::after,
.logo-image[src=""] + .logo-mini-wrapper::after {
    display: block;
}

/* Additional: Ensure container adjusts when sidebar is collapsed */
.sidebar-collapsed .logo-container {
    min-width: auto; /* Allow container to shrink for short logo */
}