/* Wedding-inspired admin theme */
:root {
    --wedding-bg: #fffaf1;
    --wedding-red: #b5121b;
    --wedding-red-soft: #e14a4f;
    --wedding-green: #2e7d32;
    --wedding-green-soft: #4caf50;
    --wedding-ink: #2b241f;
    --wedding-gold: #c8a951;
}

body.c-app {
    background: var(--wedding-bg);
    color: var(--wedding-ink);
    font-family: "Poppins", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.c-header-brand,
.c-sidebar-brand {
    font-family: "Playfair Display", "Times New Roman", serif;
    letter-spacing: 0.2px;
}

.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

/* CoreUI surfaces */
.c-header {
    background: linear-gradient(90deg, #fffaf1 0%, #fff1dd 45%, #fffaf1 100%);
    border-bottom: 2px solid rgba(181, 18, 27, 0.2);
}

.c-header .c-header-nav-link,
.c-header .c-header-brand {
    color: var(--wedding-ink);
}

.c-sidebar {
    background: linear-gradient(180deg, #b5121b 0%, #7b0f14 100%);
    border-right: 3px solid rgba(181, 18, 27, 0.25);
}

.c-sidebar .c-sidebar-brand-full,
.c-sidebar .c-sidebar-brand {
    color: #fffaf1;
}

.c-sidebar .c-sidebar-nav-link,
.c-sidebar .c-sidebar-nav-dropdown-toggle {
    color: #fffaf1;
}

.c-sidebar .c-sidebar-nav-link.c-active,
.c-sidebar .c-sidebar-nav-link:hover,
.c-sidebar .c-sidebar-nav-dropdown-toggle:hover {
    background: rgba(255, 250, 241, 0.18);
    color: #fffaf1;
}

.c-sidebar .c-sidebar-nav-link .c-sidebar-nav-icon {
    color: rgba(255, 250, 241, 0.8);
}

.c-wrapper {
    background: var(--wedding-bg);
}

.card {
    border: 1px solid rgba(200, 169, 81, 0.35);
    box-shadow: 0 10px 24px rgba(28, 18, 8, 0.08);
    border-radius: 12px;
}

.card-header {
    background: #fff4e3;
    border-bottom: 1px solid rgba(181, 18, 27, 0.18);
    font-weight: 600;
}

.alert-success {
    background-color: rgba(200, 169, 81, 0.16);
    border-color: rgba(200, 169, 81, 0.45);
    color: #6b4c15;
}

.alert-danger {
    background-color: rgba(181, 18, 27, 0.08);
    border-color: rgba(181, 18, 27, 0.28);
    color: #7b0f14;
}

/* Buttons */
.btn-primary,
.btn-success {
    background: var(--wedding-red);
    border-color: var(--wedding-red);
}

.btn-primary:hover,
.btn-success:hover {
    background: var(--wedding-red-soft);
    border-color: var(--wedding-red-soft);
}

.btn-secondary,
.btn-info {
    background: #8f2b1c;
    border-color: #8f2b1c;
    color: #fff;
}

.btn-secondary:hover,
.btn-info:hover {
    background: #a93b2a;
    border-color: #a93b2a;
    color: #fff;
}

.btn-default {
    color: var(--wedding-ink);
    background-color: #fff2dd;
    border-color: #f1d7aa;
}

.btn-default:hover {
    color: var(--wedding-ink);
    background-color: #ffe7c2;
    border-color: #efcd8f;
}

/* Tables */
table.dataTable thead th {
    border-bottom: 2px solid rgba(181, 18, 27, 0.35);
    background: #fff3e1;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(200, 169, 81, 0.08);
}

.badge-primary,
.badge-success {
    background: var(--wedding-red);
}

.badge-secondary,
.badge-info {
    background: #8f2b1c;
}

.user-plans-table .plan-badge {
    color: #fff;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs>.btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}

.searchable-fields {
    padding-left: 5px;
}

.searchable-link {
    padding: 0 5px 0 5px;
}

.searchable-link:hover {
    cursor: pointer;
    background: #eaeaea;
}

.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid~.invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}

/* ──────────────────────────────────────────────────────────── */
/* Highlight visible columns in every ColVis dropdown menu    */
.btn .buttons-columnVisibility .active {
    background-color: #007bff !important;
    color: #fff !important;
}

/* Optional hover state to match */
.dt-button-collection .dropdown-item:hover,
.dt-button-collection li a:hover {
    background-color: rgba(0, 123, 255, 0.85) !important;
    color: #fff !important;
}
