/* ============================================
   Whistleblowing System PT. LJU
   Elegant, Clean Design - Primary: White & Navy
   ============================================ */

:root {
    --navy: #1a2755;
    --navy-dark: #0f1a3e;
    --navy-light: #2a3a6e;
    --navy-hover: #1e3070;
    --blue-accent: #3b5bdb;
    --blue-light: #e8edf8;
    --blue-lighter: #f0f4ff;
    --white: #ffffff;
    --gray-50: #f8f9fc;
    --gray-100: #f1f3f7;
    --gray-200: #e2e6ef;
    --gray-300: #c8cfe0;
    --gray-400: #9aa5b4;
    --gray-500: #6b7c93;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --green: #22c55e;
    --green-light: #dcfce7;
    --red: #ef4444;
    --red-light: #fee2e2;
    --orange: #f59e0b;
    --orange-light: #fef3c7;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   FORM PAGE STYLES
   ============================================ */

.form-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.form-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.form-container {
    width: 100%;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header .logo {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.form-header h1 {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.form-header .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 400;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--blue-accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group label .optional {
    color: var(--gray-400);
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-700);
    background: var(--white);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.15);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7c93' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-50);
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--blue-accent);
    background: var(--blue-lighter);
}

.file-upload-area.dragover {
    border-color: var(--blue-accent);
    background: var(--blue-lighter);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--gray-400);
}

.file-upload-text {
    font-size: 14px;
    color: var(--gray-500);
}

.file-upload-text strong {
    color: var(--blue-accent);
}

.file-upload-hint {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.file-preview-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--blue-lighter);
    border-radius: 6px;
    font-size: 13px;
}

.file-preview-item .file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    overflow: hidden;
}

.file-preview-item .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.file-preview-item .file-size {
    color: var(--gray-400);
    font-size: 12px;
    white-space: nowrap;
}

.file-preview-item .remove-file {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.file-preview-item .remove-file:hover {
    background: var(--red-light);
}

/* Captcha */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-image {
    border-radius: 6px;
    border: 2px solid var(--gray-200);
}

.captcha-refresh {
    background: var(--blue-light);
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: var(--blue-accent);
    color: var(--white);
}

.captcha-input {
    flex: 1;
    min-width: 120px;
}

/* Camera buttons */
.camera-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.camera-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.camera-btn:hover {
    background: var(--navy-hover);
}

.camera-btn svg {
    width: 16px;
    height: 16px;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--blue-lighter);
    border-radius: var(--radius-sm);
    border: 2px solid var(--blue-light);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-group:hover {
    border-color: var(--blue-accent);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--navy);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    box-shadow: 0 4px 12px rgba(26, 39, 85, 0.4);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form footer */
.form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.form-footer .security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.5;
}

.form-footer .security-notice svg {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex-shrink: 0;
}

.form-bottom-link {
    text-align: center;
    margin-top: 20px;
}

.form-bottom-link a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: var(--transition);
}

.form-bottom-link a:hover {
    color: var(--white);
}

/* Alert Messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background: var(--green-light);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: var(--red-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: var(--blue-lighter);
    color: var(--navy);
    border: 1px solid #bfdbfe;
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    animation: slideUp 0.6s ease;
}

.login-card .logo-wrapper {
    text-align: center;
    margin-bottom: 28px;
}

.login-card .logo-wrapper img {
    width: 70px;
    height: auto;
    margin-bottom: 12px;
}

.login-card .logo-wrapper h2 {
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
}

.login-card .logo-wrapper p {
    color: var(--gray-500);
    font-size: 13px;
    margin-top: 2px;
}

.btn-login {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    box-shadow: 0 4px 12px rgba(26, 39, 85, 0.4);
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header img {
    width: 42px;
    height: auto;
}

.sidebar-header .brand {
    display: flex;
    flex-direction: column;
}

.sidebar-header .brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.sidebar-header .brand-sub {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 400;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: var(--blue-lighter);
    color: var(--navy);
}

.sidebar-link.active {
    background: var(--navy);
    color: var(--white);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--gray-400);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 0;
    background: var(--gray-50);
}

/* Top Bar */
.topbar {
    background: var(--white);
    padding: 16px 32px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
}

.topbar-date {
    font-size: 13px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--red-light);
    color: var(--red);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--red);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

/* Dashboard Content */
.dashboard-content {
    padding: 28px 32px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.stat-card.primary::after { background: var(--navy); }
.stat-card.success::after { background: var(--green); }
.stat-card.warning::after { background: var(--orange); }
.stat-card.info::after { background: var(--blue-accent); }

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon svg {
    width: 22px;
    height: 22px;
}

.stat-card.primary .stat-card-icon {
    background: var(--blue-lighter);
    color: var(--navy);
}

.stat-card.success .stat-card-icon {
    background: var(--green-light);
    color: var(--green);
}

.stat-card.warning .stat-card-icon {
    background: var(--orange-light);
    color: var(--orange);
}

.stat-card.info .stat-card-icon {
    background: var(--blue-lighter);
    color: var(--blue-accent);
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.content-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.panel-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.panel-header .badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-primary {
    background: var(--blue-lighter);
    color: var(--navy);
}

.panel-body {
    padding: 8px 0;
}

.report-item {
    padding: 14px 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.report-item:last-child {
    border-bottom: none;
}

.report-item:hover {
    background: var(--gray-50);
}

.report-item-num {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--blue-lighter);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.report-item-content {
    flex: 1;
    min-width: 0;
}

.report-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-item-meta {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bidang-item {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.bidang-item:last-child {
    border-bottom: none;
}

.bidang-item:hover {
    background: var(--gray-50);
}

.bidang-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bidang-rank {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-400);
    width: 20px;
}

.bidang-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

.bidang-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    background: var(--blue-lighter);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Filter Bar */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-bar label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
}

.filter-bar .form-control {
    padding: 8px 12px;
    font-size: 13px;
    border-width: 1px;
    max-width: 200px;
}

.filter-bar select.form-control {
    max-width: 220px;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter:hover {
    background: var(--navy-dark);
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset:hover {
    background: var(--gray-200);
}

/* Data Table */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.table-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    padding: 12px 16px;
    background: var(--gray-50);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 6px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action svg {
    width: 16px;
    height: 16px;
}

.btn-view {
    background: var(--blue-lighter);
    color: var(--navy);
}

.btn-view:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-delete {
    background: var(--red-light);
    color: var(--red);
}

.btn-delete:hover {
    background: var(--red);
    color: var(--white);
}

/* Pagination */
.table-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-info {
    font-size: 13px;
    color: var(--gray-500);
}

.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a {
    color: var(--gray-600);
    background: var(--gray-100);
}

.pagination a:hover {
    background: var(--navy);
    color: var(--white);
}

.pagination .active span {
    background: var(--navy);
    color: var(--white);
}

.pagination .disabled span {
    color: var(--gray-300);
    cursor: default;
}

/* View Modal / Detail */
.report-detail {
    padding: 28px 32px;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.detail-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--gray-200);
}

.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.detail-field {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
}

.detail-field:nth-child(even) {
    border-right: none;
}

.detail-field.full-width {
    grid-column: 1 / -1;
    border-right: none;
}

.detail-field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-field-value {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.detail-field-value.content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--blue-lighter);
    border-radius: 6px;
    font-size: 13px;
    color: var(--navy);
    transition: var(--transition);
}

.attachment-link:hover {
    background: var(--navy);
    color: var(--white);
}

.badge-anonymous {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-verified {
    display: inline-block;
    padding: 3px 10px;
    background: var(--green-light);
    color: #166534;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.no-data svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--gray-300);
}

.no-data p {
    font-size: 14px;
}

.truncate {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .topbar {
        padding: 12px 20px;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .form-card {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar .form-control,
    .filter-bar select.form-control {
        max-width: 100%;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-field {
        border-right: none;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .captcha-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 22px;
    }
    
    .topbar-left h1 {
        font-size: 18px;
    }
    
    .stat-card-value {
        font-size: 26px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Confirm dialog overlay */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirm-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.confirm-box h3 {
    color: var(--gray-800);
    margin-bottom: 8px;
}

.confirm-box p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 24px;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-confirm-cancel {
    padding: 8px 24px;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-confirm-cancel:hover {
    background: var(--gray-200);
}

.btn-confirm-delete {
    padding: 8px 24px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-confirm-delete:hover {
    background: #dc2626;
}