

/* ================================= BREADCRUMB ======================================*/
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    padding: 0 8px;
    font-weight: 600;
}

.breadcrumb-item a {
    color: #2193b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #11998e;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #495057;
}

.breadcrumb-item i {
    margin-right: 4px;
}

/* Order Details Toggle */
.toggle-details {
    transition: all 0.2s ease;
    border: none !important;
    outline: none !important;
}

.toggle-details:hover {
    color: #11998e !important;
    text-decoration: underline !important;
}

.toggle-details i {
    transition: transform 0.3s ease;
}

.toggle-details.active i {
    transform: rotate(180deg);
}

.order-details-row {
    transition: all 0.3s ease;
}

/* ================================= HEADER LEFT (APP BAR) ======================================*/
.header-left {
    background-color: #001f4d !important;
    padding: 0 15px;
}

.header-left .logo {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.header-left .logo img {
    filter: brightness(1.5) contrast(1.2);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 80px !important;
    height: 100px !important;
    object-fit: contain;
}

.header-left .logo.logo-small img {
    width: 50px !important;
    height: 50px !important;
}

/* Mobile view - white background for header */
@media (max-width: 768px) {
    .header {
        background-color: white !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .header-left {
        background-color: white !important;
    }
    
    .header .nav.user-menu {
        background-color: transparent !important;
    }
    
    /* Ensure text/icons are visible on white background */
    .header .nav.user-menu .nav-link {
        color: #495057 !important;
    }
    
    .header .nav.user-menu .nav-link i {
        color: #495057 !important;
    }
    
    /* Toggle button and mobile button - dark color on white background */
    #toggle_btn,
    #mobile_btn {
        color: #495057 !important;
    }
    
    #toggle_btn i,
    #mobile_btn i {
        color: #495057 !important;
    }
    
    /* Adjust logo for white background */
    .header-left .logo img {
        filter: none; /* Remove brightness filter on white background */
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    /* User dropdown menu - ensure visibility */
    .header .nav.user-menu .dropdown-toggle .user-img img {
        border: 2px solid #dee2e6;
    }
}

/* ================================= SIDEBAR======================================*/
  .sidebar {
        background-color: #001f4d !important;
        color: white;
    }

    .sidebar a {
        color: white !important;
        display: flex;
        align-items: center;
    }

    .sidebar a i {
        color: white !important; /* Ensures icons stay visible */
        margin-right: 10px;
    }

    .sidebar .submenu_class {
        background-color: #001f4d !important;
        display: none !important;
    }

    .sidebar .submenu_class.show,
    .sidebar li.submenu > a.subdrop + .submenu_class {
        display: block !important;
    }

    .sidebar a.active,
    .sidebar a:hover {
        background-color: #003366 !important;
        color: #fff !important;
    }

    .sidebar a span {
        color: white !important;
    }

    /* Prevent nested submenu links from closing dropdown */
    .sidebar ul.submenu_class a {
        pointer-events: auto !important;
    }

    /* Ensure parent submenu links can toggle */
    .sidebar li.submenu > a {
        cursor: pointer;
        position: relative;
    }


    /*========================================  CUSTOMER INVOICE================================== */
  
          @media print {
        body * {
            visibility: hidden;
        }

        .page-wrapper, .page-wrapper * {
            visibility: visible;
        }

        .page-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            padding: 0;
            margin: 0;
        }

        button.print-btn {
            display: none;
        }
    }

    body {
        background: #e9f2fb;
    }

    .invoice {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: #333;
        background: linear-gradient(135deg, #f0f7ff 0%, #d6e9fc 100%);
        border-radius: 8px;
        padding: 40px 40px 120px 40px;
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
        position: relative;
        overflow: hidden;
    }

    .invoice-header {
        border-bottom: 6px solid #007bff;
        padding-bottom: 15px;
        margin-bottom: 30px;
    }

    .invoice-header h2 {
        font-weight: 700;
        color: #007bff;
        margin-bottom: 0;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .company-info h5 {
        font-weight: 600;
        color: #444;
    }
      .text-primary {
        color: #1e5f8a !important;
    }
    

    .section-title {
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: #555;
        border-bottom: 1px solid #bdd7f5;
        padding-bottom: 5px;
    }

    .table th {
        background-color: #dbe9fb;
        font-weight: 600;
        vertical-align: middle;
        color: #004085;
        border-color: #a6c8ff;
    }
     .wave-top, .wave-bottom {
        height: 100px;
        width: 100%;
        overflow: hidden;
        line-height: 0;
    }
    
    .wave-top svg, .wave-bottom svg {
        width: calc(100% + 1.3px);
        height: 100px;
        display: block;
    }

    .table tbody tr:hover {
        background-color: #cce5ff;
    }

    .text-md-right {
        text-align: right;
    }

    .invoice-footer {
        margin-top: 40px;
        font-size: 0.9rem;
        color: #666;
        border-top: 1px solid #bdd7f5;
        padding-top: 15px;
    }

    /* ============================LOGIN PAGE =====================*/
       .login-body {
            min-height: 100vh;
            display: flex;
            align-items: center;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .loginbox {
            display: flex;
            max-width: 1000px;
            margin: 0 auto;
        }
        
        .login-left, .login-right {
            flex: 1;
        }
        
        .login-left {
            display: none;
        }
        
        @media (min-width: 992px) {
            .login-left {
                display: flex;
            }
        }
        
        .form-control:focus {
            border-color: #00a4ef;
            box-shadow: 0 0 0 0.2rem rgba(0, 164, 239, 0.25);
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 7px 14px rgba(0,0,0,0.1);
            background: linear-gradient(135deg, #005a9e 0%, #008bd1 100%) !important;
        }
        
        a:hover {
            color: #005a9e !important;
        }
        
        .microsoft:hover {
            background: #e5e5e5 !important;
        }
        
        .windows:hover, .azure:hover {
            transform: translateY(-3px) scale(1.1);
        }
        
        /* Animation for product keys */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .login-left {
            animation: fadeIn 0.6s ease-out forwards;
        }
        
        .login-right {
            animation: fadeIn 0.6s ease-out 0.2s forwards;
            opacity: 0;
        }
  /* ============================REGISTER==============================*/

/* =============================SYSTEM SETTING =============================== */
    .image-upload-wrapper {
        border: 2px dashed #dee2e6;
        border-radius: 5px;
        padding: 20px;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
    }
    
    .image-upload-wrapper:hover {
        border-color: #adb5bd;
    }
    
    .image-upload-wrapper.dragover {
        border-color: #007bff;
        background-color: rgba(0, 123, 255, 0.05);
    }
    
    .image-preview-container {
        position: relative;
    }
    
    .current-image {
        text-align: center;
    }
    
    .file-upload {
        position: relative;
        overflow: hidden;
    }
    
    .file-upload-input {
        position: absolute;
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        outline: none;
        opacity: 0;
        cursor: pointer;
        left: 0;
        top: 0;
    }
    
    .image-upload-wrap {
        margin-top: 10px;
        border: 2px dashed #dee2e6;
        position: relative;
        padding: 20px;
        text-align: center;
        transition: all 0.3s ease;
        cursor: pointer;
        min-height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .image-upload-wrap:hover {
        border-color: #2193b0;
        background-color: rgba(33, 147, 176, 0.05);
    }
    
    .image-upload-wrap.dragover {
        border-color: #2193b0;
        background-color: rgba(33, 147, 176, 0.1);
    }
    
    .drag-text {
        text-align: center;
    }
    
    .drag-text p {
        font-weight: 300;
        color: #6c757d;
    }
    
    .file-upload-image {
        max-height: 200px;
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }
    
    .remove-image, .cancel-upload {
        transition: all 0.2s ease;
    }
    
    .remove-image:hover, .cancel-upload:hover {
        transform: translateY(-1px);
    }
    
    .custom-switch {
        padding-left: 3rem;
    }


       .bg-gradient-primary {
        background: linear-gradient(135deg, #4e73df, #224abe);
    }

    .bg-gradient-success {
        background: linear-gradient(135deg, #1cc88a, #17a673);
    }

    .bg-gradient-warning {
        background: linear-gradient(135deg, #f6c23e, #dda20a);
    }

    .bg-gradient-danger {
        background: linear-gradient(135deg, #e74a3b, #be2617);
    }

    .icon-circle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 55px;
        height: 55px;
    }

/* ============================LOGIN PAGE STYLES =====================*/
    /* Base Styles */
    :root {
        --primary-color: #1a5276;
        --primary-light: #2874a6;
        --text-color: #2c3e50;
        --light-gray: #f9fafb;
        --medium-gray: #e5e7eb;
        --dark-gray: #6b7280;
        --error-color: #e74c3c;
        --white: #ffffff;
        --accent-color: #f39c12;
    }
    
    /* Login Container with Tanzanian background */
    .login-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        background-image: url('https://images.unsplash.com/photo-1566438480900-0609be27a4be?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }
    
    .login-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 0;
    }
    
    /* Login Card */
    .login-card {
        width: 100%;
        max-width: 420px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        padding: 2.5rem;
        position: relative;
        z-index: 1;
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    /* Logo Container */
    .logo-container {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .logo {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: inherit;
    }
    
    .logo img {
        margin-bottom: 0.75rem;
    }
    
    .site-name {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
    }
    
    /* Login Header */
    .login-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: var(--primary-color);
    }
    
    .login-header p {
        color: var(--dark-gray);
        font-size: 1rem;
    }
    
    /* Form Elements */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--text-color);
    }
    
    .form-group input {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.9375rem;
        border: 1px solid var(--medium-gray);
        border-radius: 8px;
        transition: all 0.3s ease;
        background-color: rgba(255, 255, 255, 0.9);
    }
    
    .form-group input:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.15);
        background-color: var(--white);
    }
    
    .password-input {
        position: relative;
    }
    
    .password-input input {
        padding-right: 2.75rem;
    }
    
    .password-toggle {
        position: absolute;
        right: 0.875rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--dark-gray);
        cursor: pointer;
        padding: 0.25rem;
        transition: color 0.2s;
    }
    
    .password-toggle:hover {
        color: var(--primary-color);
    }
    
    .error-message {
        display: block;
        color: var(--error-color);
        font-size: 0.8125rem;
        margin-top: 0.375rem;
    }
    
    /* Form Options */
    .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.75rem;
        font-size: 0.9375rem;
    }
    
    .remember-me {
        display: flex;
        align-items: center;
    }
    
    .remember-me input {
        margin-right: 0.5rem;
        width: 16px;
        height: 16px;
        accent-color: var(--primary-color);
    }
    
    .forgot-password {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.2s;
    }
    
    .forgot-password:hover {
        text-decoration: underline;
        color: var(--primary-light);
    }
    
    /* Login Button */
    .login-button {
        width: 100%;
        padding: 0.9375rem;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 1.75rem;
        box-shadow: 0 4px 6px rgba(26, 82, 118, 0.2);
        position: relative;
        overflow: hidden;
    }
    
    .login-button:hover {
        background-color: var(--primary-light);
        transform: translateY(-1px);
        box-shadow: 0 6px 8px rgba(26, 82, 118, 0.3);
    }
    
    .login-button:active {
        transform: translateY(0);
    }
    
    .login-button::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(
            to bottom right,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.1) 50%,
            rgba(255,255,255,0) 100%
        );
        transform: rotate(30deg);
        transition: all 0.3s;
    }

    .login-button:hover::after {
        left: 100%;
    }
    
    /* Login Footer */
    .login-footer {
        text-align: center;
        font-size: 0.9375rem;
        color: var(--dark-gray);
    }
    
    .signup-link {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.2s;
    }
    
    .signup-link:hover {
        text-decoration: underline;
        color: var(--primary-light);
    }

    /* Responsive adjustments */
    @media (max-width: 480px) {
        .login-card {
            padding: 1.75rem;
            max-width: 95%;
            backdrop-filter: blur(2px);
        }
        
        .login-header h1 {
            font-size: 1.5rem;
        }
    }

/* ============================NOTIFICATIONS =====================*/
.noti-dropdown .badge-danger {
    background-color: #dc3545;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.notification-message .avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3cd;
    border-radius: 50%;
    margin-right: 10px;
}

.notification-message .avatar i {
    font-size: 1.2rem;
}

.notification-message:hover {
    background-color: #f8f9fa;
}

.noti-title {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.85rem;
    color: #6c757d;
}

.clear-noti {
    color: #667eea;
    font-size: 0.85rem;
    text-decoration: none;
}

.clear-noti:hover {
    color: #764ba2;
    text-decoration: underline;
}