body {
    background: #F5F7FF;
}

.emp-profile {
    padding: 3%;
    margin-top: 3%;
    margin-bottom: 3%;
    border-radius: 0.5rem;
    background: #fff;
}

.profile-img {
    text-align: center;
}

.profile-img img {
    width: 70%;
    height: 100%;
}

.profile-img .file {
    position: relative;
    overflow: hidden;
    margin-top: -20%;
    width: 70%;
    border: none;
    border-radius: 0;
    font-size: 15px;
    background: #212529b8;
}

.profile-img .file input {
    position: absolute;
    opacity: 0;
    right: 0;
    top: 0;
}

.profile-head h5 {
    color: #333;
}

.profile-head h6 {
    color: #0062cc;
}

.profile-edit-btn {
    border: none;
    border-radius: 1.5rem;
    width: 70%;
    padding: 2%;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
}

.proile-rating {
    font-size: 12px;
    color: #818182;
    margin-top: 5%;
}

.proile-rating span {
    color: #495057;
    font-size: 15px;
    font-weight: 600;
}

.profile-head .nav-tabs {
    margin-bottom: 5%;
}

.profile-head .nav-tabs .nav-link {
    font-weight: 600;
    border: none;
}

.profile-head .nav-tabs .nav-link.active {
    border: none;
    border-bottom: 2px solid #0062cc;
}

.profile-work {
    padding: 14%;
    margin-top: -15%;
}

.profile-work p {
    font-size: 12px;
    color: #818182;
    font-weight: 600;
    margin-top: 10%;
}

.profile-work a {
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
}

.profile-work ul {
    list-style: none;
}

.profile-tab label {
    font-weight: 600;
}

.profile-tab p {
    font-weight: 600;
    color: #0062cc;
}

/* Sidebar Styles */
.sidebar {
    background: #ffffff !important;
    min-height: 100vh;
    width: 280px;
    position: relative;
    border-right: 1px solid #f0f4f8;
    font-family: inherit;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 30px 25px 25px;
}

.brand-logo {
    margin-right: 20px;
}

.brand-logo img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    background: #ebf9f3;
    padding: 10px;
}

.brand-text .title {
    font-weight: 700;
    color: #1a2035;
    font-size: 19px;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
}

.brand-text .subtitle {
    color: #8a92a6;
    font-size: 13px;
    font-weight: 500;
}

.nav-section-title {
    padding: 30px 30px 10px;
}

.nav-section-title span {
    color: #b0b7c3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sidebar .nav-item {
    margin-bottom: 5px;
    position: relative;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    margin: 0 20px;
    border-radius: 10px;
    color: #6a7b9a !important;
    font-size: 15.5px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    border-left: 5px solid transparent;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.sidebar .nav-link i {
    font-size: 20px;
    min-width: 25px;
    margin-right: 20px;
    color: #6a7b9a;
    transition: all 0.3s ease;
    text-align: center;
}

.sidebar .nav-link:hover {
    background: #00a669 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 166, 105, 0.2);
}

.sidebar .nav-link:hover i {
    color: #ffffff !important;
    transform: scale(1.1);
}

/* Global Sidebar Active Override to kill purple */
.sidebar .nav .nav-item .nav-link.active,
.sidebar .nav .nav-item.active > .nav-link {
    background: #00a669 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(0, 166, 105, 0.25) !important;
    border-left: 5px solid #00ffa6 !important;
}

.sidebar .nav .nav-item .nav-link.active i,
.sidebar .nav .nav-item.active > .nav-link i {
    color: #00ffa6 !important;
}

.sidebar .nav-link.active:hover {
    transform: none;
    background: #00985f !important;
}

.sidebar .logout-btn:hover {
    background: #fff4f4 !important;
    color: #1a2035 !important;
}
.sidebar .logout-btn:hover .menu-title {
    color: #1a2035 !important;
}
.sidebar .logout-btn:hover i {
    color: #ef4444 !important;
}

/* Pengeluaran Module Styling */
.pengeluaran-table-wrapper select.form-select,
.pengeluaran-table-wrapper input.form-control {
    border: 1px solid #c9ccdd !important;
}
.pengeluaran-table-wrapper select.form-select:focus,
.pengeluaran-table-wrapper input.form-control:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.15rem rgba(0, 166, 105, 0.25) !important;
    border-color: #00a669 !important;
}

/* Optimasi Layar HP (Mobile View) */
@media (max-width: 991px) {
    .pengeluaran-table-wrapper .card-body {
        padding: 20px 14px !important;
    }
    .pengeluaran-table-wrapper select.form-select,
    .pengeluaran-table-wrapper input.form-control {
        padding: 4px 10px !important;
        height: 32px !important;
        font-size: 11.5px !important;
    }
    .pengeluaran-table-wrapper .d-md-flex.justify-content-md-end {
        justify-content: flex-start !important;
    }
    .pengeluaran-table-wrapper .btn.border-0 {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
    }
    .pengeluaran-table-wrapper .btn.border-0 i {
        font-size: 13px !important;
    }
    .pengeluaran-table-wrapper .card-body form,
    .pengeluaran-table-wrapper .table-responsive,
    .pengeluaran-table-wrapper * {
        font-size: 11.5px !important;
    }
    .pengeluaran-table-wrapper .table th,
    .pengeluaran-table-wrapper .table td,
    .pengeluaran-table-wrapper .table * {
        font-size: 11px !important;
        padding: 8px 6px !important;
        white-space: nowrap !important;
    }
    .pengeluaran-table-wrapper h2 {
        font-size: 19px !important;
    }
    .pengeluaran-table-wrapper .badge {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
    .pengeluaran-table-wrapper .border-bottom-2 {
        min-width: unset !important;
    }
    .btn-tambah {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}

.btn-tambah {
    background-color: #00a669;
    color: white !important;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
    text-decoration: none;
}
.btn-tambah:hover {
    background-color: #008a57;
    color: white !important;
    text-decoration: none;
}

.table-row-hover:hover {
    background-color: #fcfcfd;
}

/* Modern Alert Styling */
.custom-alert {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.4s ease-out;
    border-left: 4px solid #00a669;
}

.custom-alert.success {
    background: rgba(209, 250, 229, 0.8);
    backdrop-filter: blur(8px);
    color: #065f46;
}

.custom-alert-icon {
    background: #00a669;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 14px;
}

.custom-alert-content {
    font-weight: 500;
    font-size: 14.5px;
    flex-grow: 1;
    padding-right: 30px;
}

.custom-alert-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 10px;
}

.custom-alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kategori-pill input[type="radio"]:checked + .pill-label,
.tipe-pill input[type="radio"]:checked + .pill-label,
.status-pill input[type="radio"]:checked + .pill-label {
    background: #ecfdf5 !important;
    color: #00a669 !important;
    border-color: #00a669 !important;
    font-weight: 600 !important;
}

.pill-active-edit,
.kategori-pill-edit input[type="radio"]:checked + .pill-label-edit,
.tipe-pill-edit input[type="radio"]:checked + .pill-label-edit,
.status-pill-edit input[type="radio"]:checked + .pill-label-edit {
    background: #eff6ff !important;
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   Auth Pages Styling (Login, Recovery, Registration)
   ========================================================================== */

.auth-wrapper-modern {
    background: #fdfdfd;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.auth-card-modern {
    background: #ffffff;
    border: 1px solid #f1f5f9 !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    position: relative;
    padding: 2.5rem !important;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.auth-back-btn {
    color: #94a3b8;
    font-size: 18px;
    transition: all 0.25s ease-in-out;
}

.auth-back-btn:hover {
    transform: scale(1.1);
    color: #1a1a1a !important;
}

.auth-stepper-container {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    height: 3px;
    margin: 0 1.5rem;
}

.auth-stepper-line {
    height: 2px;
    flex: 1;
    border-radius: 10px;
    background: #e2e8f0;
}

.auth-stepper-line.active {
    background: #00a669;
}

.auth-stepper-dot {
    width: 6px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 50%;
}

.auth-stepper-dot.active {
    background: #00a669;
    box-shadow: 0 0 0 3px rgba(0, 166, 105, 0.1);
}

.auth-title-large {
    color: #1a1a1a;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-subtitle-small {
    color: #abb5be;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-desc-text {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.auth-form-label {
    display: block;
    color: #1a2035;
    font-size: 14px;
    font-weight: 600;
    text-align: left !important;
    margin-bottom: 0.5rem;
}

.auth-input-modern {
    background: #fcfcfc;
    border: 1.5px solid #edf2f7 !important;
    border-radius: 0.75rem !important;
    font-size: 15px;
    padding: 0.75rem 1rem !important;
    text-align: left !important;
    transition: all 0.25s ease-in-out;
    box-shadow: none !important;
}

.auth-input-modern:focus {
    border-color: #00a669 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 166, 105, 0.08) !important;
}

.auth-input-modern::placeholder {
    color: #abb5be;
    font-size: 14px;
}

.auth-btn-pill-green {
    background: #00a669 !important;
    border: none !important;
    border-radius: 50rem !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 0.85rem 0 !important;
    box-shadow: 0 4px 15px rgba(0, 166, 105, 0.2) !important;
    transition: all 0.25s ease-in-out;
}

.auth-btn-pill-green:hover {
    background: #008a57 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 105, 0.25) !important;
}

/* Animations Utility */
.transition-all {
    transition: all 0.25s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-card-modern {
        padding: 1.75rem !important;
        max-width: 95%;
    }
    .auth-title-large {
        font-size: 22px !important;
    }
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Auth Specific Minor Tweaks */
.auth-logo-img {
    max-width: 50px;
}
.auth-subtitle-text,
.auth-alert-text {
    font-size: 14px;
}
.auth-forgot-text,
.auth-link-forgot {
    font-size: 13px;
}
.auth-link-forgot {
    color: #00a669;
}
.auth-password-toggle {
    right: 15px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    line-height: 1 !important;
}

/* ============================================================
   Auth Page — styling.css
   ============================================================ */

/* -- Toggle password icon -- */
.auth-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 20;        /* naikkan z-index */
    line-height: 1;
}

/* Pastikan input tidak overlap icon */
.auth-input-modern {
    position: relative;
    z-index: 1;
}
