/* ==========================================================================
   User Management
   Municipality of Abuyog • Honey Theme
   ========================================================================== */

:root {
    --user-primary: #f4b400;
    --user-primary-dark: #c98a00;
    --user-soft: #fff9e6;
    --user-border: #f3d676;
    --user-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/*==================================================
    User Cards
==================================================*/

.user-card {
    background: #fffef8;
    border: 1px solid rgba(244, 180, 0, 0.18);
    border-radius: 18px;
    box-shadow: var(--user-shadow);
}

.user-card-header {
    background: linear-gradient(135deg, #fff7d7, #fff2b3);
    border-bottom: 1px solid rgba(244, 180, 0, 0.18);
}

/*==================================================
    Modal
==================================================*/

.user-modal .modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.user-modal-header {
    background: linear-gradient(135deg, #f4b400, #ffcf4d);
    color: #fff;
    padding: 1.5rem 2rem;
}

.user-modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/*==================================================
    Form Sections
==================================================*/

.form-section {
    background: #fffef8;

    border: 1px solid rgba(244, 180, 0, 0.15);

    border-radius: 18px;

    padding: 1.5rem;

    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 0.82rem;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color: #b17c00;

    font-weight: 700;

    margin-bottom: 1.25rem;
}

/*==================================================
    Labels
==================================================*/

#create-user-form .form-label,
#edit-user-form .form-label {
    font-size: 0.85rem;

    font-weight: 600;

    color: #7d6400;
}

/*==================================================
    Controls
==================================================*/

#create-user-form .form-control,
#create-user-form .form-select,
#edit-user-form .form-control,
#edit-user-form .form-select {
    border-radius: 12px;

    border: 1px solid #e8e8e8;

    transition: 0.25s;
}

#create-user-form .form-control:focus,
#create-user-form .form-select:focus,
#edit-user-form .form-control:focus,
#edit-user-form .form-select:focus {
    border-color: var(--user-primary);

    box-shadow: 0 0 0 0.2rem rgba(244, 180, 0, 0.15);
}

/*==================================================
    Password
==================================================*/

.toggle-password {
    border-color: #e4e4e4;

    background: #fff;
}

.toggle-password:hover {
    background: var(--user-soft);

    border-color: var(--user-primary);
}

.input-group > .form-control {
    border-right: none;
}

.input-group > .toggle-password {
    border-left: none;
}

/*==================================================
    Change Password
==================================================*/

#edit-change-password {
    width: 1.2rem;

    height: 1.2rem;

    cursor: pointer;
}

/*==================================================
    Invalid Feedback
==================================================*/

.input-group + .invalid-feedback.d-block {
    margin-top: 0.35rem;
}

/*==================================================
    User Avatar
==================================================*/

.user-avatar {
    width: 70px;

    height: 70px;

    border-radius: 50%;

    background: #fff;

    border: 3px solid #f4b400;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.8rem;

    color: #f4b400;

    box-shadow: 0 6px 18px rgba(244, 180, 0, 0.25);
}

/*==================================================
    Role Badges
==================================================*/

.role-badge {
    background: #fff8dc;

    color: #8a6500;

    border: 1px solid rgba(244, 180, 0, 0.25);

    border-radius: 999px;

    padding: 0.45rem 0.9rem;

    font-weight: 600;
}

/*==================================================
    Footer
==================================================*/

.user-modal .modal-footer {
    background: #fffdf7;

    border-top: 1px solid rgba(244, 180, 0, 0.15);
}

/*==================================================
    Buttons
==================================================*/

.btn-user-primary {
    background: #f4b400;

    border-color: #f4b400;

    color: #fff;
}

.btn-user-primary:hover {
    background: #d89d00;

    border-color: #d89d00;
}

.btn-user-outline {
    border-color: #f4b400;

    color: #b17c00;
}

.btn-user-outline:hover {
    background: #fff6d7;
}

/*==================================================
    Mobile
==================================================*/

@media (max-width: 768px) {
    .form-section {
        padding: 1.25rem;
    }

    .user-modal-header {
        padding: 1.2rem;
    }
}

/*==================================================
    Small Screens
==================================================*/

@media (max-width: 576px) {
    .btn-user-action {
        width: 40px;

        height: 40px;

        padding: 0;

        display: flex;

        align-items: center;

        justify-content: center;
    }

    .user-avatar {
        width: 60px;

        height: 60px;

        font-size: 1.5rem;
    }
}
