/* DOC IC Forum - Police Department Inspired Theme */
:root {
    --primary: #1a2332;
    --secondary: #2c3e50;
    --accent: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --dark: #0d1117;
    --light: #ecf0f1;
    --border: #d0d0d0;
    --text: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --gray-light: #e8e8e8;
    --gray: #4a5568;
    
    /* Light theme (DEFAULT) */
    --bg-primary: #ecf0f1;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --nav-bg: #1a2332;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
}

/* Dark Navy theme (toggle) */
body.dark-theme,
html.dark-theme,
html.dark-theme body {
    --bg-primary: #0d1117 !important;
    --bg-secondary: #1a2332 !important;
    --bg-tertiary: #2c3e50 !important;
    --nav-bg: #1a2332 !important;
    --card-bg: #1a2332 !important;
    --input-bg: #2c3e50 !important;
    --text: #e8eaed !important;
    --text-light: #9ca3af !important;
    --border: #34495e !important;
    --gray-light: #2c3440 !important;
}

body.dark-theme,
html.dark-theme body {
    background: #0d1117 !important;
    color: #e8eaed !important;
}

body.dark-theme .container {
    background: #1a2332 !important;
    color: #e8eaed !important;
}

body.dark-theme .navbar {
    background: #1a2332 !important;
}

body.dark-theme .login-box {
    background: #1a2332 !important;
}

body.dark-theme .login-header {
    background: #0d1117 !important;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    background: #2c3e50 !important;
    color: #e8eaed !important;
    border-color: #34495e !important;
}

body.dark-theme .post-card,
body.dark-theme .thread-card {
    background: #1a2332 !important;
    border-color: #34495e !important;
}

body.dark-theme .nav-brand a {
    color: #ffffff !important;
}

body.dark-theme .nav-menu a {
    color: #e8eaed !important;
}

/* Dark theme text overrides */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: #e8eaed !important;
}

body.dark-theme .page-header h1 {
    color: #3498db !important;
}

body.dark-theme .section-header h2 {
    color: #3498db !important;
}

body.dark-theme .form-section h2 {
    color: #3498db !important;
}

body.dark-theme .thread-info h3 a,
body.dark-theme .category-info h2 a,
body.dark-theme a {
    color: #3498db !important;
}

body.dark-theme .thread-item {
    background: #2c3e50 !important;
}

body.dark-theme .thread-item:hover {
    background: #34495e !important;
}

body.dark-theme .thread-row {
    background: #2c3e50 !important;
}

body.dark-theme .thread-row:hover {
    background: #34495e !important;
}

body.dark-theme .activity-item {
    background: #2c3e50 !important;
}

body.dark-theme .reply-form {
    background: #2c3e50 !important;
}

body.dark-theme .stat-info h3 {
    color: #3498db !important;
}

body.dark-theme .thread-stats .count {
    color: #3498db !important;
}

body.dark-theme .data-table td {
    color: #e8eaed !important;
}

body.dark-theme .data-table tr:hover {
    background: #2c3e50 !important;
}

body.dark-theme .detail-item strong {
    color: #e8eaed !important;
}

body.dark-theme .form-group label {
    color: #e8eaed !important;
}

body.dark-theme .badge-number {
    color: #9ca3af !important;
}

body.dark-theme .author-info strong {
    color: #e8eaed !important;
}

body.dark-theme .login-footer {
    background: #0d1117 !important;
    color: #9ca3af !important;
}

body.dark-theme .footer {
    background: #1a2332 !important;
    color: #9ca3af !important;
}

body.dark-theme .footer p {
    color: #9ca3af !important;
}

body.dark-theme .dashboard-section {
    background: #1a2332 !important;
}

body.dark-theme .stat-card {
    background: #1a2332 !important;
}

body.dark-theme .category-card {
    background: #1a2332 !important;
}

body.dark-theme .form-section {
    background: #1a2332 !important;
}

body.dark-theme .breadcrumb a {
    color: #3498db !important;
}

body.dark-theme .pagination a {
    background: #2c3e50 !important;
    color: #e8eaed !important;
    border-color: #34495e !important;
}

body.dark-theme .pagination a:hover,
body.dark-theme .pagination a.active {
    background: #3498db !important;
    color: #ffffff !important;
    border-color: #3498db !important;
}

body.dark-theme .nav-menu li a:hover {
    background: #2c3e50 !important;
    color: #3498db !important;
}

body.dark-theme .dropdown-menu {
    background: #1a2332 !important;
    border: 1px solid #34495e !important;
}

body.dark-theme .dropdown-menu li a {
    color: #e8eaed !important;
}

body.dark-theme .dropdown-menu li a:hover {
    background: #2c3e50 !important;
}

body.dark-theme .alert-error {
    background: #3d1f1f !important;
    color: #ff6b6b !important;
}

body.dark-theme .alert-warning {
    background: #3d361f !important;
    color: #ffa726 !important;
}

body.dark-theme .alert-info {
    background: #1f2d3d !important;
    color: #64b5f6 !important;
}

body.dark-theme .setting-card {
    background: var(--card-bg) !important;
    color: var(--text) !important;
}

body.dark-theme .setting-card h3 {
    color: #64b5f6 !important;
    border-bottom-color: var(--border) !important;
}

body.dark-theme .info-table td {
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

body.dark-theme .info-table td strong {
    color: var(--text) !important;
}

body.dark-theme .modal-content {
    background: var(--card-bg) !important;
    color: var(--text) !important;
}

body.dark-theme .modal-content h2 {
    color: #64b5f6 !important;
}

body.dark-theme .modal-content label {
    color: var(--text) !important;
}

body.dark-theme .alert-success {
    background: #1f3d2d !important;
    color: #66bb6a !important;
}

body.dark-theme .no-data {
    color: #9ca3af !important;
}

body.dark-theme em {
    color: #9ca3af !important;
}

body.dark-theme .post-text {
    color: #e8eaed !important;
}

body.dark-theme .category-info p {
    color: #9ca3af !important;
}

body.dark-theme .stat-info p {
    color: #9ca3af !important;
}

body.dark-theme .thread-stats .label {
    color: #9ca3af !important;
}

body.dark-theme .post-footer {
    color: #9ca3af !important;
    border-top-color: #34495e !important;
}

body.dark-theme .activity-time {
    color: #9ca3af !important;
}

body.dark-theme .last-post {
    color: #9ca3af !important;
}

body.dark-theme .edited-tag {
    color: #9ca3af !important;
}

body.dark-theme .detail-item label {
    color: #9ca3af !important;
}

body.dark-theme .user-details strong {
    color: #e8eaed !important;
}

body.dark-theme .nav-brand a {
    color: #3498db !important;
}

/* Theme toggle button */
#theme-toggle {
    background: var(--gray-light);
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 18px;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--accent);
    transform: scale(1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.login-header {
    background: var(--dark);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
}

.login-header .motto {
    font-style: italic;
    margin-top: 10px;
    opacity: 0.8;
    font-size: 13px;
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 20px 30px;
    font-size: 14px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid var(--info);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: #4a5568;
    color: white;
}

.btn-secondary:hover {
    background: #5a6778;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.login-footer {
    background: var(--light);
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

/* Navbar */
.navbar {
    background: var(--bg-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.nav-brand a {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-menu li a {
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background: var(--light);
    color: var(--primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dark);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details strong {
    font-size: 14px;
    color: var(--text);
}

.rank-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    border-radius: 12px;
    margin-top: 2px;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 6px;
    min-width: 180px;
    padding: 8px 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px 16px;
    display: block;
    color: var(--text);
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: var(--light);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.page-header h1 {
    font-size: 28px;
    color: var(--primary);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 48px;
}

.stat-info h3 {
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
}

.stat-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dashboard-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.section-header h2 {
    font-size: 20px;
    color: var(--primary);
}

/* Threads */
.threads-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thread-item {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    transition: all 0.3s;
}

.thread-item:hover {
    background: #e8eaf6;
    transform: translateX(5px);
}

.thread-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.thread-info h3 a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.thread-info h3 a:hover {
    text-decoration: underline;
}

.thread-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.thread-meta .category {
    background: var(--dark);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

body.dark-theme .thread-meta .category {
    background: #3498db;
    color: white;
}

.thread-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.thread-stats .stat {
    text-align: center;
}

.thread-stats .count {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.thread-stats .label {
    font-size: 11px;
    color: var(--text-light);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.activity-list::-webkit-scrollbar {
    width: 8px;
}

.activity-list::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 4px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body.dark-theme .activity-list::-webkit-scrollbar-track,
html.dark-theme .activity-list::-webkit-scrollbar-track {
    background: #2c3e50;
}

body.dark-theme .activity-list::-webkit-scrollbar-thumb,
html.dark-theme .activity-list::-webkit-scrollbar-thumb {
    background: #4a5568;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: 6px;
    font-size: 13px;
}

.activity-icon {
    font-size: 20px;
}

.activity-content {
    flex: 1;
}

.activity-time {
    color: var(--text-light);
    font-size: 11px;
}

/* Forum Categories */
.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 48px;
}

.category-info {
    flex: 1;
}

.category-info h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.category-info h2 a {
    color: var(--primary);
    text-decoration: none;
}

.category-info p {
    color: var(--text-light);
    font-size: 14px;
}

.category-stats {
    display: flex;
    gap: 30px;
}

/* Thread Row */
.threads-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thread-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    transition: all 0.3s;
}

.thread-row:hover {
    background: #e8eaf6;
}

.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.thread-actions {
    display: flex;
    gap: 10px;
}

/* Posts */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.post-card {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

.post-author {
    width: 180px;
    text-align: center;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid var(--dark);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-number {
    font-size: 12px;
    color: var(--text-light);
}

.post-content {
    flex: 1;
}

.post-text {
    margin-bottom: 15px;
    line-height: 1.8;
}

.post-footer {
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 15px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    margin-right: 5px;
}

.badge-warning {
    background: #fff3e0;
    color: #e65100;
}

.badge-secondary {
    background: #e0e0e0;
    color: #616161;
}

.badge-pending {
    background: #fff3e0;
    color: #e65100;
}

body.dark-theme .badge-pending {
    background: #3d361f;
    color: #ffa726;
}

.badge-approved, .badge-submitted {
    background: #e8f5e9;
    color: #2e7d32;
}

body.dark-theme .badge-approved,
body.dark-theme .badge-submitted {
    background: #1f3d2d;
    color: #66bb6a;
}

.badge-rejected {
    background: #ffebee;
    color: #c62828;
}

body.dark-theme .badge-rejected {
    background: #3d1f1f;
    color: #ff6b6b;
}

.badge-draft {
    background: #e0e0e0;
    color: #616161;
}

body.dark-theme .badge-draft {
    background: #2c3e50;
    color: #9ca3af;
}

body.dark-theme .badge-warning {
    background: #3d361f;
    color: #ffa726;
}

body.dark-theme .badge-secondary {
    background: #2c3e50;
    color: #9ca3af;
}

/* Forms */
.doc-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.forum-form {
    max-width: 800px;
}

/* Bail Report Photo Evidence */
.photo-evidence-container {
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background: #f9f9f9;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

body.dark-theme .photo-evidence-container,
html.dark-theme .photo-evidence-container {
    background: #2c3e50 !important;
    border-color: #4a5568 !important;
}

.photo-evidence-img {
    max-width: calc(100% - 0px);
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    max-height: 500px;
    margin: 0 auto;
    object-fit: contain;
    box-sizing: border-box;
}

/* Bail Report Notes */
.notes-container {
    margin-top: 10px;
    padding: 15px;
    background: #f5f5f5;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    white-space: pre-wrap;
}

body.dark-theme .notes-container,
html.dark-theme .notes-container {
    background: #2c3e50 !important;
    border-left-color: #5dade2 !important;
    color: #e8eaed !important;
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table th {
    background: var(--dark);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

body.dark-theme .data-table th {
    background: #2c3e50;
    color: #e8eaed;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover {
    background: var(--light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a {
    padding: 8px 15px;
    border: 2px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--dark);
    text-decoration: none;
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 13px;
    margin-top: 50px;
}

.footer p {
    color: var(--text-light);
    font-size: 14px;
    margin: 5px 0;
}

/* Utilities */
.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

.reply-form {
    margin-top: 30px;
    padding: 25px;
    background: var(--light);
    border-radius: 12px;
}

.reply-form h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.last-post {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.thread-main h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.edited-tag {
    font-style: italic;
    color: var(--text-light);
}

.category-threads {
    margin-top: 40px;
}

/* Detail View Styles */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item label {
    display: block;
    font-weight: 600;
    color: var(--text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-item strong {
    font-size: 16px;
    color: var(--dark);
}

.form-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.form-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .nav-menu {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 5px;
        padding: 10px 0;
        flex-wrap: nowrap;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--light);
    }
    
    .nav-menu::-webkit-scrollbar {
        height: 4px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: var(--light);
        border-radius: 4px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }
    
    .nav-menu li {
        flex-shrink: 0;
    }
    
    .nav-menu li a {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .nav-user {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .user-info {
        flex: 1;
        min-width: 200px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .thread-item {
        flex-direction: column;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-author {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    /* Scrollable tabs untuk mobile */
    .admin-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--light);
        flex-wrap: nowrap;
        gap: 5px;
        padding-bottom: 5px;
    }
    
    .admin-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .admin-tabs::-webkit-scrollbar-track {
        background: var(--light);
        border-radius: 4px;
    }
    
    .admin-tabs::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }
    
    .admin-tabs .tab {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    /* Table horizontal scroll */
    .table-container {
        border: 1px solid var(--border);
        border-radius: 8px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--light);
    }
    
    .table-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .table-container::-webkit-scrollbar-track {
        background: var(--light);
        border-radius: 4px;
    }
    
    .table-container::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }
    
    .data-table {
        margin: 0;
    }
    
    /* Dropdown click untuk mobile */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--border);
        border-radius: 4px;
        margin: 5px 0;
        background: var(--card-bg);
    }
    
    .dropdown-menu li {
        width: 100%;
    }
    
    .dropdown-menu li a {
        padding: 12px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Forum responsive */
    .category-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .category-icon {
        font-size: 36px;
    }
    
    .category-stats {
        justify-content: center;
        gap: 20px;
        width: 100%;
    }
    
    .thread-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .thread-stats {
        display: flex;
        gap: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-author {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 15px;
    }
}

