/*!
 * Bootstrap v5.3.3 (Local Build - Complete Grid, Utilities, Forms, Switches, Badges, Alerts, Tables, Buttons & Modals)
 * Zero CDN dependency.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { vertical-align: middle; max-width: 100%; height: auto; }
svg { vertical-align: middle; }
a { text-decoration: none; color: inherit; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; }
button { cursor: pointer; }

.container, .container-fluid {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}
.g-2, .gy-2 { row-gap: 0.5rem; }
.g-3, .gy-3 { row-gap: 1rem; }
.g-4, .gy-4 { row-gap: 1.5rem; }

.col { flex: 1 0 0%; }
.col-12 { flex: 0 0 auto; width: 100%; }
.col-6 { flex: 0 0 auto; width: 50%; }
@media (min-width: 576px) {
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
    .d-sm-inline { display: inline !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}
@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
    .my-md-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
    .p-md-5 { padding: 3rem !important; }
}
@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
}

/* Display & Flex */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-stretch { align-items: stretch !important; }
.align-middle { vertical-align: middle !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Sizing & Position */
.min-vh-100 { min-height: 100vh !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.overflow-hidden { overflow: hidden !important; }
.img-fluid { max-width: 100%; height: auto; }
.cursor-pointer { cursor: pointer !important; }

/* Typography & Colors */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-white { color: #FFFFFF !important; }
.text-dark { color: #2B1A1E !important; }
.text-muted { color: #735F64 !important; }
.text-danger { color: #8A1C24 !important; }
.text-success { color: #1E5128 !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-none { text-decoration: none !important; }
.text-decoration-underline { text-decoration: underline !important; }
.font-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }
.small, small { font-size: 0.85em !important; }

/* Backgrounds & Borders */
.bg-white { background-color: #FFFFFF !important; }
.bg-light { background-color: #FDF8F8 !important; }
.border { border: 1px solid #F0E1E4 !important; }
.border-0 { border: 0 !important; }
.border-2 { border-width: 2px !important; }
.border-white { border-color: #FFFFFF !important; }
.border-top { border-top: 1px solid #F0E1E4 !important; }
.border-bottom { border-bottom: 1px solid #F0E1E4 !important; }
.border-start-0 { border-left: 0 !important; }
.border-end-0 { border-right: 0 !important; }
.border-dark-subtle { border-color: rgba(234, 210, 215, 0.18) !important; }
.border-light-subtle { border-color: #F0E1E4 !important; }

/* Border Radius & Shadows */
.rounded { border-radius: 0.375rem !important; }
.rounded-3 { border-radius: 0.5rem !important; }
.rounded-4 { border-radius: 1rem !important; }
.rounded-start-3 { border-top-left-radius: 0.5rem !important; border-bottom-left-radius: 0.5rem !important; }
.rounded-end-3 { border-top-right-radius: 0.5rem !important; border-bottom-right-radius: 0.5rem !important; }
.rounded-pill { border-radius: 9999px !important; }
.rounded-circle { border-radius: 50% !important; }
.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important; }
.shadow { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important; }
.shadow-lg { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32) !important; }

/* Spacing */
.m-0 { margin: 0 !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.mt-auto { margin-top: auto !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.pe-4 { padding-right: 1.5rem !important; }

/* Cards & Badges */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #FFFFFF;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
}
.badge {
    display: inline-block;
    padding: 0.38em 0.75em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

/* Alerts */
.alert {
    position: relative;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
}
.alert-dismissible { padding-right: 3rem; }
.alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
}

/* Forms & Switches */
.form-label { display: inline-block; margin-bottom: 0.375rem; }
.form-text { margin-top: 0.25rem; font-size: 0.8em; color: #735F64; }
.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #2B1A1E;
    background-color: #FFFFFF;
    border: 1px solid #DFCCD1;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus, .form-select:focus {
    border-color: #540C1A;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(234, 210, 215, 0.5);
}
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}
.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}
.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    color: #540C1A;
    text-align: center;
    white-space: nowrap;
    background-color: #FDF8F8;
    border: 1px solid #DFCCD1;
    border-radius: 0.5rem;
}
.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}
.form-check .form-check-input {
    float: left;
    margin-left: -1.5em;
}
.form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.2em;
    vertical-align: top;
    background-color: #fff;
    border: 1px solid #C4B5B8;
    border-radius: 0.25em;
    cursor: pointer;
}
.form-switch { padding-left: 2.5em; }
.form-switch .form-check-input {
    width: 2.1em;
    height: 1.15em;
    margin-left: -2.5em;
    border-radius: 2em;
    accent-color: #540C1A;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    transition: all 0.15s ease-in-out;
}
.btn-sm, .btn-group-sm > .btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.8125rem;
}
.btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}
.btn-outline-secondary {
    color: #543D42;
    border-color: #D2C2C6;
    background-color: transparent;
}
.btn-outline-secondary:hover {
    color: #2B1A1E;
    background-color: #F6EEF0;
    border-color: #C4B5B8;
}
.btn-outline-danger {
    color: #8A1C24;
    border-color: #F4A6AC;
    background-color: transparent;
}
.btn-outline-danger:hover {
    color: #FFFFFF;
    background-color: #8A1C24;
    border-color: #8A1C24;
}
.btn-danger {
    color: #FFFFFF;
    background-color: #8A1C24;
    border-color: #8A1C24;
}
.btn-danger:hover {
    color: #FFFFFF;
    background-color: #6E151C;
    border-color: #6E151C;
}
.btn-close {
    box-sizing: content-box;
    width: 1.25em;
    height: 1.25em;
    padding: 0.25em;
    color: #2B1A1E;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232B1A1E'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/0.85em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.6;
}
.btn-close:hover { opacity: 1; }

/* Tables */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; margin-bottom: 1rem; vertical-align: middle; border-collapse: collapse; }
.table th, .table td { padding: 0.875rem 0.75rem; border-bottom: 1px solid #F0E1E4; text-align: left; }
.table-hover tbody tr:hover { background-color: #FDF8F8; }

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(35, 4, 10, 0.72);
    backdrop-filter: blur(4px);
}
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-dialog { position: relative; width: 100%; max-width: 520px; margin: 1.75rem auto; padding: 0 16px; }
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: #2B1A1E;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
}
.modal-title { margin-bottom: 0; line-height: 1.4; }
.modal-body { position: relative; flex: 1 1 auto; }
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}
