/* Card container */
.card-container {
    width: 100%;
    max-width: 900px;
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 5px solid #DA1169;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.card-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ── User menu ── */
.user-menu-wrap {
    position: relative;
}

.user-avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #334155;
    background: #273449;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.user-avatar-btn:hover {
    border-color: #DA1169;
    background: #fff0f5;
    color: #DA1169;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
    animation: dropIn 0.18s ease;
}

.user-dropdown.open {
    display: block;
}

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

.user-dropdown-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}

.user-dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DA1169, #b8005a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.user-dropdown-name {
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
}

.user-dropdown-email {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

.user-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    color: #374151;
    transition: background 0.15s, color 0.15s;
}

.user-dropdown-item i {
    width: 16px;
    text-align: center;
    color: #9ca3af;
    transition: color 0.15s;
}

.user-dropdown-item:hover {
    background: #fff0f5;
    color: #DA1169;
}

.user-dropdown-item:hover i {
    color: #DA1169;
}

.user-dropdown-item--logout {
    color: #374151 !important;
    font-size: 13px !important;
    font-family: Arial, sans-serif;
    cursor: pointer;
}

.user-dropdown-item--logout:hover {
    background: #fff0f5;
    color: #DA1169;
}

.user-dropdown-item--logout:hover i {
    color: #DA1169;
}

/* ── Forms ── */
.card-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #DA1169;
    font-weight: 600;
}

label {
    font-weight: 500;
    color: #333;
}

input:not([type="checkbox"]):not([type="radio"]), textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #DA1169;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus {
    border-color: #b8005a;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #DA1169;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #b8005a;
}

.operator-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.operator-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.operator-form-grid--compact {
    align-items: start;
}

.form-field label,
.field-label,
.checkbox-fieldset__label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.required-indicator {
    color: #DA1169;
}

.form-field--status {
    padding: 16px 18px;
    border: 1px solid #f1d3e0;
    border-radius: 10px;
    background: #fff8fb;
}

.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    cursor: pointer;
}

.status-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #DA1169;
}

.checkbox-fieldset {
    border: 1px solid #f1d3e0;
    border-radius: 12px;
    padding: 18px;
    background: #fffafb;
}

.checkbox-fieldset__head {
    margin-bottom: 14px;
}

.checkbox-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #ead1db;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.checkbox-option:hover {
    border-color: #DA1169;
    background: #fff5f9;
    box-shadow: 0 4px 14px rgba(218, 17, 105, 0.08);
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #DA1169;
    flex-shrink: 0;
}

.checkbox-option span {
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.empty-choice-text {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 12px 18px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    background: #ffffff;
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.secondary-btn:hover {
    border-color: #DA1169;
    color: #DA1169;
    background: #fff5f9;
}

.form-actions button[type="submit"] {
    width: auto;
    min-width: 160px;
}

@media (max-width: 768px) {
    .operator-form-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-option-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .secondary-btn,
    .form-actions button[type="submit"] {
        width: 100%;
    }
}
/* ── Buttons ── */
.add-btn {
    display: inline-block;
    padding: 7px 16px;
    background: transparent;
    color: #DA1169;
    border: 1.5px solid #DA1169;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background: #DA1169;
    border-color: #DA1169;
    color: #fff;
}

/* ── Tables ── */
.card-container h3 {
    color: #1f2937;
    font-weight: 600;
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 20px;
}

table thead tr {
    background-color: #fff0f5;
    color: #DA1169;
    border-bottom: 2px solid #DA1169;
}

table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 16px;
}

table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #374151;
}

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

/* ── DataTables ── */
.table-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

div.dataTables_filter input {
    border: 1px solid #DA1169;
    border-radius: 6px;
    padding: 6px 10px;
    outline: none;
    font-size: 13px;
    margin-left: 0 !important;
    width: 220px;
}

div.dataTables_filter input:focus {
    border-color: #b8005a;
}

div.dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}