/* ----------------------------------------------------
   LOVEBU Admin - Component Specific Styles
   ---------------------------------------------------- */


/* --- Dashboard Widgets --- */
.page-container {
    padding: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.stats-card {
    background-color: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid #EEEEEE;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* ふわっとした高品質な推移 */
}

/* リンク付きカードのみホバーを有効化 */
.stats-card.linkable:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--gold);
    cursor: pointer;
}

.stats-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background-color: #F8F8F8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stats-info h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #222222;
    line-height: 2.2rem;
}

.stats-info p {
    font-size: 0.8rem;
    color: #666666;
    font-weight: 500;
}

.stats-sub {
    font-size: 0.7rem;
    color: #A0A0A0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid #EEEEEE;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #222222;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-item {
    padding: 0;
    border-bottom: 1px solid #F8F8F8;
    transition: var(--transition);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-link {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0.5rem;
    width: 100%;
    color: inherit;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.activity-link:hover {
    background-color: #F8FAFC;
    transform: translateX(4px);
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333333;
}

.activity-info p {
    font-size: 0.75rem;
    color: #A0A0A0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: #FBFBFB;
    border: 1px dashed #E0E0E0;
    border-radius: var(--radius-md);
    color: #666666;
    width: 100%;
}

.action-btn:hover {
    background-color: rgba(182, 141, 56, 0.05);
    border-color: var(--gold);
    color: var(--gold);
}

.action-btn i {
    font-size: 1.25rem;
}

.action-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Detail Page Specific --- */
.header-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #F1F5F9;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:hover {
    background-color: var(--gold);
    color: white;
}

/* Profile Meta Grid */
.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-card {
    background-color: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #EEEEEE;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.meta-icon i {
    width: 18px;
    height: 18px;
}

.bg-blue {
    background-color: #3B82F6;
}

.bg-pink {
    background-color: #EC4899;
}

.bg-green {
    background-color: #10B981;
}

.bg-indigo {
    background-color: #6366F1;
}

.bg-gold {
    background-color: var(--gold);
}

.meta-content label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.meta-content strong {
    font-size: 0.9rem;
    color: #222222;
}

/* Detail Main Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.stats-mini-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.stats-mini-item {
    flex: 1;
    padding: 1rem;
    background-color: #F8F9FA;
    border-radius: var(--radius-md);
    text-align: center;
}

.stats-mini-item .label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stats-mini-item .value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222222;
}

/* KYC & Gallery */
.kyc-meta-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F1F5F9;
}

.kyc-meta-info label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.kyc-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.kyc-photo label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #444;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #F1F5F9;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #EEEEEE;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-wide {
    width: 100%;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    color: white;
}

/* Sidebars & Actions */
.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid #EEEEEE;
    border-radius: var(--radius-md);
    background-color: #FBFBFB;
    font-size: 0.9rem;
    resize: none;
}

.action-field {
    margin-bottom: 1.25rem;
}

.action-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-body);
}

.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-action {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    transition: var(--transition);
}

.outline-danger {
    border: 1px solid var(--danger);
    color: var(--danger);
}

.outline-danger:hover {
    background: var(--danger);
    color: white;
}

.outline-warning {
    border: 1px solid #F59E0B;
    color: #F59E0B;
}

.outline-warning:hover {
    background: #F59E0B;
    color: white;
}

.outline-success {
    border: 1px solid var(--success);
    color: var(--success);
}

.outline-success:hover {
    background: var(--success);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Forms & Filters --- */
.filter-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group.main-search {
    flex: 1;
    min-width: 300px;
}

.filter-group label {
    font-size: 0.9rem;
}

.form-input,
.form-select {
    width: 100%;
    height: 44px;
    padding: 0 0.6rem;
    border: 1px solid #EEEEEE;
    border-radius: var(--radius-md);
    background-color: #FBFBFB;
    font-size: 0.9rem;
    color: var(--text-body);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
}

textarea.form-input {
    height: 80px;
    min-height: 80px;
    resize: vertical;
    padding: 0.6rem;
    line-height: 1.5;
}

.search-btn {
    height: 44px;
    padding: 0 1.5rem;
    background-color: var(--gold);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- Data Table --- */
.no-padding {
    padding: 0 !important;
}

.overflow-hidden {
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    background-color: #F8F9FA;
    padding: 0.75rem 0.5rem;
    /* Reduced horizontal padding */
    white-space: nowrap;
    /* Prevent wrapping in headers */
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #EEEEEE;
}

.data-table td {
    padding: 1rem 0.5rem;
    /* Reduced horizontal padding */
    white-space: nowrap;
    /* Prevent wrapping for cleaner layout */
    border-bottom: 1px solid #F8F8F8;
    vertical-align: middle;
}

.data-table tr:hover {
    background-color: #FBFBFB;
}

/* --- Laravel table pagination (pagination::default) --- */
.pagination-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #eeeeee;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Info + pagination: stack and center (matches single-column pagination pages) */
.pagination-footer--split {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pagination-footer--split .pagination-controls {
    justify-content: center;
    width: 100%;
}

.pagination-footer--start {
    justify-content: flex-start;
}

.pagination-footer--no-border {
    border-top: none;
    margin-top: 1rem;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.pagination-nav .pagination,
.pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination > li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.pagination > li > a,
.pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
    background: #fff;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    line-height: 1;
}

.pagination > li > a:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: #fffbf0;
}

.pagination > li.active > span {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    cursor: default;
}

.pagination > li.disabled > span {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: default;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #F1F5F9;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-bold {
    font-weight: 700;
    color: #222222;
}

.user-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.text-mono {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
}

/* --- Badges --- */
/* Badge styles moved to common.css */


/* --- Table Actions & Custom Buttons --- */
.table-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-icon-label:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.btn-icon-label i[data-lucide],
.btn-icon-label svg {
    width: 13px !important;
    height: 13px !important;
}

/*
 * common.css sets `button { background: none; }`, which wins over class-only utilities
 * like `.pink` / `.dark` for background-color. Real <button class="btn-icon-label pink">
 * then keeps white text on a white table cell (looks “missing”). Re-apply fills here.
 */
button.btn-icon-label.dark {
    background-color: var(--text-dark);
    color: #fff;
}
button.btn-icon-label.pink {
    background-color: #f472b6;
    color: #fff;
}
button.btn-icon-label.red {
    background-color: var(--danger);
    color: #fff;
}
button.btn-icon-label.info {
    background-color: #3b82f6;
    color: #fff;
}

.btn-icon-only {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-icon-only:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn-delete {
    color: var(--danger);
    background: transparent;
}

.btn-icon-only i[data-lucide],
.btn-icon-only svg {
    width: 15px !important;
    height: 15px !important;
}

/* Cast Schedule Links */
.cast-schedule-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #16A34A;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.cast-schedule-link:hover {
    color: var(--success);
    opacity: 0.8;
}

.cast-schedule-link i {
    width: 14px;
    height: 14px;
}

.cast-schedule-link.none {
    color: #9CA3AF;
    font-weight: 500;
    cursor: default;
    pointer-events: none;
}


/* --- Favorites / Cast Card Layout --- */
.badge-pink-pill {
    background-color: #F9E8F0;
    color: #EC4899;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.cast-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid #EEEEEE;
    overflow: hidden;
    transition: var(--transition);
}

.cast-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.cast-photo-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}

.cast-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cast-card:hover .cast-photo-wrap img {
    transform: scale(1.05);
}

.cast-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    align-items: flex-end;
}

.cast-info {
    padding: 1rem;
}

.cast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cast-name {
    font-size: 1rem;
    font-weight: 800;
    color: #222222;
}

.cast-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success);
    background-color: rgba(35, 199, 149, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.btn-detail-sm {
    width: 100%;
    background-color: #F8F9FA;
    color: #64748B;
    border: 1px solid #E2E8F0;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-detail-sm:hover {
    background-color: var(--gold);
    color: white;
    border-color: var(--gold);
}

/* --- Staff Management & Modal --- */
.btn-add-main {
    background-color: var(--danger);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(235, 56, 97, 0.2);
    transition: var(--transition);
}

.btn-add-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(235, 56, 97, 0.3);
}

.search-flex {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.flex-1 {
    flex: 1;
}

/* Badge Types */
.badge-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-type.concierge {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.badge-type.cast-mgr {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.badge-type.admin-badge {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366F1;
}

.bg-blue-light {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.bg-indigo-light {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366F1;
}

.bg-green-light {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}


/* --- Cast Detail Specific --- */
.cast-detail-layout {
    display: grid;
    grid-template-columns: minmax(320px, 480px) 1fr;
    gap: 2rem;
    align-items: start;
}

.cast-visuals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-photo-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #F8F9FA;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #EEEEEE;
}

.main-photo-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.gallery-nav.prev {
    left: 1rem;
}

.gallery-nav.next {
    right: 1rem;
}

.thumbnail-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumb.active {
    border-color: var(--gold);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info List Card */
.info-card-header {
    background-color: #FBFBFB;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #222222;
    border-bottom: 1px solid #F1F5F9;
}

.info-list {
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #F8F8F8;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 140px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.info-label i {
    width: 14px;
    height: 14px;
    color: var(--success);
}

.info-value {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    text-align: right;
}

.badge-success-text {
    color: var(--success);
}

.btn-outline-red {
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-red:hover {
    background-color: var(--danger);
    color: white;
}

.btn-outline-red-sm {
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-outline-red-sm:hover {
    background-color: var(--danger);
    color: white;
}

.photo-placeholder-large {
    width: 100%;
    height: 100%;
    background-color: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1200px) {
    .cast-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Segmented Control (Filter Radios) --- */
.filter-toggle-group {
    display: inline-flex;
    background-color: #F1F5F9;
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
    height: 44px;
    align-items: stretch;
}

.filter-toggle-item {
    position: relative;
    display: flex;
}

.filter-toggle-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-toggle-item input[type="radio"]:checked+.filter-toggle-label {
    background-color: white;
    color: #EB3861;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-toggle-item:hover .filter-toggle-label:not(input:checked + .filter-toggle-label) {
    background-color: rgba(255, 255, 255, 0.5);
    color: #334155;
}

/* --- Filter Radios (Standard) --- */
.filter-radio-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-body);
    font-size: 1rem;
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.radio-item span {
    user-select: none;
}

/* --- Utility Classes for common patterns --- */
.chapter-switcher i {
    width: 14px;
    height: 14px;
}

.chapter-pin {
    color: var(--gold);
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-dot.warning {
    background-color: #F59E0B;
}

.activity-dot.info {
    background-color: #3B82F6;
}

.activity-dot.success {
    background-color: #23C795;
}

.activity-dot.danger {
    background-color: var(--danger);
}

.header-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.header-status-badge i {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.user-avatar-sm,
.user-avatar-md,
.user-avatar {
    background-color: #F1F5F9;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}




/* --- Settings Page Specific --- */
.settings-card {
    max-width: 800px;
    margin: 0 auto;
}

.settings-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: -12px;
    margin-bottom: 24px;
}

.card-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 0 -24px 24px;
}

.settings-form .form-group {
    margin-bottom: 24px;
}

.settings-form .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.settings-form .required {
    color: var(--danger);
}

.settings-form .form-input:disabled {
    background-color: var(--bg-neutral);
    cursor: not-allowed;
    color: var(--text-muted);
}

.settings-form .form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.settings-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    margin: 0 -24px;
    padding-right: 24px;
}

.btn-save {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    background-color: var(--danger);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save:hover {
    background-color: #B91C1C;
}

/* slightly darker red */
.btn-save i {
    width: 18px;
    height: 18px;
}

/* KYC Review Action Styles */
.kyc-review-card {
    background: #ffffff;
    margin-top: 1.5rem;
}

.kyc-review-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333333;
    font-size: 1.1rem;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.kyc-review-title i {
    color: #E11D48;
}

.kyc-action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-kyc-action {
    flex: 1;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-kyc-approve {
    border: 1px solid #16A34A;
    color: #16A34A;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.05);
}

.btn-kyc-approve:hover {
    background: #F0FDF4;
}

.btn-kyc-approve .icon-circle {
    background: #16A34A;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-kyc-reject {
    border: 1px solid #DC2626;
    color: #DC2626;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.05);
}

.btn-kyc-reject:hover {
    background: #FEF2F2;
}

.btn-kyc-reject .icon-circle {
    background: #DC2626;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-kyc-action span {
    font-weight: 700;
    font-size: 0.9rem;
}

.kyc-action-result {
    text-align: center;
    padding: 1rem 1rem;
    border: 1px dashed #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
}

.kyc-result-text {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-kyc-cancel {
    background: #ffffff;
    color: #6B7280;
    border: 1px solid #D1D5DB;
    border-radius: 99px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-kyc-cancel:hover {
    background: #F3F4F6;
}


/* Budget Wrap */
.info-block.full p {
    white-space: normal !important;
    line-height: 1.4;
    word-break: break-word;
}


/* Table Centering */
.data-table th.text-center,
.data-table td.text-center {
    text-align: center !important;
}

@media (max-width: 1200px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-brand,
    .nav-item span,
    .nav-section-title,
    .user-info,
    .logout-link span {
        display: none;
    }

    .sidebar-nav {
        padding: 1rem 0;
    }

    .sidebar-footer {
        padding: 1.5rem 0.5rem;
    }

    .user-profile {
        justify-content: center;
    }

    .logout-link {
        justify-content: center;
        padding: 0.8rem 0;
        gap: 0;
    }

    .nav-item a {
        justify-content: center;
        padding: 0.8rem;
    }

    .main-content {
        margin-left: 80px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px !important;
    }

    .sidebar-brand,
    .nav-section-title,
    .user-info,
    .logout-link span {
        display: block !important;
    }

    .nav-item a {
        display: flex !important;
        justify-content: flex-start !important;
        padding: 12px 20px !important;
        gap: 12px !important;
    }

    .nav-item a span:not(.nav-badge) {
        display: block !important;
    }

    /* Keep badges as flex for centering numbers */
    .nav-item a .nav-badge {
        display: flex !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .page-container {
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .cast-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .stats-info h3 {
        font-size: 1.4rem;
        line-height: 1.6rem;
    }
}

@media (max-width: 480px) {
    .cast-grid {
        grid-template-columns: 1fr !important;
    }
}