
/* === Card & Layout === */
.leave-card {
background: rgba(255, 255, 255, 0.9);
border-radius: 1rem;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
overflow: hidden;
}

.leave-card-header {
background: linear-gradient(135deg, #6f00ff 0%, #8c4bff 100%);
color: #fff;
padding: 1rem 1.5rem;
}

.leave-card-header h4 {
font-weight: 600;
margin: 0;
letter-spacing: 0.5px;
}

.card-body {
padding: 2rem;
}

  .leave-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
  }

  .leave-value {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 10px 14px;
    color: #111827;
    font-size: 0.95rem;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
  }
  
/* ===== Crispy Fields ===== */
.form-control, .form-select {
border-radius: 0.5rem;
border: 1px solid #d1d5db;
padding: 0.6rem 1rem;
transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
border-color: #6f00ff;
box-shadow: 0 0 0 0.2rem rgba(111, 0, 255, 0.25);
}

/* === Form Styling === */
.form-control,
.form-select {
border: 1px solid #dee2e6;
border-radius: 0.6rem;
box-shadow: none;
transition: all 0.2s ease-in-out;
}

.form-control:focus,
.form-select:focus {
border-color: #6f00ff;
box-shadow: 0 0 0 3px rgba(111, 0, 255, 0.15);
}

label {
font-weight: 500;
color: #2c2c54;
}

/* === Buttons === */
.btn-primary-custom {
background: linear-gradient(135deg, #6f00ff 0%, #8c4bff 100%);
border: none;
color: #fff;
font-weight: 600;
border-radius: 0.6rem;
padding: 0.6rem 1.4rem;
transition: 0.3s;
}

.btn-primary-custom:hover {
background: linear-gradient(135deg, #5a00d1 0%, #7b3ce0 100%);
transform: translateY(-1px);
}

.btn-outline-custom {
border: 1px solid #6f00ff;
color: #6f00ff;
font-weight: 600;
border-radius: 0.6rem;
padding: 0.6rem 1.4rem;
transition: 0.3s;
}

.btn-outline-custom:hover {
background: #6f00ff;
color: #fff;
}

/* === Animation === */
.leave-card {
animation: fadeInUp 0.4s ease-in-out;
}

@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(15px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

/* Button gap fix for mobile */
@media (max-width: 576px) {

    .leave-btn-group {
        display: flex;
        flex-direction: column;
        gap: 12px !important;   /* spacing between buttons */
        width: 100%;
    }

    .leave-btn-group .btn {
        width: 100%;            /* full width buttons */
    }
}

/* Password css */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 38px;
    cursor: pointer;
    opacity: 0.7;
}

.toggle-password:hover {
    opacity: 1;
}

/* 🔒 Read-only username */
.readonly-field input {
  background-color: #f8f9fa;
  cursor: not-allowed;
}


/* ======================================================
   SELECT2 — MATCH EXISTING .form-select STYLE (SAFE)
====================================================== */

/* Full width */
/* .select2-container {
    width: 100% !important;
} */

/* Prevent page shift when Select2 opens */
.select2-container--open {
    overflow: visible !important;
}


/* Main select box */
.select2-container--default .select2-selection--single {
    background-color: #f3f4f6 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.6rem !important;
    padding: 0.6rem 1rem !important;
    height: auto !important;
    min-height: calc(1.5em + 1.2rem + 2px);
    display: flex;
    align-items: center;
    box-shadow: none !important;
}

/* Selected text */
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    padding: 0 !important;
    line-height: normal !important;
    color: #111827;
    font-size: 0.95rem;
}

/* Dropdown arrow */
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: 100%;
    right: 10px;
}

/* Focus state — EXACT match */
.select2-container--default.select2-container--focus
.select2-selection--single {
    border-color: #6f00ff !important;
    box-shadow: 0 0 0 3px rgba(111, 0, 255, 0.15) !important;
}

/* Dropdown panel */
.select2-dropdown {
    border-radius: 0.6rem !important;
    border: 1px solid #dee2e6 !important;
}
