﻿/* style.css - Consolidated Admin Dashboard Styles */

/* 1. Root Variables */
:root {
    --sidebar-width: 200px;
    --sidebar-mini-width: 75px;
    --top-nav-height: 70px;
    --primary-accent: #6366f1;
    --bg-sidebar: #111827;
    --bg-main: #0b0f19;
    --bg-top: rgba(17, 24, 39, 0.98);
    --bg-popover: #1f2937;
    --text-main: #e5e7eb;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-muted: #94a3b8;

    /* From login specific */
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);

    /* From memb1_1 specific */
    --bg-table-header: #8a91a1;
    --border-color: #e2e8f0;
}

.is-light-mode {
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-muted: #64748b;
}

/* 2. Global Defaults & Utilities */
body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
}

.adaptive-text {
    color: var(--text-main);
}

.adaptive-muted {
    color: var(--text-muted);
}

.x-small {
    font-size: 0.75rem !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Animation Utilities */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin-1-2s {
    display: inline-block;
    animation: spin 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 3. Layout Components (Sidebar, TopNav) */
#wrapper {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

#sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
}

body.sidebar-mini #sidebar {
    width: var(--sidebar-mini-width);
}

#content-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    /* Critical for flex child responsiveness */
}

body.sidebar-mini #content-wrapper {
    margin-left: var(--sidebar-mini-width);
}

/* Auto-collapse sidebar on smaller desktops/tablets */
@media (max-width: 1200px) {
    #sidebar {
        width: var(--sidebar-mini-width);
    }

    #content-wrapper {
        margin-left: var(--sidebar-mini-width);
    }

    .nav-section-title,
    .brand-name,
    .nav-link span,
    .chevron {
        display: none;
    }

    .nav-link {
        justify-content: center;
        padding: 1rem 0;
    }

    .nav-link i {
        margin: 0;
        font-size: 1.5rem;
    }

    .sidebar-brand {
        justify-content: center;
        padding: 0;
    }

    #mini-logo {
        display: block !important;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }

    body.sidebar-mobile-open #sidebar {
        transform: translateX(0);
    }

    #content-wrapper {
        margin-left: 0 !important;
    }

    .top-navbar {
        padding: 0 1rem;
    }

    .top-menu-container {
        display: none;
    }

    /* Show only icons or a mobile menu if needed */
}

.top-navbar {
    height: var(--top-nav-height);
    background: var(--bg-top);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    transition: padding 0.3s;
}

.top-menu-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-grow: 1;
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-overflow-scrolling: touch;
}

.top-nav-item {
    padding: 0.6rem 1.1rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #D6E5FC;
    text-decoration: none;
    border-radius: 12px;
    white-space: nowrap;
    transition: 0.2s;
    border: 1px solid transparent;
}

@media (max-width: 1400px) {
    .top-nav-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

.top-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.top-nav-item.active {
    background: var(--primary-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.top-right-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-search {
    position: relative;
    width: 220px;
    display: none;
}

@media (min-width: 992px) {
    .nav-search {
        display: block;
    }
}

.nav-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

select {height:42px;}

.nav-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0.5rem 0.5rem 2.2rem;
    color: #fff;
    font-size: 0.85rem;
    transition: 0.2s;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.08);
}

.nav-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
    position: relative;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--bg-top);
}

.top-user-profile {
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.user-meta {
    text-align: right;
    line-height: 1.2;
}

.user-name {
    display: block;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}

.user-status {
    font-size: 0.65rem;
    color: #10b981;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.sidebar-brand {
    padding: 1.5rem;
    height: var(--top-nav-height);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-box {
    width: 32px;
    height: 32px;
    background: var(--primary-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-weight: 900;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav-section-title {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-group {
    display: none;
}

.sidebar-group.active {
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #D6E5FC;
    text-decoration: none;
    transition: 0.2s;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.nav-link i {
    font-size: 1.25rem;
    width: 20px;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.1);
    font-weight: 700;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-accent);
}

.chevron {
    margin-left: auto;
    font-size: 1rem !important;
    transition: transform 0.3s;
}

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

.sub-menu-list {
    background: rgba(0, 0, 0, 0.1);
}

.sub-link {
    padding: 0.6rem 1.5rem 0.6rem 3.5rem;
    font-size: 0.85rem;
    color: #B8C6D9;
}

.sub-link:hover {
    color: #fff;
}

.sub-link.active {
    color: var(--primary-accent);
    font-weight: 800;
    background: transparent;
}

body.sidebar-mini .nav-section-title,
body.sidebar-mini .brand-name,
body.sidebar-mini .nav-link span,
body.sidebar-mini .chevron {
    display: none;
}

body.sidebar-mini .nav-link {
    justify-content: center;
    padding: 1rem 0;
    /*font-size: 0;*/
}

body.sidebar-mini .nav-link i {
    margin: 0;
    font-size: 1.5rem;
}

body.sidebar-mini .sidebar-brand {
    justify-content: center;
    padding: 0;
}

body.sidebar-mini .sub-menu-list {
    display: none !important;
}

#mini-popover {
    position: fixed;
    background: var(--bg-popover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    width: 200px;
    display: none;
}

.popover-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
}

.popover-body {
    padding: 0.5rem 0;
}

.popover-body .sub-link {
    padding: 0.5rem 1rem;
    display: block;
    color: #D6E5FC;
    text-decoration: none;
    font-size: 0.85rem;
}

.popover-body .sub-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* 4. Common Content Styles (Cards, Tables) */
main {
    padding: 0;
    transition: padding 0.3s;
}

@media (max-width: 992px) {
    main {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    main {
        padding: 1rem;
    }
}

#app-content {
    animation: fadeIn 0.4s ease-out;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.is-light-mode .content-card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: block;
}

.stat-info h4 {
    margin: 0;
    font-weight: 800;
    /*color: #1e293b;*/
}

.search-panel,
.list-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-panel:hover,
.list-card:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.panel-header {
    background: #fafafa;
    border-radius: 12px 12px 0 0;
}

.member-table thead th {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #64748b;
    padding: 0.5rem;
    background: #f8fafc;
    background: var(--bg-sidebar, #111827) !important;
    color: var(--text-muted, #94a3b8) !important;
    border-bottom: 2px solid rgba(255,255,255,0.1) !important;
}

.member-table tbody td {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    color: var(--text-main, #e5e7eb);
    font-size: 0.85rem;
}

.selected-row {
    background-color: rgba(99, 102, 241, 0.08) !important;
    border-left: 4px solid #6366f1 !important;
}

.member-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.detail-card {
    background: var(--bg-popover, #fff);
    border-radius: 8px;
    border: 1px solid var(--card-border, #ddd);
    width: 100%;
    overflow: hidden;
}

.detail-table-header {
    background-color: var(--bg-table-header);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.detail-table-header th {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-table-body td {
    background: var(--bg-popover, #fff);
    border: 1px solid var(--card-border, #eee);
    padding: 15px;
    vertical-align: top;
    font-size: 0.8rem;
    line-height: 1.6;
}

.edit-form-table-wrapper,
.purchase-form-table-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.edit-modal-table th,
.purchase-modal-table th {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 0.75rem;
}

.edit-modal-table td,
.purchase-modal-table td {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    vertical-align: middle;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

/* 5. Color Variants (Soft Badges) */
.bg-primary-soft,
.bg-10-soft,
.bg-15-soft {
    background: rgba(99, 102, 241, 0.2);
}

.bg-success-soft,
.bg-11-soft {
    background: rgba(34, 197, 94, 0.2);
}

.bg-info-soft,
.bg-12-soft {
    background: rgba(18, 203, 241, 0.2);
}

.bg-warning-soft,
.bg-16-soft {
    background: rgba(234, 179, 8, 0.2);
}

.bg-danger-soft,
.bg-17-soft,
.bg-18-soft {
    background: rgba(239, 68, 68, 0.2);
}

.bg-secondary-soft, .bg-00-soft {
    background: rgba(100, 116, 139, 0.2);
}

.bg-indigo-soft,
.bg-14-soft {
    background: rgba(102, 31, 201, 0.2);
}

.bg-orange-soft,
.bg-13-soft {
    background: rgba(253, 126, 20, 0.2);
}

.bg-light-soft {
    background: rgba(253, 255, 255, 0.2);
}


/* 6. Dark Mode Overrides */
.is-dark-mode body {
    background-color: var(--bg-main);
    color: var(--text-main);
}

.is-dark-mode .stat-card,
.is-dark-mode .search-panel,
.is-dark-mode .list-card,
.is-dark-mode .detail-card,
.is-dark-mode .theme-card,
.is-dark-mode .modal-content {
    background: var(--bg-popover, #1f2937) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-main, #fff) !important;
}

.is-dark-mode .panel-header {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
}

/*.is-dark-mode .member-table thead th { background: var(--bg-sidebar) !important; color: var(--text-muted) !important; border-bottom-color: rgba(255,255,255,0.1) !important; }*/
.is-dark-mode .table2 thead th {
    background: rgba(255, 255, 255, 0.01) !important;
    color: #000 !important;
}

.is-dark-mode thead th {
    background: var(--bg-sidebar) !important;
    color: var(--text-muted) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.is-dark-mode .member-table tbody td {
    color: var(--text-main);
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.is-dark-mode .detail-table-body td {
    background: var(--bg-popover) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.is-dark-mode .edit-form-table-wrapper,
.is-dark-mode .purchase-form-table-wrapper {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.is-dark-mode .edit-modal-table th,
.is-dark-mode .purchase-modal-table th {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.is-dark-mode .edit-modal-table td,
.is-dark-mode .purchase-modal-table td {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 7. Theme System Footer & Pagination */
.is-dark-mode .panel-footer,
.is-dark-mode .theme-card-header.border-top {
    background: var(--bg-sidebar, rgba(255, 255, 255, 0.02)) !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-main) !important;
}

.is-dark-mode .pagination .page-link {
    background: var(--bg-popover, #1f2937) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-main, #fff) !important;
}

.is-dark-mode .pagination .page-item.active .page-link,
.is-dark-mode .pagination .page-item .page-link.active {
    background: var(--primary-accent, #6366f1) !important;
    border-color: var(--primary-accent, #6366f1) !important;
}

.is-dark-mode .pagination .page-item.disabled .page-link {
    background: rgba(0, 0, 0, 0.2) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.is-dark-mode .form-control,
.is-dark-mode .form-select {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

/* 7. Login Page Specific */
.login-body {
    background: var(--bg-gradient) !important;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    position: relative;
    margin: 0;
}

.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.1);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    animation: float 20s infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(-30%, -30%) scale(1);
    }

    100% {
        transform: translate(30%, 30%) scale(1.1);
    }
}

.login-card {
    width: 420px;
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.brand-logo {
    width: 70px;
    height: 70px;
    background: var(--primary-accent);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.btn-login {
    background: var(--primary-accent);
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 1.5rem;
}

.btn-login:hover {
    background: #4f46e5;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-login:active {
    transform: scale(0.98);
}

.footer-link {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

.security-badge {
    font-size: 10px;
    font-weight: 800;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    margin-top: 2rem;
    opacity: 0.6;
}

/* 8. Common Elements */
.form-label {
    font-weight: 800;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group-text {
    background: rgba(255, 255, 255, 0.7);
    border-right: none;
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 40px;
    font-size: 12px;
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-accent);
    box-shadow: none;
    color: #fff;
}

/* 9. Animations */
.anim-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInGlobal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Memo Indicator (Triangle in Corner) */
.memo-cell {
    position: relative !important;
    overflow: hidden;
    cursor: help;
}

.memo-marker {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 12px 0;
    border-color: transparent #ff0000 transparent transparent;
    z-index: 1;
}

/* Classic White Tooltip */
.tooltip {
    z-index: 2000 !important;
}
.custom-view-tooltip .tooltip-inner {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: left;
    white-space: pre-line;
}

.custom-view-tooltip .tooltip-arrow::before {
    border-top-color: #d1d5db !important;
}

.custom-view-tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #ffffff !important;
}

.custom-view-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #ffffff !important;
}

.wid-2 {
    width: 2%
}

.wid-3 {
    width: 3%
}

.wid-5 {
    width: 5%
}

.wid-10 {
    width: 10%
}

.wid-15 {
    width: 15%
}
.wid-20 {
    width: 20%
}
.wid-25 {
    width: 25%
}

.wid-5p {
    width: 5px
}

.wid-10p {
    width: 10px
}

.wid-15p {
    width: 15px
}

.wid-20p {
    width: 20px
}

.wid-30p {
    width: 30px
}
.wid-40p {
    width: 40px
}
.wid-50p {
    width: 50px
}

.mini-table {
    white-space: nowrap;
}

.mini-table th {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
}

.mini-table td {
    padding: 5px 10px;
}

.bg-cool {
    background: #3f4e72
}

.fs-16 {
    font-size: 16px!important
}

.fs-14 {
    font-size: 14px!important
}
.fs-12 {
    font-size: 12px!important
}
/* 10. Premium Configuration & Form Styles */
.theme-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.is-dark-mode .theme-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.theme-text-heading {
    letter-spacing: -0.5px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-accent) !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.1) !important;
    /* Default primary-accent-rgb equivalent */
}

/* Simplified Premium Progress Gauge */
.p-gauge-container {
    position: relative;
    padding-bottom: 20px;
    margin-top: 5px;
}

.p-gauge-bar {
    position: relative;
    height: 10px;
    background: #fff;
    /* Total possible section (White) */
    border: 1px solid #c1c1c1;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Grey Area (Max Reachable) */
.p-gauge-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--target-w, 40%);
    background: #e0e0e0;
    border-radius: 4px 0 0 4px;
}

/* Green Area (Current Progress) */
.p-gauge-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress-w, 0%);
    background: linear-gradient(to bottom, #5cb85c, #4cae4c);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: width 0.8s ease;
    z-index: 2;
}

/* Ticks using CSS Gradient */
.p-gauge-ticks {
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 16px;
    background: linear-gradient(to right, #888 1px, transparent 1px) 0 0 / 20% 6px repeat-x;
    pointer-events: none;
    z-index: 3;
}

.p-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #aaa;
    margin-top: 0px;
    font-weight: 500;
}


/* Horizontal Scroll Support */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Premium Scrollbar Styling */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-accent, #6366f1);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

.is-dark-mode .table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.has-value-border {
    border: 2px solid #4dabf7 !important; /* 파란색 계열 강조 테두리 */
    box-shadow: 0 0 5px rgba(77, 171, 247, 0.4); /* 은은한 빛 번짐 효과 (선택) */
}