* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    background: #12171e;
    color: #c3c9d0;
    line-height: 1.5;
    min-height: 100vh;
    font-size: 13px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Emergency Bar */
.emergency-bar {
    background: #1c2128;
    color: #8b949e;
    padding: 8px 0;
    text-align: center;
    font-size: 11px;
    border-bottom: 1px solid #21262d;
}

.emergency-bar strong {
    font-weight: 700;
    color: #c9d1d9;
}

/* Header */
.main-header {
    background: #0d1117;
    padding: 20px 0;
    border-bottom: 1px solid #21262d;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    display: block;
    line-height: 0;
}

.site-logo img {
    display: block;
    border-radius: 3px;
}

.site-title h1 {
    font-size: 20px;
    color: #c9d1d9;
    margin-bottom: 3px;
    font-weight: 600;
}

.motto {
    font-size: 13px;
    color: #8b949e;
    font-style: italic;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-register,
.btn-login {
    padding: 6px 16px;
    border: 1px solid #30363d;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #21262d;
    color: #c9d1d9;
}

.btn-register:hover {
    background: #30363d;
    border-color: #8b949e;
}

.btn-login {
    background: #238636;
    border-color: #238636;
    color: #fff;
}

.btn-login:hover {
    background: #2ea043;
    border-color: #2ea043;
}

/* Navigation */
.main-nav {
    background: #161b22;
    padding: 0;
    border-bottom: 1px solid #21262d;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 12px 16px;
    color: #8b949e;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 13px;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #c9d1d9;
    background: #0d1117;
    border-bottom-color: #58a6ff;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #161b22;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    border: 1px solid #30363d;
    border-radius: 3px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #21262d;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 10px 16px;
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #0d1117;
    color: #58a6ff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    padding: 20px 0;
    min-height: calc(100vh - 400px);
}

.breadcrumb {
    margin-bottom: 15px;
    padding: 8px 0;
    font-size: 11px;
}

.breadcrumb a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* Forum Section */
.forum-section {
    margin-bottom: 20px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
    overflow: hidden;
}

.section-header {
    background: #161b22;
    padding: 10px 16px;
    border-bottom: 1px solid #21262d;
}

.section-header h2 {
    color: #c9d1d9;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.forum-list {
    padding: 0;
}

.forum-item {
    display: grid;
    grid-template-columns: 50px 1fr auto 220px;
    gap: 15px;
    padding: 12px 16px;
    border-bottom: 1px solid #21262d;
    transition: all 0.2s ease;
    align-items: center;
}

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

.forum-item:hover {
    background: #161b22;
}

.forum-icon {
    color: #58a6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #161b22;
    border-radius: 3px;
}

.forum-icon svg {
    width: 24px;
    height: 24px;
}

.forum-info h3 {
    font-size: 14px;
    margin-bottom: 3px;
    font-weight: 600;
}

.forum-info h3 a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forum-info h3 a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.forum-description {
    color: #8b949e;
    font-size: 12px;
}

.forum-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: #8b949e;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #c9d1d9;
}

.forum-last-post {
    padding-left: 15px;
    border-left: 1px solid #21262d;
}

.last-post-title {
    color: #58a6ff;
    text-decoration: none;
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.last-post-title:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.last-post-meta {
    font-size: 11px;
    color: #8b949e;
}

.username {
    color: #c9d1d9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.username:hover {
    color: #58a6ff;
    text-decoration: underline;
}

.post-time {
    margin-left: 5px;
}

.no-posts {
    color: #8b949e;
    font-size: 12px;
    font-style: italic;
}

/* Legend */
.legend {
    margin: 20px 0;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
}

.legend h3 {
    color: #c9d1d9;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legend-item {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.legend-item:hover {
    opacity: 0.8;
}

.legend-item.staff {
    background: #da3633;
    color: #fff;
}

.legend-item.command {
    background: #bf8700;
    color: #fff;
}

.legend-item.supervisors {
    background: #1f6feb;
    color: #fff;
}

.legend-item.civilian-supervisors {
    background: #8957e5;
    color: #fff;
}

.legend-item.detectives {
    background: #bc4c00;
    color: #fff;
}

.legend-item.lspd {
    background: #6e7681;
    color: #fff;
}

.legend-item.civilian {
    background: #57606a;
    color: #fff;
}

/* Online Section */
.online-section {
    margin: 20px 0;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
}

.online-section h3 {
    color: #c9d1d9;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.online-info p {
    margin-bottom: 8px;
    color: #8b949e;
    font-size: 12px;
}

.online-info strong {
    color: #c9d1d9;
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: #0d1117;
    padding: 20px 0;
    border-top: 1px solid #21262d;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 11px;
}

.footer-links a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.separator {
    margin: 0 8px;
    color: #8b949e;
}

.footer-copyright {
    color: #8b949e;
    font-size: 11px;
}

.footer-copyright a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .forum-item {
        grid-template-columns: 50px 1fr;
        gap: 15px;
    }

    .forum-stats,
    .forum-last-post {
        grid-column: 2;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
    }

    .forum-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
    }

    .site-title h1 {
        font-size: 20px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .forum-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .forum-icon {
        display: none;
    }

    .legend-items {
        flex-direction: column;
    }

    .legend-item {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .emergency-bar {
        font-size: 12px;
    }

    .site-title h1 {
        font-size: 18px;
    }

    .motto {
        font-size: 14px;
    }

    .user-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-register,
    .btn-login {
        width: 100%;
    }
}
