/* ========================================
   JUDGEMENT WRITER — Premium CSS Design
   যশোর জেলা আদালত — বিচারিক রায় সফটওয়্যার
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a9e;
    --primary-dark: #0f1f35;
    --accent: #c9a227;
    --accent-light: #e8c547;
    --accent-dark: #a07d14;

    --success: #22c55e;
    --success-bg: #f0fdf4;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --info: #3b82f6;
    --info-bg: #eff6ff;

    --sidebar-width: 260px;
    --sidebar-bg: #0f1e30;
    --sidebar-text: #cbd5e1;
    --sidebar-hover: rgba(201, 162, 39, 0.12);
    --sidebar-active: rgba(201, 162, 39, 0.18);

    --topbar-h: 64px;
    --topbar-bg: #ffffff;
    --topbar-border: #e2e8f0;

    --bg-page: #eef2f8;
    --bg-card: #ffffff;
    --border: #dce5f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow: 0 4px 16px rgba(0, 0, 0, .08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .12);
    --shadow-glow: 0 0 0 3px rgba(201, 162, 39, .2);

    --font-bn: 'Anek Bangla', 'Noto Sans Bengali', sans-serif;
    --font-en: 'Inter', sans-serif;
    --transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
}

textarea {
    resize: vertical;
}

/* ===== Radiant Page Background ===== */
body {
    font-family: var(--font-bn);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(30, 58, 95, .08) 0%, transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(201, 162, 39, .06) 0%, transparent 60%),
        linear-gradient(160deg, #e8eef8 0%, #f0f4fb 40%, #edf1f9 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 15px;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width var(--transition);
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    min-height: 72px;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(201, 162, 39, .35);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-sub {
    color: var(--sidebar-text);
    font-size: 11px;
    white-space: nowrap;
}

.sidebar-toggle,
.topbar-menu-btn {
    background: transparent;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .1) transparent;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .3);
    padding: 8px 12px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: #fff;
    transform: translateX(2px);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--accent-light);
    border-left: 3px solid var(--accent);
}

.nav-item.nav-logout:hover {
    background: rgba(239, 68, 68, .15);
    color: #fca5a5;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-text {
    white-space: nowrap;
}

.user-info-nav {
    opacity: .6;
    cursor: default;
}

.user-info-nav:hover {
    transform: none;
    background: transparent;
}

.sidebar-footer {
    padding: 12px 16px;
    font-size: 11px;
    color: rgba(255, 255, 255, .2);
    border-top: 1px solid rgba(255, 255, 255, .06);
    flex-shrink: 0;
}

/* ========================================
   MAIN LAYOUT
   ======================================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-h);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-menu-btn {
    color: var(--text-muted);
}

.topbar-menu-btn:hover {
    background: var(--bg-page);
    color: var(--primary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb-home {
    font-weight: 600;
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--text-light);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.page-content {
    flex: 1;
    padding: 28px 32px;
    max-width: 1280px;
    width: 100%;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-bn);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.btn:focus {
    outline: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b6fc0, var(--primary-light));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45, 90, 158, .3);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, .3);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: var(--info-bg);
}

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

.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 58, 95, .1);
    box-shadow: 0 2px 12px rgba(30, 58, 95, .07), 0 1px 3px rgba(0, 0, 0, .04);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: 0 6px 24px rgba(30, 58, 95, .12);
    transform: translateY(-1px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(30, 58, 95, .08);
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 50%, #fdf8ee 100%);
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, .12), transparent 70%);
    pointer-events: none;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 24px;
    background: linear-gradient(180deg, #fbfdff 0%, #f9fafe 100%);
}

.card-body.p-0 {
    padding: 0;
    background: none;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   STATS GRID
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 0 0 0 80px;
    opacity: .08;
}

.stat-card-blue::before {
    background: var(--info);
}

.stat-card-green::before {
    background: var(--success);
}

.stat-card-purple::before {
    background: #8b5cf6;
}

.stat-card-amber::before {
    background: var(--accent);
}

.stat-card-teal::before {
    background: #14b8a6;
}

.stat-card-red::before {
    background: var(--danger);
}

.stat-card-blue {
    border-top: 3px solid var(--info);
}

.stat-card-green {
    border-top: 3px solid var(--success);
}

.stat-card-purple {
    border-top: 3px solid #8b5cf6;
}

.stat-card-amber {
    border-top: 3px solid var(--accent);
}

.stat-card-teal {
    border-top: 3px solid #14b8a6;
}

.stat-card-red {
    border-top: 3px solid var(--danger);
}

.stat-icon {
    font-size: 28px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 500;
}

.stat-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: .5px;
}

/* ========================================
   TABLES
   ======================================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.table-row-hover:hover {
    background: #f8fafc;
}

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

.case-no-link {
    font-weight: 700;
    color: var(--primary-light);
}

.case-no-link:hover {
    color: var(--accent-dark);
}

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

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.badge-gr {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-cr {
    background: #f3e8ff;
    color: #7c3aed;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-pending {
    background: #fef3c7;
    color: #b45309;
}

.badge-acquittal {
    background: #dcfce7;
    color: #15803d;
}

.badge-conviction {
    background: #fee2e2;
    color: #b91c1c;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */
.action-btns {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-view:hover {
    background: var(--info-bg);
    border-color: var(--info);
}

.btn-edit:hover {
    background: var(--warning-bg);
    border-color: var(--warning);
}

.btn-export:hover {
    background: var(--success-bg);
    border-color: var(--success);
}

.btn-delete:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: slideDown .3s ease;
}

.alert-success {
    background: var(--success-bg);
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: var(--danger-bg);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-close {
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: inherit;
    opacity: .6;
}

.alert-close:hover {
    opacity: 1;
}

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

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

/* ========================================
   FORMS
   ======================================== */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1ddf0;
    border-radius: var(--radius);
    font-family: var(--font-bn);
    font-size: 15px;
    color: var(--text-main);
    background: #f8fbff;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(45, 90, 158, .12);
    background: #fff;
}

.form-select {
    cursor: pointer;
}

.form-textarea {
    font-size: 14px;
    line-height: 1.7;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    pointer-events: none;
}

.form-input.with-icon {
    padding-left: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group-wrap {
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    user-select: none;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.radio-label input:checked+.radio-custom {
    border-color: var(--primary-light);
    background: var(--primary-light);
    box-shadow: inset 0 0 0 3px #fff;
}

/* Section with save */
.section-with-save {
    position: relative;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-actions {
    display: flex;
    gap: 8px;
}

.saved-sections-dropdown {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 8px;
    overflow: hidden;
    animation: slideDown .2s ease;
}

.saved-sections-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
}

.saved-sections-body {
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.section-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    font-size: 14px;
    gap: 8px;
}

.section-item:hover {
    background: var(--info-bg);
}

.section-item-title {
    font-weight: 500;
}

.section-item-text {
    font-size: 12px;
    color: var(--text-muted);
}

.section-use-btn {
    background: var(--primary-light);
    color: #fff;
    border: none;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.save-section-form {
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 8px;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 20px;
    color: var(--primary-dark);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.section-divider span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 2px 0;
    white-space: nowrap;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(to right, var(--border), rgba(201, 162, 39, .3));
    border-radius: 2px;
}

.section-divider::after {
    background: linear-gradient(to left, var(--border), rgba(45, 90, 158, .2));
}

.close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.close-btn:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ========================================
   STEP INDICATOR
   ======================================== */
/* ===== STEP INDICATOR — Premium Golden Style ===== */
.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    overflow-x: auto;
    padding: 8px 4px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: var(--radius);
}

.step:hover .step-num {
    border-color: var(--accent);
    color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .15);
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--text-muted);
    background: #fff;
    transition: all var(--transition);
    letter-spacing: -0.5px;
}

.step.active .step-num {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    border-color: var(--accent-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(201, 162, 39, .45);
    transform: scale(1.08);
}

.step.done .step-num {
    background: var(--success);
    border-color: #16a34a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, .3);
}

.step.done .step-num::after {
    content: '✓';
    position: absolute;
    font-size: 14px;
}

.step.done .step-num {
    position: relative;
    font-size: 0;
}

.step-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.step.active .step-label {
    color: var(--accent-dark);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.step.done .step-label {
    color: var(--success);
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--border);
    min-width: 24px;
    margin-bottom: 22px;
    border-radius: 2px;
    transition: background var(--transition);
}

.step.done+.step-line {
    background: linear-gradient(90deg, var(--success), var(--accent));
}

.step.active+.step-line {
    background: var(--accent-light);
}

/* ========================================
   FORM STEPS
   ======================================== */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 16px 0;
}

/* ========================================
   ACCUSED & WITNESS BLOCKS
   ======================================== */
.accused-block {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color var(--transition);
}

.accused-block:hover {
    border-color: var(--primary-light);
}

.accused-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.accused-serial {
    font-weight: 800;
    color: var(--primary);
    font-size: 15px;
    background: var(--info-bg);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
}

.witness-block {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.witness-block:hover {
    border-color: var(--primary-light);
}

.witness-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.witness-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

/* ===== WITNESS TABS — Color-coded Pill Style ===== */
.witness-tabs {
    display: flex;
    gap: 6px;
}

.wit-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font-bn);
    cursor: pointer;
    border: 2px solid transparent;
    background: #f1f5f9;
    color: var(--text-muted);
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.wit-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .1);
}

/* জবানবন্দি — Teal/Green */
.wit-tab:nth-child(1) {
    color: #0d7a5f;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.wit-tab:nth-child(1):hover,
.wit-tab:nth-child(1).active {
    background: #059669;
    color: #fff;
    border-color: #047857;
    box-shadow: 0 4px 12px rgba(5, 150, 105, .3);
}

/* সাজেশন — Amber/Orange */
.wit-tab:nth-child(2) {
    color: #92400e;
    background: #fffbeb;
    border-color: #fcd34d;
}

.wit-tab:nth-child(2):hover,
.wit-tab:nth-child(2).active {
    background: #d97706;
    color: #fff;
    border-color: #b45309;
    box-shadow: 0 4px 12px rgba(217, 119, 6, .3);
}

/* জেরা — Rose/Red */
.wit-tab:nth-child(3) {
    color: #9f1239;
    background: #fff1f2;
    border-color: #fca5a5;
}

.wit-tab:nth-child(3):hover,
.wit-tab:nth-child(3).active {
    background: #e11d48;
    color: #fff;
    border-color: #be123c;
    box-shadow: 0 4px 12px rgba(225, 29, 72, .3);
}

.wit-panel {
    display: none;
    padding: 14px;
}

.wit-panel.active {
    display: block;
}

/* ========================================
   VERDICT OPTIONS
   ======================================== */
.verdict-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.verdict-card {
    flex: 1;
    min-width: 150px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    background: #fff;
}

.verdict-card input {
    display: none;
}

.verdict-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
}

.verdict-icon {
    font-size: 36px;
}

.verdict-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.verdict-card.selected,
.verdict-card:has(input:checked) {
    border-color: var(--primary-light);
    background: var(--info-bg);
    box-shadow: 0 0 0 3px rgba(45, 90, 158, .1);
}

.verdict-card:hover {
    border-color: var(--primary-light);
}

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-body {
    background: linear-gradient(135deg, #0f1e30 0%, #1e3a5f 50%, #0f1e30 100%);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-panel-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-panel-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(201, 162, 39, .1) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.auth-panel-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    text-align: center;
}

.auth-emblem {
    font-size: 72px;
    display: block;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.auth-panel-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.auth-panel-subtitle {
    font-size: 16px;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 32px;
}

.auth-panel-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 99px;
    margin: 0 auto 32px;
}

.auth-features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(201, 162, 39, .15);
    border: 1px solid rgba(201, 162, 39, .3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.auth-panel-right {
    width: 460px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
}

.auth-form-container {
    width: 100%;
    max-width: 380px;
}

.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
}

.auth-form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

.auth-alert {
    margin-bottom: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-hint {
    font-size: 12px;
    color: var(--text-light);
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
}

/* ========================================
   SEARCH
   ======================================== */
.search-card {
    margin-bottom: 20px;
}

.search-card .card-body {
    padding: 16px 20px;
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-bn);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
}

.search-input:focus {
    border-color: var(--primary-light);
}

.search-clear {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    transition: all var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
}

/* ========================================
   MODALS
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .2s ease;
}

.modal {
    background: #fff;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    animation: scaleIn .2s ease;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-body {
    padding: 20px 24px;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    opacity: .5;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ========================================
   PREMIUM VIEW PAGE STYLES
   ======================================== */
.verdict-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.verdict-acquittal {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
    border: 1.5px solid #86efac;
}

.verdict-conviction {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
}

.verdict-pending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #b45309;
    border: 1.5px solid #fde68a;
}

.verdict-banner-icon {
    font-size: 26px;
}

.view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.view-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.view-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    margin-bottom: 0 !important;
}

.view-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

.view-card .card-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.view-card .card-body {
    padding: 20px;
}

/* Info Tables */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.info-table th,
.info-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    font-size: 14px;
}

.info-table tr:hover td,
.info-table tr:hover th {
    background: #f8fafc;
}

.info-table th {
    color: #64748b;
    font-weight: 600;
    width: 42%;
    font-size: 13px;
}

.info-table td {
    color: #1e293b;
    font-weight: 500;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* Info Blocks */
.info-block {
    margin-bottom: 16px;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 3.5px solid #3b82f6;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.info-block-value {
    font-size: 14px;
    color: #0f172a;
    line-height: 1.6;
}

/* Styled Text Content Box */
.text-content-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #1e293b;
}

/* Witness Accordion Cards */
.witness-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
    transition: all 0.25s ease;
}

.accordion-item:hover {
    border-color: #cbd5e1;
}

.accordion-item.active {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 4px 16px -2px rgba(59, 130, 246, 0.12);
}

.accordion-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-bn);
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
}

.accordion-arrow {
    transition: transform .3s ease;
    font-size: 12px;
    color: #64748b;
    background: #e2e8f0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.accordion-item.active .accordion-arrow {
    background: #3b82f6;
    color: #ffffff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    font-size: 14px;
    line-height: 1.7;
    padding: 0 18px;
}

.accordion-item.active .accordion-content {
    max-height: 4000px;
    padding: 0 18px 18px 18px;
}

.witness-section {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-left: 3.5px solid #3b82f6;
    border-radius: 0 8px 8px 0;
}

.witness-section strong {
    color: #475569;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.witness-section p {
    margin: 0;
    color: #0f172a;
}

/* ========================================
   UTILITY
   ======================================== */
.hidden {
    display: none !important;
}

.loading-spinner {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .view-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, .3);
    }

    .page-content {
        padding: 20px 16px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

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

    .page-header {
        flex-direction: column;
    }

    .auth-panel-left {
        display: none;
    }

    .auth-panel-right {
        width: 100%;
    }
}

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

    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SEARCH BAR & PAGINATION
   ======================================== */
.search-card {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    font-size: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    outline: none;
    background: #f8fafc;
    transition: all var(--transition);
}

.search-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.search-clear:hover {
    color: var(--danger);
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition);
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.pagination-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* ========================================
   VOICE TYPING BUTTON
   ======================================== */
.textarea-voice-wrapper {
    position: relative;
    width: 100%;
}

.textarea-voice-wrapper .voice-type-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 10;
}

.voice-type-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.voice-type-btn:hover {
    background: var(--primary, #2563eb);
    color: #fff;
    border-color: var(--primary, #2563eb);
    transform: translateY(-1px);
}

.voice-type-btn.recording {
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
    animation: voice-pulse 1.5s infinite;
}

@keyframes voice-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ===== SPLIT WORKSPACE FOR VIEW PAGE ===== */
.view-workspace {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 16px;
    width: 100%;
}

.view-left-panel {
    flex: 0 0 35%;
    max-width: 35%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.view-right-panel {
    flex: 0 0 65%;
    max-width: 65%;
}

/* Compact Cards and Tables for Left Panel */
.compact-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-card);
}

.card-header-compact {
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
}

.card-body-compact {
    padding: 12px;
}

.info-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.info-table-compact th {
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    padding: 5px 8px;
    width: 35%;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
}

.info-table-compact td {
    color: var(--text-main);
    padding: 5px 8px;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
}

.info-table-compact tr:last-child th,
.info-table-compact tr:last-child td {
    border-bottom: none;
}

.table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.table-compact th {
    background: #f1f5f9;
    color: var(--text-muted);
    font-weight: 600;
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table-compact td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

/* Responsive collapse for split workspace */
@media (max-width: 1024px) {
    .view-workspace {
        flex-direction: column;
    }

    .view-left-panel,
    .view-right-panel {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== PRESET QUICK CHIPS ===== */
.preset-chip {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-bn);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.preset-chip:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
}

.preset-chip:active {
    transform: translateY(0);
}

/* ===== STEP 1: SIDE-BY-SIDE TWO-CARD GRID ===== */
.step1-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}

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

/* ===== COMPACT ACCUSED BLOCK ===== */
.accused-quick-row {
    background: #fafbfc;
}

.accused-collapse-btn {
    margin-left: auto;
    color: var(--primary);
    border-color: var(--primary);
    transition: all 0.2s ease;
}

.accused-collapse-btn:hover {
    background: var(--primary);
    color: #fff;
}

.accused-detail-collapse {
    background: #f8fafc;
    border-top: 1px dashed var(--border);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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