/*
 * Modern UI refinements — piloted on the Personas module.
 * Uses only the app's existing solid colors (no gradients):
 * primary #DC3545, plus Bootstrap's standard secondary/success/warning/info.
 */

/* ---------- Cards ---------- */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(20, 20, 43, 0.06);
}

.card-body {
    padding: 28px 32px;
}

.card-title {
    font-weight: 700;
    color: #2b2b3c;
}

/* ---------- Page toolbar (title + actions) ---------- */
.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-toolbar .page-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2b2b3c;
}

.page-toolbar .page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-rounded {
    border-radius: 999px;
}

.btn-primary {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.btn-primary:hover {
    opacity: 0.92;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
}

.btn-icon-sm {
    border-radius: 8px;
}

/* ---------- Inputs ---------- */
.form-control,
.select2-container--default .select2-selection--single {
    border-radius: 10px !important;
    border: 1px solid #e3e5ec !important;
    padding: 0.55rem 0.9rem;
    background-color: #fbfbfd;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #DC3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12) !important;
    background-color: #ffffff;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c7280;
    margin-bottom: 6px;
}

/* Search / filter input with icon */
.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 360px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0ac;
    pointer-events: none;
}

.search-input-wrapper .form-control {
    padding-left: 38px;
}

/* ---------- Form sections ---------- */
.form-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #DC3545;
    margin: 28px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef0f4;
}

.form-section-title:first-of-type {
    margin-top: 4px;
}

/* ---------- Table ---------- */
.table thead th {
    border-top: none;
    border-bottom: 1px solid #eef0f4;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9aa0ac;
    padding: 12px 14px;
}

.table tbody td {
    padding: 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f2f3f6;
    color: #2b2b3c;
}

.table tbody tr {
    transition: background-color 0.12s ease;
}

.table tbody tr:hover {
    background-color: #fbfbfd;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table img {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
}

/* ---------- Badges ---------- */
.badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

/* ---------- Modal close button ---------- */
.modal-header .close {
    font-size: 1.9rem;
    line-height: 1;
    opacity: 0.55;
    padding: 0.3rem 0.6rem;
    margin: -0.3rem -0.4rem -0.3rem auto;
    transition: opacity 0.12s ease;
}

.modal-header .close:hover,
.modal-header .close:focus {
    opacity: 1;
}
