/* ============================================================
   Client Portal Design System — NovanetCS
   Blue accent + Gradient Mesh + CLAUDE.md §7 rules
   Fonts: Syne (heading) + DM Sans (body)
   ============================================================ */

/* ── 1. Design Tokens ── */
:root {
    /* Brand / Accent — blue palette */
    --accent-50:  #EFF6FF;
    --accent-100: #DBEAFE;
    --accent-200: #BFDBFE;
    --accent-300: #93C5FD;
    --accent-400: #60A5FA;
    --accent-500: #3B82F6;
    --accent-600: #2563EB;
    --accent-700: #1D4ED8;
    --accent-800: #1E40AF;
    --accent-900: #1E3A8A;

    /* Surface / Neutrals */
    --color-bg:       #FFFFFF;
    --color-surface:  #FAFAFA;
    --color-fg:       #09090B;
    --color-muted:    #71717A;
    --color-border:   rgba(0, 0, 0, 0.07);

    /* Semantic */
    --color-success:  #00A63D;
    --color-warning:  #FE9900;
    --color-danger:   #FF2157;
    --color-info:     #3B82F6;

    /* Shadows */
    --shadow-card:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-card-hover:
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    --glow-accent:
        0 0 40px color-mix(in srgb, var(--accent-500) 25%, transparent),
        0 0 80px color-mix(in srgb, var(--accent-500) 10%, transparent);

    /* Gradient Mesh */
    --gradient-mesh:
        radial-gradient(at 20% 50%, rgba(219,234,254,0.8) 0%, transparent 50%),
        radial-gradient(at 80% 20%, rgba(237,233,254,0.8) 0%, transparent 50%),
        #ffffff;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   linear(0, 0.009, 0.035, 0.425, 1.013, 0.979, 1.003, 0.999, 1);
    --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Radius — 4px base */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    /* Spacing */
    --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;
    --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
    --sp-8: 32px;  --sp-10: 40px; --sp-12: 48px;
    --sp-16: 64px;

    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    /* Fluid Typography */
    --fs-hero:    clamp(48px, 7vw, 96px);
    --fs-h1:      clamp(36px, 5vw, 64px);
    --fs-h2:      clamp(28px, 3.5vw, 48px);
    --fs-h3:      clamp(20px, 2.5vw, 32px);
    --fs-body:    clamp(15px, 1.2vw, 17px);
    --fs-caption: clamp(12px, 1vw, 14px);

    /* Navbar */
    --navbar-height: 64px;
}


/* ── 2. Global Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-fg);
    background: var(--gradient-mesh);
    background-attachment: fixed;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100svh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-feature-settings: 'ss01', 'cv01', 'liga', 'kern';
    font-optical-sizing: auto;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-fg);
}

a {
    text-decoration: none;
    color: inherit;
}


/* ── 3. Noise Overlay ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}


/* ── 4. Navbar ── */
.client-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.client-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sp-6);
}

.navbar-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
    transition: all 200ms var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--accent-600);
    background: var(--accent-50);
}

.nav-link.active {
    color: var(--accent-600);
    background: var(--accent-50);
    font-weight: 600;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
    transition: all 200ms;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--accent-600);
    background: var(--accent-50);
}


/* ── 5. Main Content ── */
.client-main {
    padding-top: var(--sp-8);
    padding-bottom: var(--sp-16);
    min-height: calc(100svh - var(--navbar-height));
}

.client-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
}


/* ── 6. Cards ── */
.client-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    padding: var(--sp-6);
    transition: transform 400ms var(--ease-out-expo), box-shadow 400ms var(--ease-out-expo);
}

.client-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.client-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-6);
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.client-card-header h2,
.client-card-header h3 {
    font-size: var(--fs-h3);
    margin: 0;
}


/* ── 7. KPI Cards ── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
}

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

.kpi-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    padding: var(--sp-6);
    text-align: center;
    transition: transform 400ms var(--ease-out-expo), box-shadow 400ms var(--ease-out-expo);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.kpi-label {
    font-size: var(--fs-caption);
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-3);
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--color-fg);
}

.kpi-unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
    margin-left: 2px;
}


/* ── 8. Gauge ── */
.gauge-container {
    position: relative;
    width: 120px;
    height: 60px;
    margin: var(--sp-4) auto var(--sp-2);
    overflow: hidden;
}

.gauge-bg,
.gauge-fill {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 10px solid transparent;
}

.gauge-bg {
    border-top-color: #E5E7EB;
    border-left-color: #E5E7EB;
    border-right-color: #E5E7EB;
    transform: rotate(-90deg);
    top: 0;
    left: 0;
}

.gauge-fill {
    border-top-color: var(--accent-500);
    border-left-color: var(--accent-500);
    border-right-color: var(--accent-500);
    transform: rotate(-90deg);
    top: 0;
    left: 0;
    clip-path: inset(0 0 0 0);
    transition: transform 1s var(--ease-out-expo);
}

.gauge-svg {
    width: 140px;
    height: 80px;
    margin: var(--sp-3) auto var(--sp-1);
}

.gauge-track {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 10;
    stroke-linecap: round;
}

.gauge-bar {
    fill: none;
    stroke: var(--accent-500);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s var(--ease-out-expo);
}

.gauge-bar.warning { stroke: var(--color-warning); }
.gauge-bar.danger  { stroke: var(--color-danger); }
.gauge-bar.success { stroke: var(--color-success); }

.gauge-text {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    fill: var(--color-fg);
}


/* ── 9. Badges ── */
.inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    white-space: nowrap;
}


/* ── 10. Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 200ms var(--ease-out-expo);
    text-decoration: none;
    line-height: 1.4;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-600);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--accent-600);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--accent-500);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-muted);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    color: var(--color-fg);
    border-color: rgba(0, 0, 0, 0.15);
    background: var(--color-surface);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

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

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
}


/* ── 11. Form Controls ── */
.form-group {
    margin-bottom: var(--sp-5);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-fg);
    margin-bottom: var(--sp-2);
    letter-spacing: 0.01em;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-fg);
    background: #fff;
    transition: border-color 200ms, box-shadow 200ms;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #A1A1AA;
}

.form-control.is-invalid {
    border-color: var(--color-danger);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-error {
    font-size: 12px;
    color: var(--color-danger);
    margin-top: var(--sp-1);
}


/* ── 12. DataTable Overrides ── */
.dataTables_wrapper {
    font-family: var(--font-body);
    font-size: 14px;
}

.dataTables_wrapper .dataTables_length {
    float: left;
    margin-bottom: var(--sp-4);
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 28px 6px 10px;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2371717A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    text-align: right;
    margin-bottom: var(--sp-4);
}

.dataTables_wrapper table.dataTable {
    clear: both;
}

.dataTables_wrapper::after {
    content: '';
    display: block;
    clear: both;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 8px 14px 8px 36px;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: 13px;
    outline: none;
    transition: border-color 200ms, box-shadow 200ms;
    background: #fff url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8' stroke='%23A1A1AA' stroke-width='2'/%3E%3Cpath d='M21 21L16.65 16.65' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 12px center;
    min-width: 220px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dataTables_wrapper .dataTables_filter label {
    font-size: 0;
}

.dataTables_wrapper .dataTables_filter label input {
    font-size: 13px;
}

table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
    width: 100% !important;
}

table.dataTable thead th {
    background: var(--color-surface);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

table.dataTable thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

table.dataTable thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

table.dataTable tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
    vertical-align: middle;
}

table.dataTable tbody tr:hover {
    background: rgba(59, 130, 246, 0.03);
}

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

.dataTables_wrapper .dataTables_paginate {
    float: right;
    margin-top: var(--sp-4);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-muted) !important;
    border: none !important;
    background: transparent !important;
    transition: all 200ms;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--accent-50) !important;
    color: var(--accent-600) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--accent-600) !important;
    color: #fff !important;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.35;
    cursor: default;
}

.dataTables_wrapper .dataTables_info {
    float: left;
    font-size: 13px;
    color: var(--color-muted);
    margin-top: var(--sp-4);
}

/* 빈 상태 셀 */
table.dataTable td.dataTables_empty {
    padding: var(--sp-12) var(--sp-4) !important;
    text-align: center;
    border-bottom: none;
}

div.dataTables_processing {
    display: none !important;
}


/* ── 13. Welcome Banner ── */
.welcome-banner {
    background: linear-gradient(135deg, var(--accent-600), var(--accent-800));
    border-radius: var(--radius-xl);
    padding: var(--sp-8) var(--sp-8);
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--sp-8);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-banner h1 {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 var(--sp-2);
}

.welcome-subtitle {
    opacity: 0.8;
    font-size: 15px;
}

.welcome-meta {
    display: flex;
    gap: var(--sp-6);
    margin-top: var(--sp-4);
    flex-wrap: wrap;
}

.welcome-meta-item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 13px;
    opacity: 0.85;
}


/* ── 14. Chart Container ── */
.chart-container {
    position: relative;
    width: 100%;
    max-height: 320px;
}


/* ── 15. Comment Section ── */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    display: flex;
    gap: var(--sp-3);
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--color-border);
}

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

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-100);
    color: var(--accent-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-avatar.admin {
    background: #FEF3C7;
    color: #D97706;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-1);
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-fg);
}

.comment-time {
    font-size: 12px;
    color: var(--color-muted);
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
}


/* ── 16. Detail Grid ── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--sp-4);
}

.detail-item {
    padding: var(--sp-3) 0;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-1);
}

.detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-fg);
}


/* ── 17. Login Page ── */
.login-page {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-6);
    background: var(--gradient-mesh);
    position: relative;
    overflow: hidden;
}

.login-orb-1 {
    position: absolute;
    top: 10%;
    left: -5%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: orb-float 8s ease-in-out infinite alternate;
}

.login-orb-2 {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: orb-float 10s ease-in-out infinite alternate-reverse;
}

@keyframes orb-float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.05); }
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-xl);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: var(--sp-10);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto var(--sp-6);
    box-shadow: var(--glow-accent);
}

.login-title {
    text-align: center;
    font-size: clamp(22px, 3vw, 28px);
    margin: 0 0 var(--sp-1);
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--color-muted);
    margin: 0 0 var(--sp-8);
}


/* ── 18. Summary Table ── */
.summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.summary-table thead th {
    background: var(--color-surface);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.summary-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--color-border);
}

.summary-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.03);
}

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

.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-muted { color: var(--color-muted); }
.font-semibold { font-weight: 600; }


/* ── 19. Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}


/* ── 20. Focus Ring (Accessibility) ── */
:focus-visible {
    outline: 2px solid var(--accent-600);
    outline-offset: 3px;
}


/* ── 21. Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ── 22. Responsive ── */
@media (max-width: 640px) {
    .client-container {
        padding: 0 var(--sp-4);
    }

    .client-card {
        padding: var(--sp-4);
    }

    .welcome-banner {
        padding: var(--sp-6);
    }

    .login-card {
        padding: var(--sp-6);
    }

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


/* ── 23. SweetAlert2 Toast Override ── */
.swal-toast {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    border-radius: var(--radius-md) !important;
}
