/* ==========================================================================
   GLOBAL VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;
    
    /* Elegant solid colors (No Gradients) */
    --accent-gradient: #0a365d;
    --accent-purple: #0a365d;
    --accent-cyan: #ae8c4d;
    
    /* Semantic Colors */
    --color-pidana: #dc2626;       /* Red */
    --color-perdata: #2563eb;       /* Blue */
    --color-pajak: #059669;         /* Green/Emerald */
    --color-bisnis: #d97706;        /* Amber/Yellow */
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --glass-blur: 8px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-main);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   GLASSMORPHISM CARD HELPER
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    transition: border-color var(--transition-speed), transform var(--transition-speed), background var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 26px;
    color: var(--accent-gradient);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo-text span {
    color: var(--accent-cyan);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background: #f1f5f9;
}

.nav-link.active {
    color: #ffffff !important;
    background: #0a365d !important;
    border: 1px solid #0a365d;
    box-shadow: 0 4px 12px rgba(10, 54, 93, 0.25);
}

/* Role Selector Toggle Switch */
.role-selector-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.role-toggle-btn {
    position: relative;
    width: 170px;
    height: 38px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    padding: 0 4px;
    user-select: none;
}

.toggle-slider {
    position: absolute;
    height: 30px;
    width: 80px;
    background: var(--accent-gradient);
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(10, 54, 93, 0.2);
}

.toggle-text {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    z-index: 2;
    transition: color 0.3s;
}

.toggle-text.active {
    color: #ffffff;
}

/* Toggle transitions between roles */
.role-toggle-btn.admin-active .toggle-slider {
    transform: translateX(82px);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 15px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(10, 54, 93, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 54, 93, 0.35);
    filter: brightness(1.1);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ==========================================================================
   APP SECTION ROUTER CONTAINER
   ========================================================================== */
.main-content {
    flex: 1;
    padding-top: 105px;
    padding-bottom: 50px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

.app-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.app-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HERO / LANDING SECTION
   ========================================================================== */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 0 60px 0;
    max-width: 850px;
    margin: 0 auto;
}

.hero-text .badge {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text h1 span {
    color: var(--accent-purple);
}

.hero-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* SVG or AI Preview widget in Hero */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(174, 140, 77, 0.15);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

.svm-card-preview {
    width: 100%;
    max-width: 380px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-header-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.brain-icon {
    font-size: 20px;
    color: var(--accent-cyan);
}

.preview-text {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 13px;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-purple);
}

.prediction-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prediction-line .label {
    font-size: 12px;
    color: var(--text-muted);
}

.confidence-bar-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.confidence-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.confidence-label span {
    font-weight: 700;
    color: var(--accent-cyan);
}

.progress-bar-w {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: all var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.feature-icon {
    font-size: 32px;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   DASHBOARD FRAMEWORK (Klien & Admin)
   ========================================================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.dashboard-header h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dashboard-header h2 span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

.panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Case List Queue styling */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

.case-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.case-item:hover, .case-item.active {
    background: #f1f5f9;
    border-color: var(--border-color-hover);
    transform: translateX(3px);
}

.case-item.active {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    border-left: 4px solid var(--accent-purple);
    background: #eff6ff;
}

.case-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.case-item-id {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.case-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.case-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
}

/* ==========================================================================
   NEON BADGES & LABELS
   ========================================================================== */
.badge-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

/* Category Specific Tag Styles */
.badge-tag.pidana {
    background: rgba(220, 38, 38, 0.08);
    color: var(--color-pidana);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-tag.perdata {
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-perdata);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-tag.pajak {
    background: rgba(5, 150, 105, 0.08);
    color: var(--color-pajak);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-tag.bisnis {
    background: rgba(217, 119, 6, 0.08);
    color: var(--color-bisnis);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* Status Badges */
.status-indicator-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-indicator-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator-badge.warning {
    background: rgba(217, 119, 6, 0.08);
    color: var(--color-hki);
    border: 1px solid rgba(217, 119, 6, 0.15);
}
.status-indicator-badge.warning::before {
    background: var(--color-hki);
}

.status-indicator-badge.info {
    background: rgba(174, 140, 77, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(174, 140, 77, 0.15);
}
.status-indicator-badge.info::before {
    background: var(--accent-cyan);
    animation: blinkPulse 2s infinite;
}

.status-indicator-badge.success {
    background: rgba(5, 150, 105, 0.08);
    color: var(--color-ketenaga);
    border: 1px solid rgba(5, 150, 105, 0.15);
}
.status-indicator-badge.success::before {
    background: var(--color-ketenaga);
}

.status-indicator-badge.danger {
    background: rgba(220, 38, 38, 0.08);
    color: var(--color-pidana);
    border: 1px solid rgba(220, 38, 38, 0.15);
}
.status-indicator-badge.danger::before {
    background: var(--color-pidana);
}

@keyframes blinkPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ==========================================================================
   CASE DETAILS VIEW
   ========================================================================== */
.case-view-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-detail-header {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    position: relative;
}

.case-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 15px;
    margin-bottom: 2px;
}

.case-id {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-cyan, #ae8c4d);
    letter-spacing: 0.5px;
}

.case-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.case-detail-header h3,
.case-header-left h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 2px 0 8px 0;
    line-height: 1.4;
    color: var(--text-primary);
    word-break: break-word;
}

.case-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.meta-client, .meta-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-client strong {
    color: var(--text-primary);
}

/* ==========================================================================
   MILESTONE VISUAL TRACKER
   ========================================================================== */
.tracker-section {
    padding: 24px;
}

.sub-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.milestone-tracker-visual {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* Progress Track Container */
.milestone-progress-track {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.milestone-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    max-width: 120px;
    line-height: 1.4;
}

/* Completed & Active Milestones CSS */
.milestone-step.completed .step-icon {
    background: #059669;
    border-color: #10b981;
    color: white;
}

.milestone-step.completed .step-label {
    color: var(--text-primary);
    font-weight: 700;
}

.milestone-step.active .step-icon {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: white;
    animation: activePulse 2s infinite;
}

.milestone-step.active .step-label {
    color: var(--accent-cyan);
    font-weight: 800;
}

.milestone-step.revision .step-icon {
    background: #dc2626;
    border-color: #ef4444;
    color: white;
}

.milestone-step.revision .step-label {
    color: #dc2626;
    font-weight: 800;
}

@keyframes activePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Milestone Line Fill Logic */
.milestone-progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-cyan);
    z-index: 1;
    transition: width 0.5s ease;
}

/* History logs inside tracker */
.milestone-history {
    background: #f8fafc;
    border-radius: 8px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
}

.milestone-history h5 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.milestone-logs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.log-item {
    font-size: 13px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    line-height: 1.5;
    align-items: start;
}

.log-date {
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

.log-date-main {
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
}

.log-date-time {
    color: var(--text-muted);
    font-size: 11.5px;
}

.log-content strong {
    color: var(--accent-cyan);
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
}

.log-content span {
    color: var(--text-secondary);
}

/* ==========================================================================
   DETAILS AND CHAT CONTAINER
   ========================================================================== */
.details-chat-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.case-desc-box {
    padding: 24px;
}

.scroll-box-desc {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    border-left: 3px solid var(--accent-purple);
}

.file-attachments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-attach-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-speed);
}

.file-attach-card:hover {
    background: #f1f5f9;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-info i {
    font-size: 18px;
    color: var(--accent-cyan);
}

.file-name {
    font-size: 12px;
    font-weight: 600;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 10px;
    color: var(--text-muted);
}

.btn-download-file {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
}

.btn-download-file:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   CHAT SYSTEM
   ========================================================================== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    overflow: hidden;
}

.chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chat-title-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-size: 13px;
    font-weight: 700;
}

.chat-status {
    font-size: 11px;
    color: var(--color-ketenaga);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-status .dot {
    width: 6px;
    height: 6px;
    background: var(--color-ketenaga);
    border-radius: 50%;
    display: inline-block;
}

/* Switch Bot styling */
.switch-bot {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.switch-bot input {
    display: none;
}

.slider-bot {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 9px;
    transition: .4s;
}

.slider-bot:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.switch-bot input:checked + .slider-bot {
    background-color: var(--accent-purple);
}

.switch-bot input:checked + .slider-bot:before {
    transform: translateX(14px);
}

.switch-bot .lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.chat-message.klien {
    align-self: flex-end;
    background: var(--accent-gradient);
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 10px rgba(10, 54, 93, 0.15);
}

.chat-message.admin {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(174, 140, 77, 0.05);
    border: 1px solid rgba(174, 140, 77, 0.15);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.msg-time {
    display: block;
    font-size: 9px;
    text-align: right;
    margin-top: 5px;
    opacity: 0.65;
}

.chat-typing-indicator {
    padding: 8px 20px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-typing-indicator span {
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    animation: typingPulse 1.4s infinite ease-in-out both;
}

.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-input-area {
    padding: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 18px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-speed);
}

.chat-input-area input:focus {
    border-color: var(--accent-purple);
}

.btn-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform var(--transition-speed), background var(--transition-speed);
}

.btn-send:hover {
    background: var(--accent-cyan);
    transform: scale(1.05);
}

/* ==========================================================================
   SUBMIT CASE FORM VIEW
   ========================================================================== */
.form-view-container {
    padding: 30px;
}

.form-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.form-header h3 {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input, .form-select, .form-group textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-speed);
}

.form-group input:focus, .form-select:focus, .form-group textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(10, 54, 93, 0.15);
}

.text-counter {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Drag-Drop Zone */
.drag-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 35px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.drag-drop-area:hover, .drag-drop-area.dragover {
    border-color: var(--accent-purple);
    background: #f1f5f9;
}

.drag-drop-area.is-invalid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.cloud-icon {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.drag-drop-area p {
    font-size: 13px;
    color: var(--text-secondary);
}

.drag-drop-area p span {
    color: var(--accent-purple);
    font-weight: 700;
}

.file-rules {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.selected-files-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 30px;
}

/* ==========================================================================
   ADMIN MAIN LAYOUT & SVM VIEW
   ========================================================================== */
.admin-stats {
    display: flex;
    gap: 15px;
}

.stat-badge {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.admin-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.filter-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 6px 0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.filter-tab:hover, .filter-tab.active {
    color: var(--text-primary);
}

.filter-tab.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

/* SVM TRIAGE PANEL */
.svm-analysis-box {
    padding: 24px;
    border: 1px solid rgba(10, 54, 93, 0.15);
    box-shadow: 0 10px 25px rgba(10, 54, 93, 0.04);
    background: #f1f5f9;
    border-radius: var(--border-radius);
}

.svm-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.svm-title-row h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 8px;
}

.svm-badge {
    font-size: 9px;
    font-weight: 800;
    background: var(--accent-gradient);
    padding: 3px 8px;
    border-radius: 6px;
    color: white;
}

.svm-grid-dashboard {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.svm-result-card, .svm-keywords-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.01);
}

.svm-result-card .lbl, .svm-keywords-card .lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.svm-result-card .val {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.keyword-tag {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.svm-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 18px;
    gap: 16px;
}

.action-dropdown-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-dropdown-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.action-dropdown-group select {
    min-width: 235px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    outline: none;
    transition: border-color var(--transition-speed);
}

.action-dropdown-group select:focus {
    border-color: var(--accent-purple);
}

.action-buttons-group {
    display: flex;
    gap: 12px;
}

/* Milestone Manager Box */
.milestone-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.milestone-header-row .sub-title {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.milestone-action-form {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

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

.milestone-action-form h5 {
    font-size: 13px;
    margin-bottom: 12px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.flex-1 {
    flex: 1;
}

.mt-4 { margin-top: 20px; }
.mt-2 { margin-top: 10px; }
.hidden { display: none !important; }
.flex-1 { flex: 1; }

.form-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

/* Empty Dash State */
.empty-dashboard-view {
    text-align: center;
    padding: 80px 40px;
}

.icon-big {
    font-size: 64px;
    color: var(--accent-purple);
    margin-bottom: 24px;
}

.empty-dashboard-view h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.empty-dashboard-view p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* ==========================================================================
   TOAST NOTIFICATION MODAL
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3000;
}

.toast {
    background: #ffffff;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left: 4px solid var(--color-ketenaga); }
.toast.success i { color: var(--color-ketenaga); }

.toast.info { border-left: 4px solid var(--accent-cyan); }
.toast.info i { color: var(--accent-cyan); }

.toast.warning { border-left: 4px solid var(--color-hki); }
.toast.warning i { color: var(--color-hki); }

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    background: #051b30; /* Dark navy brand color tint */
    color: #cbd5e1;
    margin-top: auto;
}

.footer-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: #ffffff;
    font-weight: 800;
    position: relative;
    margin-bottom: 25px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    margin-bottom: 0;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.footer-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.footer-info p {
    font-size: 13px;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-links h4, .footer-contact h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-cyan); /* Emas */
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.footer-links ul li a:hover {
    color: var(--accent-cyan);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 16px;
    margin-top: 3px;
}

.contact-icon-loc {
    color: #ef4444;
}

.contact-icon-wa {
    color: #22c55e;
}

.contact-icon-email {
    color: #3b82f6;
}

.contact-item strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 30px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #64748b;
}

.slogan-lbl {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #475569;
}

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERY
   ========================================================================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .details-chat-grid {
        grid-template-columns: 1fr;
    }
    .about-grid, .trials-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   VISITOR HEADER & DYNAMIC NAVIGATION
   ========================================================================== */
.auth-buttons-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.user-greeting {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(174, 140, 77, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(174, 140, 77, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: clamp(160px, 22vw, 320px);
    height: 38px;
    box-sizing: border-box;
    cursor: default;
}

/* ==========================================================================
   AUTHENTICATION UNIFIED MODALS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; /* Controlled by JS via 'flex' */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px 15px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 30px 25px 25px 25px;
    position: relative;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid var(--border-color) !important;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #ffffff;
    border-radius: 14px;
    margin: auto;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    pointer-events: auto;
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.modal-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-speed);
    text-align: center;
}

.modal-tab-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(10, 54, 93, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-icon-big {
    font-size: 48px;
    color: var(--accent-purple);
    margin-bottom: 12px;
    display: inline-block;
}

.demo-credentials-helper {
    margin-top: 20px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

.demo-credentials-helper .val {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* ==========================================================================
   KOEDETA LAW FIRM - BERANDA SECTIONS
   ========================================================================== */
#about, #services, #info-faq {
    scroll-margin-top: 95px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.8px;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
}

.section-title span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle-p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 600px;
    margin: -25px auto 40px auto;
    line-height: 1.6;
}

/* Profil Firma (About Section) */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: stretch;
}

.about-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.stats-counter-row {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.stat-count-item .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-purple);
}

.stat-count-item .lbl {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.about-feat-card {
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feat-card i {
    font-size: 28px;
    color: var(--accent-purple);
    filter: drop-shadow(0 0 5px rgba(174, 140, 77, 0.2));
}

.about-feat-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.about-feat-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Rekam Jejak Persidangan (Trials Section) */
.trials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.trial-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trial-card:hover {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

.trial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.court-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(174, 140, 77, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
}

.trial-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.trial-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.trial-meta {
    display: flex;
    gap: 20px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-weight: 600;
}

.trial-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trial-meta i {
    color: var(--accent-purple);
}

/* ==========================================================================
   LAW FIRM ASSIGNED LAWYER PANEL
   ========================================================================== */
.meeting-info-box {
    border: 1px solid rgba(5, 150, 105, 0.15) !important;
    background: #f0fdf4 !important;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.02);
    animation: slideDownMeeting 0.4s ease-out;
}

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

.meeting-box-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-ketenaga);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
    padding-bottom: 10px;
}

.meeting-details-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.lawyer-avatar-wrapper {
    position: relative;
}

.lawyer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: white;
    box-shadow: 0 2px 8px rgba(10, 54, 93, 0.15);
}

.lawyer-info-text {
    flex: 1;
}

.lawyer-info-text .lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.lawyer-info-text .lawyer-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.lawyer-info-text .lawyer-specialty {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.meeting-instruction {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--color-ketenaga);
}

.meeting-instruction i {
    color: var(--color-ketenaga);
    margin-right: 4px;
}

/* verified tag in admin */
.verified-status-info {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    text-align: center;
    color: var(--color-ketenaga);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==========================================================================
   PASSWORD INPUT WRAPPER & VISIBILITY TOGGLE
   ========================================================================== */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px !important; /* Leave space for eye icon */
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed);
    z-index: 10;
}

.btn-toggle-password:hover {
    color: var(--text-primary);
}

.login-footer-helper {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.login-footer-helper a {
    color: var(--accent-purple);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-speed);
    margin-left: 4px;
}

.login-footer-helper a:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* Premium styling for password input focus */
.password-input-wrapper input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(10, 54, 93, 0.15);
    outline: none;
}

/* Medium size modal for registration */
.modal-box-md {
    max-width: 580px !important;
    width: 100%;
    padding: 35px 32px !important;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px !important;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 580px) {
    .modal-box-md {
        padding: 25px 20px !important;
        max-width: 95% !important;
    }
    .form-grid-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Password Strength Meter & Strong Password Rules */
.password-strength-container {
    margin-top: 8px;
    margin-bottom: 12px;
}

.strength-meter-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

[data-theme="dark"] .strength-meter-bar {
    background: rgba(255, 255, 255, 0.1);
}

.strength-meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-meter-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-meter-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.strength-meter-fill.good {
    width: 75%;
    background: #3b82f6;
}

.strength-meter-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-meter-label {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-secondary);
}

.strength-meter-label strong {
    font-weight: 700;
    color: var(--text-muted);
}

.strength-meter-label strong.weak { color: #ef4444; }
.strength-meter-label strong.fair { color: #f59e0b; }
.strength-meter-label strong.good { color: #3b82f6; }
.strength-meter-label strong.strong { color: #10b981; }

.password-rules-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 10px;
    margin-bottom: 15px;
}

[data-theme="dark"] .password-rules-box {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.rules-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.rules-title i {
    color: var(--accent-purple);
}

.rules-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

@media (max-width: 520px) {
    .rules-checklist {
        grid-template-columns: 1fr;
    }
}

.rules-checklist li {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.rules-checklist li i {
    font-size: 11px;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.rules-checklist li.valid {
    color: #10b981;
    font-weight: 600;
}

.rules-checklist li.valid i {
    color: #10b981;
}

.password-match-indicator {
    font-size: 11.5px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.password-match-indicator.matched {
    color: #10b981;
}

.password-match-indicator.mismatched {
    color: #ef4444;
}

/* ==========================================================================
   MISSING FILES INFO BOX & RESUBMISSION FLOW
   ========================================================================== */
.missing-files-info-box {
    border: 1px solid rgba(220, 38, 38, 0.15) !important;
    background: #fef2f2 !important;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.02);
    margin-bottom: 24px;
    animation: slideDownMeeting 0.4s ease-out;
}

.missing-box-title {
    font-size: 15px;
    font-weight: 800;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(220, 38, 38, 0.08);
    padding-bottom: 10px;
}

.missing-details-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.warning-icon-wrapper {
    position: relative;
}

.warning-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.missing-info-text {
    flex: 1;
}

.missing-info-text .lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.missing-notes-text {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.6;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    font-weight: 600;
}

/* Helper button sizes */
.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
    line-height: 1.3;
}

.admin-upload-box {
    margin-top: 15px;
    animation: slideDownMeeting 0.3s ease-out;
}

/* ==========================================================================
   COLLAPSIBLE CHAT STYLING
   ========================================================================== */
.details-chat-grid.chat-closed {
    grid-template-columns: 1fr;
}

.details-chat-grid.chat-closed .chat-container {
    display: none !important;
}

.btn-close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-speed), color var(--transition-speed);
}

.btn-close-chat:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-primary);
}

.btn-toggle-chat-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

/* ==========================================================================
   PROGRESSIVE FSM STYLES (REVISION & ADMIN CHECKLIST)
   ========================================================================== */
.milestone-step.revision .step-icon {
    background: #ef4444;
    border-color: #dc2626;
    color: white;
    animation: activePulse 2s infinite;
}

.milestone-step.revision .step-label {
    color: #ef4444;
    font-weight: 800;
}

/* Revision Checklist for Client View */
.revision-checklist {
    list-style: none;
    margin: 15px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.revision-checklist li {
    font-size: 12px;
    font-weight: 600;
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    padding: 10px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.revision-checklist li i {
    font-size: 14px;
}

/* Admin Verification Actions Form Panel */
.admin-fsm-actions-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.admin-revision-form {
    background: rgba(239, 68, 68, 0.02);
    border: 1px dashed rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
    animation: slideDownMeeting 0.3s ease-out;
}

.admin-revision-form h5 {
    font-size: 13px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 12px;
}

.admin-checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.admin-checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.admin-revision-textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
}

.admin-revision-textarea:focus {
    border-color: #ef4444;
    outline: none;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   ANALYTICS & HISTORY TABLE STYLING
   ========================================================================== */
.history-table th, .history-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
}

.history-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="dark"] .history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* ==========================================================================
   NEW INFO & FAQ SECTIONS (MENGAPA MEMILIH KAMI, FAQ, INFO PERKARA)
   ========================================================================== */

/* 4. Mengapa Memilih Kami Styling */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.why-card {
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    height: 100%;
}
.why-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}
.why-icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.bg-gold {
    background: var(--accent-cyan);
}
.bg-navy {
    background: var(--accent-purple);
}
.bg-red {
    background: var(--color-pidana);
}
.why-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.why-card p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 5. FAQ Accordion Styling */
.faq-container {
    max-width: 800px;
    margin: 30px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    padding: 20px 24px;
    cursor: pointer;
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--accent-cyan);
}
.faq-question {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}
.faq-answer {
    margin-top: 15px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* 6. Informasi Perkara Styling */
.info-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.info-case-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}
.info-case-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}
.info-case-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 16px;
    border-bottom: 2px solid;
    padding-bottom: 8px;
}
.border-pidana {
    border-color: var(--color-pidana);
    color: var(--color-pidana);
}
.border-perdata {
    border-color: var(--color-perdata);
    color: var(--color-perdata);
}
.border-bisnis {
    border-color: var(--color-bisnis);
    color: var(--color-bisnis);
}
.border-pajak {
    border-color: var(--color-pajak);
    color: var(--color-pajak);
}
.border-mediator {
    border-color: #8b5cf6;
    color: #8b5cf6;
}
.text-mediator {
    color: #8b5cf6 !important;
}
.border-kurator {
    border-color: #0284c7;
    color: #0284c7;
}
.text-kurator {
    color: #0284c7 !important;
}
.border-auditor {
    border-color: #0d9488;
    color: #0d9488;
}
.text-auditor {
    color: #0d9488 !important;
}
.info-case-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================================
   NEW TABBED PROFIL FIRMA STYLING
   ========================================================================== */

/* About Tabs System */
.about-tabs-control {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.about-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-tab-btn i {
    font-size: 14px;
}

.about-tab-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(174, 140, 77, 0.05);
}

.about-tab-btn.active {
    background: var(--accent-purple); /* Solid Navy */
    color: #ffffff;
    border-color: var(--accent-purple);
    box-shadow: 0 4px 12px rgba(10, 54, 93, 0.25);
}

.about-tabs-content {
    position: relative;
    min-height: 400px;
}

.about-tab-panel {
    display: none;
    animation: fadeInTab 0.5s ease forwards;
}

.about-tab-panel.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab 1: About Company Grid */
.about-company-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
    align-items: stretch;
}

.about-company-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.about-logo-large {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}

.about-logo-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-company-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-company-text h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.about-company-text p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Tab 2: Visi, Misi & Komitmen */
.about-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.vision-card {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.vision-card.full-width {
    grid-column: span 2;
}

.vision-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vision-header i {
    font-size: 24px;
    color: var(--accent-cyan);
}

.vision-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.vision-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Tab 3: Practice Areas */
.about-practices-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.about-practices-intro h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.about-practices-intro p {
    font-size: 14px;
    color: var(--text-secondary);
}

.about-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.practice-item-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.practice-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.practice-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 54, 93, 0.05);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all var(--transition-speed);
}

.practice-item-card:hover .practice-icon {
    background: var(--accent-cyan);
    color: #ffffff;
}

.practice-item-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.practice-item-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Tab 4: Tim Advokat (Team Profile Cards) */
.about-team-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-profile-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.profile-header-meta {
    position: absolute;
    top: 20px;
    right: 20px;
}

.role-badge {
    background: rgba(174, 140, 77, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(174, 140, 77, 0.2);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-layout-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.profile-img-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.partner-avatar-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transition: transform var(--transition-speed);
}

.partner-avatar-img:hover {
    transform: scale(1.02);
}

.profile-motto {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.profile-desc-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-desc-col h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.partner-summary-desc {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--accent-purple);
    line-height: 1.6;
}

.profile-desc-col p {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}



/* ==========================================================================
   NEW ORGANIZATIONAL CHART & PARTNERSHIP TAB STYLING
   ========================================================================== */

/* Organizational Chart */
.org-structure-section {
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    margin-top: 60px;
}

.org-section-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.org-section-title span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.org-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

.org-node {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 290px;
    max-width: 310px;
    flex: 0 1 290px;
    transition: all var(--transition-speed);
    box-sizing: border-box;
}

.org-node:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.org-avatar {
    width: 75px;
    height: 95px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    flex-shrink: 0;
    transition: transform var(--transition-speed);
}

.org-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.org-info h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.org-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.org-connector-vertical {
    width: 2px;
    height: 25px;
    background: var(--border-color);
}

/* Tab 5: Experience & Clients Styling */
.about-clients-intro {
    padding: 35px;
    margin-bottom: 40px;
    text-align: center;
}

.about-clients-intro h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.about-clients-intro p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 25px auto;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.sector-badge {
    background: rgba(10, 54, 93, 0.04);
    border: 1px solid var(--border-color);
    color: var(--accent-purple);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-speed);
}

.sector-badge i {
    font-size: 14px;
    color: var(--accent-cyan);
}

.sector-badge:hover {
    background: var(--accent-purple);
    color: #ffffff;
    border-color: var(--accent-purple);
}

.sector-badge:hover i {
    color: var(--accent-cyan);
}

.sectors-footer-desc {
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

/* Accordion list for partnerships */
.clients-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.client-detail-item {
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.client-summary-header {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    list-style: none;
    user-select: none;
}

.client-summary-header::-webkit-details-marker {
    display: none;
}

.client-meta-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-meta-title i {
    font-size: 16px;
    color: var(--accent-cyan);
}

.client-meta-title strong {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.client-sector-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(10, 54, 93, 0.05);
    color: var(--accent-purple);
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    margin-right: 20px;
}

.client-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.client-detail-item[open] .client-arrow {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.client-detail-item[open] {
    border-color: var(--accent-cyan);
}

.client-detail-content {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.01);
}

[data-theme="dark"] .client-detail-content {
    background: rgba(255, 255, 255, 0.01);
}

.client-detail-content p {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   NOTIFICATION BELL & DROPDOWN STYLING
   ========================================================================== */
.notification-bell-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
}

.btn-bell {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.btn-bell:hover {
    color: var(--accent-cyan);
    transform: scale(1.05);
}

.bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444; /* Bright red notification badge */
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.notification-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    max-height: 450px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(10, 54, 93, 0.16);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adapt for dark theme if present */
[data-theme="dark"] .notification-dropdown {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}

.notification-header span {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-clear-notifications {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.btn-clear-notifications:hover {
    color: #ef4444;
}

.notification-list {
    overflow-y: auto;
    flex: 1;
    max-height: 350px;
}

.notification-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.notification-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    cursor: pointer;
    background: #ffffff;
    transition: background var(--transition-speed);
}

.notification-item:hover {
    background: var(--bg-card-hover);
}

.notification-item.unread {
    background: #f8fafc;
    border-left: 3px solid var(--accent-cyan);
}

.notification-item .notif-icon {
    font-size: 16px;
    margin-top: 2px;
}

.notification-item.unread .notif-icon {
    color: var(--accent-cyan);
}

.notification-item:not(.unread) .notif-icon {
    color: var(--text-muted);
}

.notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-case-id {
    font-size: 10px;
    background: rgba(10, 54, 93, 0.08);
    color: var(--accent-purple);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.notif-message {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.notif-time {
    font-size: 9.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Base styles for mobile elements (Hidden on Desktop) */
.nav-menu-toggle {
    display: none;
}

.mobile-back-btn {
    display: none !important;
}

/* Inline Login / Register error message styling */
.login-error-box {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--color-pidana);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: errorShake 0.4s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* 1. Large Screens & Custom Navbar elements (1200px and below) */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 20px;
    }
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 2. Tablet Size (991px and below) */
@media (max-width: 991px) {
    /* Navbar Hamburger Menu Transformation */
    .nav-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 22px;
        cursor: pointer;
        padding: 8px;
        transition: color var(--transition-speed);
        z-index: 1010;
    }

    .nav-menu-toggle:hover {
        color: var(--text-primary);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 30px;
        gap: 12px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s, visibility 0.4s;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(10, 54, 93, 0.05);
    }

    .navbar.menu-open .nav-links {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 12px 20px;
        width: 100%;
        border-radius: 8px;
        font-size: 15px;
    }

    /* Guest & Authenticated buttons in responsive mobile flow */
    .auth-buttons-container {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .auth-buttons-container.hidden {
        display: none !important;
    }

    /* Hide greeting text, show only icons on tablet */
    .user-greeting {
        display: none !important;
    }

    /* Hero Section adjustment - Tablet */
    .hero-text h1 {
        font-size: 36px;
    }
    .hero-text p {
        font-size: 14px;
    }

    /* Features Grid to 2 columns on tablet */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Dashboard Grid — single column on tablet */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile/Tablet dashboard panel toggle: show list, hide details by default */
    .dashboard-grid .dashboard-sidebar { display: block; }
    .dashboard-grid .dashboard-main    { display: none; }

    /* When a case is open, flip visibility */
    .dashboard-grid.details-open .dashboard-sidebar { display: none; }
    .dashboard-grid.details-open .dashboard-main    { display: block; }

    /* Show back button when case details are active */
    .mobile-back-btn {
        display: inline-flex !important;
        margin-bottom: 20px;
        width: auto;
    }

    /* About Tabs — horizontal scroll strip on tablet */
    .about-tabs-control {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        gap: 8px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .about-tabs-control::-webkit-scrollbar { height: 4px; }
    .about-tab-btn { flex: 0 0 auto; }

    /* About Company tab — stack logo + text */
    .about-company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Profile team layout — stack photo + bio */
    .profile-layout-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .profile-img-col {
        align-items: center;
    }
    .partner-avatar-img {
        max-width: 260px;
    }
    .profile-header-meta {
        position: static;
        margin-bottom: 15px;
    }
    .team-profile-card {
        padding: 25px 20px;
    }

    /* Org chart — wrap nodes */
    .org-level {
        gap: 15px;
    }
    .org-node {
        min-width: 260px;
        max-width: 100%;
    }

    /* Vision grid — 1 column on tablet */
    .about-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .vision-card.full-width {
        grid-column: span 1;
    }

    /* Trials grid — 1 column */
    .trials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Footer — 2 columns on tablet */
    .footer-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        padding: 0 20px;
    }
    .footer-col:first-child {
        grid-column: span 2;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 20px 20px 0 20px;
    }

    /* Admin checklist grid */
    .admin-checklist-grid {
        grid-template-columns: 1fr;
    }
}

/* 3. Small Tablet & Mobile Landscape (768px and below) */
@media (max-width: 768px) {
    /* Details & Chat — single column */
    .details-chat-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Chat area height */
    .chat-container {
        height: 420px;
    }

    /* Milestone history row */
    .log-item {
        grid-template-columns: 110px 1fr;
        gap: 8px;
        font-size: 12.5px;
    }

    /* SVM grid */
    .svm-grid-dashboard {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Why-choose-us grid */
    .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
    }

    /* Info case type grid */
    .info-case-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
    }

    /* Admin stats row wrap */
    .admin-stats {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Form row — vertical */
    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    /* Section title size */
    .section-title {
        font-size: 22px;
        margin-top: 55px;
        margin-bottom: 28px;
    }

    /* About company text padding */
    .about-company-text,
    .about-company-logo-container {
        padding: 25px 20px;
    }

    /* Clients intro card */
    .about-clients-intro {
        padding: 25px 20px;
    }

    /* Org node full width on small tablet */
    .org-node {
        min-width: 220px;
        padding: 12px 16px;
    }
    .org-avatar {
        width: 70px;
        height: 85px;
    }

    /* Toast container */
    .toast-container {
        right: 15px;
        left: 15px;
        top: 80px;
    }
    .toast {
        min-width: unset;
        width: 100%;
    }

    /* History table — horizontal scroll on small screens */
    .history-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 4. Mobile Portrait (576px and below) */
@media (max-width: 576px) {
    /* === NAVBAR === */
    .navbar { height: 65px; }
    .nav-container { padding: 0 15px; }
    .logo-text { font-size: 18px; }
    .logo-img  { height: 32px; }
    .nav-links {
        top: 65px;
        padding: 15px 20px;
    }

    /* Compact auth buttons on mobile */
    .auth-buttons-container { gap: 6px; }
    .btn-sm { padding: 7px 12px; font-size: 12px; }

    /* === MAIN CONTENT === */
    .main-content {
        padding-top: 85px;
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 40px;
    }

    /* === HERO === */
    .hero-container { padding: 35px 0 30px 0; }
    .hero-text h1   { font-size: 26px; letter-spacing: -0.5px; margin-bottom: 12px; }
    .hero-text p    { font-size: 13px; margin-bottom: 22px; }
    .hero-actions   {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* === FEATURE CARDS === */
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature-card  { padding: 22px 18px; }

    /* === SECTION TITLE === */
    .section-title {
        font-size: 20px;
        margin-top: 45px;
        margin-bottom: 22px;
    }

    /* === DASHBOARD === */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .dashboard-header .btn { width: 100%; }

    /* === FORMS === */
    .form-view-container { padding: 18px 14px; }
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .form-actions .btn { width: 100%; }

    /* === CASE DETAIL === */
    .case-detail-header {
        padding: 16px;
        gap: 10px;
    }
    .case-header-top   { flex-wrap: wrap; gap: 8px; }
    .case-header-right { align-self: flex-start; }
    .case-meta         { flex-wrap: wrap; gap: 8px; }

    /* === MILESTONE TRACKER (vertical on mobile) === */
    .milestone-tracker-visual {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-left: 20px;
    }
    .milestone-progress-track {
        top: 25px;
        left: 31px;
        width: 3px;
        height: calc(100% - 50px);
    }
    .milestone-progress-overlay {
        width: 100% !important;
        height: 0%;
        transition: height 0.5s ease;
    }
    .milestone-step {
        flex-direction: row;
        gap: 15px;
        text-align: left;
        width: 100%;
    }
    .step-label {
        max-width: none;
        text-align: left;
        padding-top: 8px;
    }
    .step-icon { margin-bottom: 0; }

    /* === MILESTONE HISTORY LOG === */
    .log-item { grid-template-columns: 1fr; gap: 4px; }

    /* === SVM ACTIONS === */
    .svm-action-row    { flex-direction: column; align-items: stretch; }
    .action-dropdown-group select { width: 100%; min-width: unset; }
    .action-buttons-group {
        flex-direction: column;
        width: 100%;
    }
    .action-buttons-group .btn { width: 100%; }

    /* === ABOUT SECTIONS === */
    .about-company-text,
    .about-company-logo-container { padding: 20px 16px; }
    .about-logo-large { max-width: 130px; }
    .team-profile-card { padding: 20px 16px; }
    .vision-card { padding: 22px 18px; }
    .about-practices-grid { grid-template-columns: 1fr; gap: 14px; }
    .practice-item-card { padding: 22px 18px; }
    .about-clients-intro { padding: 20px 16px; }

    /* === ORG CHART === */
    .org-level { gap: 12px; flex-direction: column; align-items: center; }
    .org-node  { min-width: unset; width: 100%; max-width: 340px; padding: 12px 14px; }
    .org-avatar { width: 60px; height: 72px; }

    /* === WHY / INFO GRIDS === */
    .why-grid      { grid-template-columns: 1fr !important; gap: 14px; }
    .info-case-grid { grid-template-columns: 1fr !important; gap: 14px; }

    /* === FAQ === */
    .faq-container { padding: 0; margin-top: 18px; }
    .faq-question  { font-size: 14px; }

    /* === SECTORS GRID === */
    .sectors-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* === CLIENTS ACCORDION === */
    .clients-accordion-list { max-width: 100%; }
    .client-summary-header  { padding: 14px 16px; }
    .client-detail-content  { padding: 14px 16px; }
    .client-sector-tag      { display: none; } /* hide tag on very small screens */

    /* === MODAL === */
    .modal-box { padding: 28px 18px 25px 18px; }

    /* === NOTIFICATION DROPDOWN === */
    .notification-dropdown {
        right: -70px;
        width: 290px;
    }

    /* === FOOTER === */
    .footer { padding: 40px 0 25px 0; }
    .footer-grid-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
        margin-bottom: 28px;
    }
    .footer-col:first-child { grid-column: span 1; }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 16px 16px 0 16px;
        font-size: 11.5px;
    }
    .footer-logo h3 { font-size: 17px; }
}

/* 5. Very Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero-text h1 { font-size: 23px; }
    .section-title { font-size: 18px; }

    /* Auth buttons — icon only on very small screens */
    .btn-sm span { display: none; }

    /* Org chart full-width nodes */
    .org-node { max-width: 100%; }

    /* Sectors 1-column */
    .sectors-grid { grid-template-columns: 1fr; }

    /* Reduce team card padding */
    .team-profile-card { padding: 16px 14px; }

    /* Notification dropdown full-width */
    .notification-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 30px);
    }
}

/* ==========================================================================
   ADMIN DOCUMENTS REPOSITORY & DOWNLOAD STYLING
   ========================================================================== */
.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
}
.doc-badge.verified {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.doc-badge.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.btn-doc-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-doc-download:hover {
    background: var(--accent-cyan);
    color: #0d1520;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
}
.file-attach-card .btn-download-file {
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: all 0.2s ease;
}
.file-attach-card .btn-download-file:hover {
    background: var(--accent-cyan);
    color: #0d1520;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.3);
}

/* ==========================================================================
   4 LEGAL DOMAINS HISTORY NAVIGATION STYLING
   ========================================================================== */
.history-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

.history-category-card {
    position: relative;
    padding: 22px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    overflow: hidden;
}

.history-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.25s ease;
}

.history-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Card Categories Color Variants */
.history-category-card.pidana::before { background: #ef4444; }
.history-category-card.pidana:hover { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.12); }
.history-category-card.pidana .cat-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.history-category-card.perdata::before { background: #3b82f6; }
.history-category-card.perdata:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12); }
.history-category-card.perdata .cat-icon { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

.history-category-card.bisnis::before { background: #06b6d4; }
.history-category-card.bisnis:hover { border-color: rgba(6, 182, 212, 0.4); box-shadow: 0 8px 20px rgba(6, 182, 212, 0.12); }
.history-category-card.bisnis .cat-icon { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }

.history-category-card.pajak::before { background: #10b981; }
.history-category-card.pajak:hover { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12); }
.history-category-card.pajak .cat-icon { background: rgba(16, 185, 129, 0.12); color: #10b981; }

.history-category-card.all::before { background: #a855f7; }
.history-category-card.all:hover { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 8px 20px rgba(168, 85, 247, 0.12); }
.history-category-card.all .cat-icon { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

.history-category-card .cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.history-category-card .cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.history-category-card .cat-count {
    font-size: 13px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.history-category-card .cat-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.history-category-card .cat-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.history-category-card .cat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.history-category-card:hover .cat-footer i {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* History Filter Chips */
.history-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.history-chip {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.history-chip.active {
    background: var(--accent-cyan);
    color: #0d1520;
    border-color: var(--accent-cyan);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.btn-history-view-case {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-history-view-case:hover {
    background: #a855f7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   MEETING SCHEDULE & INTERACTIVE CALENDAR STYLES
   ========================================================================== */
@keyframes slideDownMeeting {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Client Meeting Card */
.meeting-info-box {
    padding: 24px 26px;
    border: 1px solid rgba(174, 140, 77, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px -4px rgba(10, 54, 93, 0.08);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.meeting-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-cyan));
}

.meeting-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.meeting-badge-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meeting-badge-title h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0;
}

.meeting-grid-3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.meeting-grid-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-main);
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.meeting-grid-item:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.m-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.m-item-icon.bg-gold {
    background: rgba(174, 140, 77, 0.15);
    color: #ae8c4d;
}

.m-item-icon.bg-navy {
    background: rgba(10, 54, 93, 0.12);
    color: #0a365d;
}

.m-item-icon.bg-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.m-item-text {
    flex: 1;
}

.m-item-lbl {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.m-item-val {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.m-item-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.meeting-agenda-box {
    background: rgba(10, 54, 93, 0.03);
    border: 1px dashed rgba(10, 54, 93, 0.2);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m-agenda-item {
    font-size: 12.5px;
    line-height: 1.5;
}

.m-agenda-item strong {
    color: var(--text-primary);
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.m-agenda-item p {
    margin: 4px 0 0 0;
    color: var(--text-secondary);
}

.m-agenda-item.instruction strong {
    color: #b45309;
}

.m-agenda-item.instruction p {
    color: #92400e;
    font-weight: 600;
}

.meeting-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* Admin Case Meeting Box */
.admin-meeting-info-box {
    padding: 16px 20px;
    border: 1px solid rgba(174, 140, 77, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-cyan);
}

/* Calendar Dates Grid & Cells */
.cal-day-cell {
    min-height: 76px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.cal-day-cell:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 2;
}

.cal-day-cell.other-month {
    opacity: 0.35;
    background: rgba(0, 0, 0, 0.01);
}

.cal-day-cell.today {
    border-color: var(--accent-purple);
    background: rgba(10, 54, 93, 0.05);
}

.cal-day-cell.today .cal-day-num {
    background: var(--accent-purple);
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.cal-day-cell.selected {
    border: 2px solid var(--accent-cyan) !important;
    background: rgba(174, 140, 77, 0.08) !important;
}

.cal-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cal-day-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.cal-meetings-indicator {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}

.cal-meeting-pill {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(10, 54, 93, 0.12);
    color: var(--accent-purple);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 2px solid var(--accent-purple);
    display: block;
    line-height: 1.2;
}

.cal-meeting-pill.status-selesai {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-left-color: #10b981;
}

.cal-meeting-pill.status-dibatalkan {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-left-color: #ef4444;
}

/* Reminder Card in Sidebar */
.meeting-reminder-card {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meeting-reminder-card:hover {
    border-color: var(--border-color-hover);
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.meeting-reminder-card.is-today {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.03);
}

.reminder-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.reminder-time-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: monospace;
}

.reminder-client-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.reminder-meta-info {
    font-size: 11.5px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reminder-meta-info div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reminder-meta-info i {
    width: 14px;
    opacity: 0.7;
}

.reminder-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

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

/* ==========================================================================
   ENHANCED SCHEDULE MODAL & DATE MARKERS (Kalender & Notifikasi Pengingat)
   ========================================================================== */
.modal-schedule-box {
    max-width: 580px !important;
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    padding: 26px 30px 24px 30px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(174, 140, 77, 0.25) !important;
    box-shadow: 0 20px 50px rgba(10, 54, 93, 0.2) !important;
    margin: auto !important;
}

.modal-schedule-header {
    text-align: center;
    margin-bottom: 16px;
}

.modal-schedule-header .icon-circle {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(174, 140, 77, 0.15), rgba(10, 54, 93, 0.1));
    border: 1.5px solid rgba(174, 140, 77, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(174, 140, 77, 0.15);
}

.modal-schedule-header h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modal-schedule-header p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Modal Form Fields Styling */
.schedule-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.schedule-form-label i {
    color: var(--accent-cyan);
    font-size: 12px;
}

.schedule-form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.schedule-form-control:focus {
    border-color: var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 0 3.5px rgba(174, 140, 77, 0.18);
    background: #ffffff;
}

.schedule-reminder-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(174, 140, 77, 0.05));
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.45;
}

.schedule-reminder-banner i {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Calendar Date Meeting Markers & Base Day Cells */
.calendar-dates-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px !important;
    min-height: 280px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cal-day-cell {
    min-height: 62px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    position: relative !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    min-width: 0 !important; /* Mencegah kolom membesar / blowout */
    overflow: hidden !important; /* Mencegah isi meluber */
}

.cal-day-cell:hover {
    border-color: var(--accent-cyan) !important;
    background: #f0fdf4 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.15) !important;
}

.cal-day-cell.other-month {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    opacity: 0.45 !important;
    box-shadow: none !important;
}

.cal-day-cell.other-month .cal-day-num {
    color: #94a3b8 !important;
}

.cal-day-cell.today {
    border: 2px solid #0a365d !important;
    background: rgba(10, 54, 93, 0.08) !important;
}

.cal-day-cell.today .cal-day-num {
    color: #ffffff !important;
    background: #0a365d !important;
    font-weight: 900 !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cal-day-cell.selected {
    border: 2px solid var(--accent-cyan) !important;
    background: rgba(6, 182, 212, 0.12) !important;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.35) !important;
}

.cal-day-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.cal-day-num {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1 !important;
}

.cal-meetings-indicator {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    margin-top: 2px;
    min-width: 0; /* Penting untuk truncate */
}

.cal-day-cell.has-meeting {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.cal-day-cell.has-active-meeting {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)) !important;
    border: 1.5px solid #f59e0b !important;
}

.cal-day-cell.has-active-meeting:hover {
    border-color: #d97706 !important;
    background: rgba(245, 158, 11, 0.18) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25) !important;
}

.cal-day-cell.has-completed-meeting {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.02)) !important;
    border: 1.5px solid #10b981 !important;
}

.cal-day-cell.has-completed-meeting:hover {
    border-color: #059669 !important;
    background: rgba(16, 185, 129, 0.18) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
}

.cal-date-meeting-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.cal-date-meeting-dot.dot-active {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.95);
    animation: pulseMeetingDot 1.8s infinite ease-in-out;
}

.cal-date-meeting-dot.dot-completed {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.85);
}

@keyframes pulseMeetingDot {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 4px rgba(245, 158, 11, 0.6); }
    50% { transform: scale(1.4); opacity: 0.85; box-shadow: 0 0 12px rgba(245, 158, 11, 0.95); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 4px rgba(245, 158, 11, 0.6); }
}

.cal-meeting-pill {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 7px !important;
    border-radius: 6px !important;
    background: #0a365d !important;
    color: #ffffff !important;
    border-left: 3px solid #f59e0b !important;
    display: block !important; /* Blok supaya text-overflow jalan */
    box-shadow: 0 1px 4px rgba(10, 54, 93, 0.15) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cal-meeting-pill i {
    font-size: 9px;
    opacity: 0.85;
    margin-right: 3px;
}

.cal-meeting-pill.status-terjadwal {
    background: #0a365d !important;
    color: #ffffff !important;
    border-left: 3px solid #f59e0b !important;
}

.cal-meeting-pill.status-selesai {
    background: #065f46 !important;
    color: #ffffff !important;
    border-left: 3px solid #34d399 !important;
}

.cal-meeting-pill.status-dibatalkan {
    background: #7f1d1d !important;
    color: #ffffff !important;
    border-left: 3px solid #f87171 !important;
}

.cal-meeting-pill.status-more {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #d97706 !important;
    border-left: 3px solid #f59e0b !important;
}

/* ==========================================================================
   PASSWORD TOGGLE VISIBILITY STYLING
   ========================================================================== */
.password-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.password-input-wrapper input {
    width: 100% !important;
    padding-right: 44px !important; /* Ruang khusus untuk tombol ikon mata */
}

/* Sembunyikan tombol bawaan browser (MS Edge & Chrome) agar tidak tumpang tindih */
.password-input-wrapper input::-ms-reveal,
.password-input-wrapper input::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

.password-input-wrapper input::-webkit-credentials-auto-fill-button,
.password-input-wrapper input::-webkit-contacts-auto-fill-button {
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.btn-toggle-password {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #64748b !important;
    font-size: 16px !important;
    cursor: pointer !important;
    padding: 6px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: color 0.2s, background 0.2s !important;
    z-index: 999 !important;
    user-select: none !important;
    pointer-events: auto !important;
}

.btn-toggle-password i {
    pointer-events: none !important;
    font-size: 16px !important;
}

.btn-toggle-password:hover {
    color: #0a365d !important;
    background: rgba(10, 54, 93, 0.08) !important;
}

/* ==========================================================================
   CALENDAR MONTH & YEAR SELECTORS (2021 - 2080)
   ========================================================================== */
.cal-dropdown-group {
    display: flex;
    align-items: center;
}

.cal-header-select {
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 6px 28px 6px 12px !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 14px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--border-color) !important;
    outline: none !important;
    cursor: pointer !important;
    height: 34px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}

#cal-month-select {
    min-width: 125px !important;
}

#cal-year-select {
    min-width: 95px !important;
}

.cal-header-select:hover {
    border-color: var(--accent-cyan) !important;
    background-color: #f8fafc !important;
}

.cal-header-select:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 3px rgba(10, 54, 93, 0.12) !important;
}

.cal-header-select option {
    background: #ffffff;
    color: var(--text-primary);
    font-weight: 600;
    padding: 6px;
}


