/* ══════════════════════════════════════════════════════════════════════════════
   KUNKWAN BRAND DESIGN SYSTEM
   Consistency across all pages - announcement pattern
══════════════════════════════════════════════════════════════════════════════ */

:root {
    --kk-red: #ED1C24;
    --kk-dark: #BF1E2D;
    --kk-coral: #F26C68;
    --kk-taupe: #D2B49C;
    --kk-rc: 20px;
    --kk-rb: 50px;
    --kk-rt: 6px;
}

/* ── Typography ── */
.kk-page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--kk-red);
    font-size: 1.2rem;
    margin-bottom: 0;
}

.kk-page-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ── Cards ── */
.kk-card {
    border: none;
    border-radius: var(--kk-rc);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.kk-card-header {
    background: linear-gradient(135deg, var(--kk-red), var(--kk-dark));
    color: #fff;
    padding: 0.85rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
}

/* ── Buttons ── */
.btn-kk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--kk-red);
    color: #fff !important;
    border: none;
    border-radius: var(--kk-rb);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.48rem 1.4rem;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.btn-kk:hover {
    background: var(--kk-dark);
}

.btn-kk-out {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--kk-red) !important;
    border: 1.5px solid var(--kk-red);
    border-radius: var(--kk-rb);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.44rem 1.2rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-kk-out:hover {
    background: var(--kk-red);
    color: #fff !important;
}

.btn-kk-edit {
    background: #fff8e1;
    color: #b45309 !important;
    border: 1.5px solid #f59e0b;
    border-radius: var(--kk-rb);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.28rem 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s;
    cursor: pointer;
}

.btn-kk-edit:hover {
    background: #f59e0b;
    color: #fff !important;
}

.btn-kk-del {
    background: #fff0f0;
    color: var(--kk-red) !important;
    border: 1.5px solid var(--kk-coral);
    border-radius: var(--kk-rb);
    font-size: 0.75rem;
    padding: 0.28rem 0.65rem;
    transition: all 0.18s;
    cursor: pointer;
}

.btn-kk-del:hover {
    background: var(--kk-red);
    color: #fff !important;
    border-color: var(--kk-red);
}

/* ── Tables ── */
.kk-table thead th {
    background: #fafafa;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    border-bottom: 2px solid #f0f0f0;
    padding: 0.65rem 1rem;
}

.kk-table td {
    padding: 0.65rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.82rem;
}

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

.kk-table tbody tr:hover {
    background: #fff9f9;
}

/* ── Badges ── */
.kk-badge {
    display: inline-block;
    background: #fff0f0;
    color: var(--kk-red);
    border-radius: var(--kk-rt);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kk-badge-gray {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: var(--kk-rt);
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
}

/* ── Form Elements ── */
.kk-form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.3rem;
    display: block;
}

.kk-form-label .req {
    color: var(--kk-red);
}

.form-control, .form-select {
    border-radius: var(--kk-rt) !important;
    font-size: 0.83rem;
    border-color: #e5e7eb;
}

.form-control:focus, .form-select:focus {
    border-color: var(--kk-coral);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

/* ── Filter Bar ── */
.kk-filter-bar .form-control,
.kk-filter-bar .form-select {
    font-size: 0.8rem;
    border-radius: var(--kk-rb) !important;
}

/* ── Empty State ── */
.kk-empty {
    padding: 2.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

.kk-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--kk-taupe);
}

/* ── Modal ── */
.kk-modal .modal-content {
    border: none;
    border-radius: var(--kk-rc);
    overflow: hidden;
}

.kk-modal .modal-header {
    background: linear-gradient(135deg, var(--kk-red), var(--kk-dark));
    color: #fff;
    padding: 0.9rem 1.4rem;
    border: none;
}

.kk-modal .modal-header .btn-close {
    filter: invert(1) brightness(2);
}

.kk-modal .modal-body {
    padding: 1.4rem;
    max-height: 72vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--kk-taupe) transparent;
}

.kk-modal .modal-body::-webkit-scrollbar {
    width: 4px;
}

.kk-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--kk-taupe);
    border-radius: 4px;
}

/* ── Collapse Menu Styling (Non-Sidebar) ── */
.collapse:not(.adminuiux-sidebar .collapse) {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0.375rem;
}

.collapse:not(.adminuiux-sidebar .collapse).show {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Chevron icon alignment (Non-Sidebar) */
.nav-link[data-bs-toggle="collapse"]:not(.adminuiux-sidebar .nav-link) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-link[data-bs-toggle="collapse"]:not(.adminuiux-sidebar .nav-link) .bi-chevron-down,
.nav-link[data-bs-toggle="collapse"]:not(.adminuiux-sidebar .nav-link) .ms-auto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.nav-link[aria-expanded="true"]:not(.adminuiux-sidebar .nav-link) .bi-chevron-down {
    transform: rotate(-180deg);
}

.kk-modal .modal-body::-webkit-scrollbar {
    width: 4px;
}

.kk-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--kk-taupe);
    border-radius: 4px;
}

.kk-modal .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 0.8rem 1.4rem;
}

/* ── Page Header ── */
.kk-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Utility ── */
.kk-icon-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kk-text-muted {
    color: #6c757d;
    font-size: 0.85rem;
}

/* ── Sidebar Collapse Submenu Text Color ── */
.adminuiux-sidebar .collapse .nav-link {
    color: #1f2937 !important;
}

.adminuiux-sidebar .collapse .nav-link:hover {
    color: #111827 !important;
}
