:root{
    --bg: #00aaff;
    --dark: #000;
    --ligth: #fff;
    --grey: #828282;
    --red : #ff0000;
}

/* login */
.hero{
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, #565656 100%);
    display: flex;
    align-items: center;
}

.hero .card {
    width: 400px;
    height: 350px;
    margin-left: 100px;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero .logo{
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.form-control-user {
    height: 45px;
    border-radius: 10rem;
    padding: 1.1rem 1.4rem;
    font-size: 0.9rem;
    border: 1px solid #d1d3e2;
    transition: all 0.2s ease-in-out;
}

.form-control-user:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    outline: none;
}

.card h1{
    color: #ffffff;
    font-family: 'Archivo Black';
}

.logo img {
    max-width: 300px;
    height: auto;
}

.logo {
    display: flex;
    align-items: center;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 12px 16px;

    background: linear-gradient(135deg, #eb2525, #af1e1e);
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;

    border: none;
    border-radius: 10px;

    cursor: pointer;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(235, 37, 37, 0.25);
    transition: all 0.25s ease;
}


/* HOVER */
.btn-login:hover {
    background: linear-gradient(135deg, #d81d1d, #8a1e1e);
    box-shadow: 0 10px 25px rgba(235, 37, 37, 0.35);
    transform: translateY(-1px);
}

/* ACTIVE (DIKLIK) */
.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

/* FOCUS (AKSESIBILITAS) */
.btn-login:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

/* DISABLED */
.btn-login:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px; /* ruang untuk icon */
    height: 45px; /* opsional biar konsisten */
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #6c757d; /* abu-abu ala Bootstrap */
}
/* End Login */

/* add master data */
.add-data {
    background-color: #c52222;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(197, 34, 34, 0.35);
    transition: all 0.25s ease;

    /* 🔥 FIX UNDERLINE */
    text-decoration: none;
}
.add-data:hover,
.add-data:focus {
    background-color: #a31616;
    box-shadow: 0 6px 16px rgba(197, 34, 34, 0.45);
    color: #ffffff;

    /* 🔥 FIX UNDERLINE */
    text-decoration: none;
}

.layout-logo{
    height: 40px;
    width: auto;
}

.sidebar-toggled .sidebar .layout-logo{
    height: 20px;
    width: auto;
}

/* end add master data */

.btn-category {
    background-color: #4e73df !important;
    border-color: #4e73df !important;
    color: #fff !important;
}

.btn-category:hover {
    background-color: #2e59d9 !important;
    border-color: #2e59d9 !important;
}

.product-select {
    height: 38px;          /* tinggi default input */
    padding: 6px 12px;
    font-size: 14px;
}

/* Modern Form Controls & Selects */
.form-control,
.form-select {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    line-height: 1.6 !important;
}

/* Input type specific styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
textarea {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    font-family: inherit !important;
    line-height: 1.6 !important;
}

/* Textarea specific adjustments */
textarea {
    resize: vertical;
    min-height: 100px;
    padding: 12px 14px !important;
}

/* Focus states */
.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
    background-color: #ffffff !important;
}

/* Placeholder styling */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

/* Disabled state */
.form-control:disabled,
.form-select:disabled,
input:disabled,
textarea:disabled {
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

/* Invalid/Error state */
.form-control.is-invalid,
.form-select.is-invalid,
input.is-invalid,
textarea.is-invalid {
    border-color: #ef4444 !important;
    background-image: none !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
input.is-invalid:focus,
textarea.is-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Valid/Success state */
.form-control.is-valid,
.form-select.is-valid,
input.is-valid,
textarea.is-valid {
    border-color: #10b981 !important;
}

.form-control.is-valid:focus,
.form-select.is-valid:focus,
input.is-valid:focus,
textarea.is-valid:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Form Group Spacing */
.form-group,
.mb-3,
.mb-4 {
    margin-bottom: 1.5rem;
}

/* Form Labels */
.form-label,
label {
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
    display: block;
    text-transform: none;
    letter-spacing: 0.3px;
}

/* Required field indicator */
.form-label .text-danger,
label .text-danger {
    color: #ef4444;
    margin-left: 2px;
}

/* Input group styling */
.input-group {
    display: flex;
    margin-bottom: 1.5rem;
}

.input-group .form-control {
    margin: 0 !important;
}

.input-group-text {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    background-color: #f9fafb !important;
    margin-right: 8px;
}

/* Range input styling */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Checkbox and Radio styling */
.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    margin-top: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-check-label {
    font-weight: 500;
    color: #374151;
    margin-left: 8px;
    cursor: pointer;
    user-select: none;
}

/* Select2 Modern Styling */
.select2-container .select2-selection--single {
    height: 42px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
}

.select2-container--default .select2-selection--single {
    border-color: #e5e7eb !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    color: #1f2937 !important;
    font-weight: 500 !important;
    padding-left: 4px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    width: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #667eea transparent transparent transparent !important;
}

.select2-dropdown {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    margin-top: 4px !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 12px !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #667eea !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e0e7ff !important;
    color: #667eea !important;
}

.select2-searching {
    padding: 10px 12px !important;
}

.select2-search__field {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    color: #1f2937 !important;
    font-weight: 500 !important;
}

/* button filter dan reset */
.btn-filter,
.btn-reset {
    width: 100%;
    height: 42px;

    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: all .25s ease;
    cursor: pointer;
    text-decoration: none;
}

/* Mobile-specific button styling for outlet transactions */
@media (max-width: 767.98px) {
    .mobile-actions .btn-add,
    .mobile-actions .btn-filter,
    .mobile-actions .btn-reset {
        width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        text-decoration: none;
        gap: 0.5rem;
    }

    .mobile-actions .btn-add {
        background: #0d6efd;
        color: #fff;
        border: none;
    }

    .mobile-actions .btn-filter {
        background: #198754;
        color: #fff;
        border: none;
    }

    .mobile-actions .btn-reset {
        background: #6c757d;
        color: #fff;
        border: none;
    }

    .mobile-actions .btn-add i,
    .mobile-actions .btn-filter i,
    .mobile-actions .btn-reset i {
        font-size: 1rem;
    }
}

/* FILTER */
.btn-filter {
    background: linear-gradient(135deg, #ff0000, #ec3a3a);
    color: #fff;
    border: none;
}

.btn-filter:hover {
    transform: translateY(-2px);
    
}

/* RESET */
.btn-reset {
    background: #201f1f;
    color: #ffffff;
    border: 1px solid #e5e7eb;
}

.btn-reset:hover {
    background: #f9fafb;
    transform: translateY(-2px);
}

/* CLICK FEEL */
.btn-filter:active,
.btn-reset:active {
    transform: scale(.97);
}

/* Button Add */
.btn-add {
    height: 44px;
    padding: 0 20px;

    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;
    transition: all .25s ease;

    box-shadow: 0 8px 22px rgba(34,197,94,.35);
}

/* hover */
.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(34,197,94,.45);
    color: #fff;
}

/* active click */
.btn-add:active {
    transform: scale(.96);
}

/* icon size */
.btn-add i {
    font-size: 16px;
}

        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Work Sans', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }

        .hero {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        .login-container {
            display: flex;
            gap: 30px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: center;
        }

        .logo-section {
            flex: 0 1 280px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .logo-section img {
            max-width: 100%;
            height: auto;
            filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
            animation: fadeInLeft 0.8s ease-out;
        }

        .login-section {
            flex: 0 1 340px;
        }

        .login-card {
            background: rgba(255, 255, 255, 0.95);
            border: none;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            backdrop-filter: blur(10px);
            animation: fadeInRight 0.8s ease-out;
        }

        .login-card-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 32px 24px;
            text-align: center;
            color: white;
        }

        .login-card-header h1 {
            font-size: 1.75rem;
            font-weight: 700;
            margin: 0;
            letter-spacing: 0.5px;
        }

        .login-card-header p {
            font-size: 0.9rem;
            margin-top: 6px;
            opacity: 0.9;
            margin-bottom: 0;
        }

        .login-card-body {
            padding: 32px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: #374151;
            font-size: 0.95rem;
        }

        .form-control {
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            padding: 12px 16px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            background-color: #f9fafb;
        }

        .form-control:focus {
            border-color: #667eea;
            background-color: #ffffff;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            outline: none;
        }

        .form-control::placeholder {
            color: #9ca3af;
        }

        .input-group {
            display: flex;
            align-items: center;
        }

        .input-group .form-control {
            border-right: none;
            border-radius: 10px 0 0 10px;
        }

        .input-group .btn {
            border: 2px solid #e5e7eb;
            border-left: none;
            border-radius: 0 10px 10px 0;
            background-color: #f9fafb;
            color: #667eea;
            padding: 12px 16px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .input-group .btn:hover {
            background-color: #667eea;
            color: white;
            border-color: #667eea;
        }

        .error-message {
            color: #ef4444;
            font-size: 0.85rem;
            margin-top: 6px;
            display: block;
        }

        .is-invalid {
            border-color: #ef4444 !important;
        }

        .btn-login-submit {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 8px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .btn-login-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
        }

        .btn-login-submit:active {
            transform: translateY(0);
        }

        .navbar.topbar { 
            padding: .75rem 1rem;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
            border-bottom: 2px solid #e9ecef;
        }
        
        .navbar.topbar .avatar { 
            width: 48px; 
            height: 48px; 
            object-fit: cover;
            border: 2px solid #667eea;
            transition: all 0.3s ease;
        }
        
        .navbar.topbar .avatar:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        
        .user-info-wrapper {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .user-name {
            font-size: 0.95rem;
            font-weight: 700;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 0.3px;
        }
        
        .user-role {
            font-size: 0.8rem;
            font-weight: 600;
            color: #667eea;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            letter-spacing: 0.2px;
        }
        
        /* Form Labels Styling */
        .form-label {
            font-weight: 600;
            color: #374151;
            font-size: 0.95rem;
            margin-bottom: 8px;
        }
        
        /* Form Group Spacing */
        .form-group {
            margin-bottom: 1.5rem;
        }
        /* Global Form Controls */
        input[type="text"],
        input[type="number"],
        input[type="email"],
        input[type="password"],
        select,
        textarea,
        .form-control {
            background: #ffffff;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            padding: 0.55rem 0.75rem;
            font-size: 0.95rem;
            color: #1f2937;
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.08s ease;
            box-shadow: none;
        }

        input[type="text"]:focus,
        input[type="number"]:focus,
        input[type="email"]:focus,
        input[type="password"]:focus,
        select:focus,
        textarea:focus,
        .form-control:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
            transform: translateY(-1px);
        }

        textarea {
            min-height: 120px;
            resize: vertical;
            padding-top: 0.6rem;
            padding-bottom: 0.6rem;
        }

        /* Disabled / Readonly */
        input[disabled],
        textarea[disabled],
        select[disabled],
        input[readonly],
        textarea[readonly] {
            background: #f8fafc;
            color: #6b7280;
            cursor: not-allowed;
            opacity: 0.9;
        }

        /* Validation states */
        .is-invalid, .was-validated .form-control:invalid {
            border-color: #e11d48;
            box-shadow: 0 4px 12px rgba(225, 29, 72, 0.08);
        }

        .form-help {
            font-size: 0.85rem;
            color: #6b7280;
            margin-top: 0.35rem;
            display: block;
        }

        /* Small adjustments for select2 when used */
        .select2-container--bootstrap4 .select2-selection--single {
            height: auto;
            padding: 0.45rem 0.75rem;
            border-radius: 0.5rem;
            border: 1px solid #d1d5db;
            box-shadow: none;
        }
        .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
            color: #1f2937;
            font-size: 0.95rem;
            line-height: 1.6;
        }
        /* Make native select match input look */
        select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.25 7.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            padding-right: 2.25rem;
            line-height: 1.6;
        }

        /* Remove native dropdown arrow in IE/Edge */
        select::-ms-expand {
            display: none;
        }

        .sticky-footer {
            position: fixed;
            bottom: 5px;
            left: 0;
            height: 10px;
            width: 100%;
            background: transparent !important;
            padding: 15px 0 !important;
            border-top: 2px solid transparent;
            text-align: center;
        }
        .pagination {
    flex-wrap: wrap;
    justify-content: center;
}

    .pagination .page-item {
        margin: 2px;
    }

        @media (max-width: 768px) {
            .login-container {
                gap: 15px;
            }

            .logo-section {
                flex: 0 1 100%;
                margin-bottom: 15px;
            }

            .login-section {
                flex: 0 1 100%;
            }

            .login-card-header {
                padding: 24px 18px;
            }

            .login-card-header h1 {
                font-size: 1.4rem;
            }

            .login-card-body {
                padding: 24px 18px;
            }
             /* Sidebar jadi layer atas */
            #accordionSidebar {
                position: fixed !important;
                top: 0;
                left: 0;
                width: 130px !important;
                height: 100%;
                z-index: 2000;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                overflow: visible;
            }

            #accordionSidebar.active {
                transform: translateX(0);
            }

            .overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0,0,0,0.4);
                z-index: 1999;
                display: none;
            }

            .overlay.active {
                display: block;
            }

            #content-wrapper {
                margin-left: 0 !important;
                min-height: 100vh;
                max-width: 100% !important;
                background: #fff; /* ini yang bikin putih full */
                padding-left: 0px !important;
                padding-right: 0px !important;
            }
            #content {
                min-height: 100%;
            }
        }

            @keyframes float {
                0% {
                    transform: translateY(0);
                }
                50% {
                    transform: translateY(-8px);
                }
                100% {
                    transform: translateY(0);
                }
            }

            @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }