/* RustyForum - Minimal, Clean Stylesheet */

:root {
    --primary-color: #d97706;
    --primary-hover: #b45309;
    --secondary-color: #64748b;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #475569;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Navigation Bar */
.navbar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--surface-light);
}

.nav-cta {
    background-color: var(--primary-color);
    color: white;
}

.nav-cta:hover {
    background-color: var(--primary-hover);
}

.notification-badge {
    background-color: var(--error);
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    margin-top: 0.5rem;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a,
.dropdown-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.dropdown-content a:hover,
.dropdown-link:hover {
    background-color: var(--surface-light);
    color: var(--text-primary);
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Home Page */
.welcome-section {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.welcome-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--surface-light);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--border);
}

.btn-block {
    width: 100%;
}

/* Categories */
.categories-section {
    margin-top: 3rem;
}

.categories-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.categories-list {
    display: grid;
    gap: 1.5rem;
}

.category-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.category-card:hover {
    border-color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-header h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.category-header h3 a:hover {
    color: var(--primary-color);
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.category-stats {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.stat-value {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.category-last-activity {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.last-thread {
    color: var(--text-secondary);
}

.last-thread a {
    color: var(--text-primary);
    text-decoration: none;
}

.last-thread a:hover {
    color: var(--primary-color);
}

.time-ago {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.no-activity {
    color: var(--text-muted);
    font-style: italic;
}

/* Stats Section */
.stats-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.forum-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--background) 0%, #1a2332 100%);
}

.auth-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-help {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-secondary);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s;
    z-index: 1000;
}

.notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* ============================================================================
   Thread List Styles
   ============================================================================ */

.threads-table {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.threads-header {
    display: grid;
    grid-template-columns: 1fr 80px 80px 180px;
    padding: 1rem 1.5rem;
    background-color: var(--surface-light);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.thread-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 180px;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    align-items: center;
    transition: background-color 0.2s;
}

.thread-row:hover {
    background-color: var(--surface-light);
}

.thread-row.pinned {
    background-color: rgba(217, 119, 6, 0.1);
}

.col-thread {
    min-width: 0;
}

.col-stats {
    text-align: center;
    color: var(--text-secondary);
}

.col-activity {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.thread-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.thread-title {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.thread-title:hover {
    color: var(--primary-color);
}

.thread-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.badge-pinned {
    background-color: var(--warning);
    color: var(--background);
}

.badge-locked {
    background-color: var(--secondary-color);
    color: white;
}

/* ============================================================================
   Thread/Post View Styles
   ============================================================================ */

.thread-page .page-header {
    margin-bottom: 2rem;
}

.thread-meta-header {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.post-sidebar {
    background-color: var(--surface-light);
    padding: 1.5rem;
    text-align: center;
    border-right: 1px solid var(--border);
}

.user-avatar img,
.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 0.75rem;
}

.avatar-placeholder.large {
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

.user-name {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.user-name:hover {
    color: var(--primary-color);
}

.user-role {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.role-user {
    background-color: var(--surface);
    color: var(--text-secondary);
}

.role-moderator {
    background-color: var(--warning);
    color: var(--background);
}

.role-admin {
    background-color: var(--error);
    color: white;
}

.user-posts {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-content {
    padding: 1.5rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.post-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.post-link {
    color: var(--text-muted);
    text-decoration: none;
}

.post-link:hover {
    color: var(--primary-color);
}

.post-body {
    line-height: 1.8;
    white-space: pre-wrap;
}

.post-edited {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.post-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Reply Form */
.reply-section {
    margin-top: 2rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.reply-section h3 {
    margin-bottom: 1rem;
}

.reply-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.thread-locked-notice,
.login-prompt {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
}

.login-prompt a {
    color: var(--primary-color);
}

/* ============================================================================
   New Thread Form
   ============================================================================ */

.thread-form {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 800px;
}

.thread-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
}

.thread-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.thread-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
}

/* ============================================================================
   Search Page
   ============================================================================ */

.search-form {
    margin-bottom: 2rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
}

.search-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--surface);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.results-info {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.result-card h3 {
    margin-bottom: 0.5rem;
}

.result-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.result-card h3 a:hover {
    color: var(--primary-color);
}

.result-snippet {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================================================
   Profile Page
   ============================================================================ */

.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info h1 {
    margin-bottom: 0.5rem;
}

.profile-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.profile-bio {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 600px;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.profile-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.profile-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.profile-section {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.profile-section h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.activity-item a:hover {
    color: var(--primary-color);
}

.activity-preview {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.activity-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ============================================================================
   Settings Page
   ============================================================================ */

.settings-form {
    max-width: 600px;
}

.settings-section {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-section h2 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* ============================================================================
   Notifications Page
   ============================================================================ */

.notifications-page .page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.unread-badge {
    background-color: var(--error);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    position: relative;
}

.notification-item.unread {
    background-color: rgba(217, 119, 6, 0.05);
    border-color: var(--primary-color);
}

.notification-avatar img,
.notification-avatar .avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.notification-content {
    flex: 1;
}

.notification-text {
    margin-bottom: 0.25rem;
}

.notification-text a {
    color: var(--text-primary);
    text-decoration: none;
}

.notification-text a:hover {
    color: var(--primary-color);
}

.actor-name {
    font-weight: 600;
}

.notification-preview {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ============================================================================
   Admin Pages
   ============================================================================ */

.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-nav-item {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.admin-nav-item:hover {
    background-color: var(--surface);
    color: var(--text-primary);
}

.admin-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stat-change {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--success);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.admin-section {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.admin-section h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.admin-table {
    overflow-x: auto;
}

.table-header,
.table-row {
    display: grid;
    gap: 1rem;
    padding: 0.75rem;
    align-items: center;
}

.admin-section .table-header {
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--surface-light);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.admin-section .table-row {
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}

.admin-content .table-header {
    grid-template-columns: repeat(6, 1fr);
}

.admin-content .table-row {
    grid-template-columns: repeat(6, 1fr);
}

.admin-page .admin-content .table-header {
    grid-template-columns: 1fr 1fr 100px 80px 80px 100px;
}

.admin-page .admin-content .table-row {
    grid-template-columns: 1fr 1fr 100px 80px 80px 100px;
}

/* Users table has 7 columns */
.admin-page[class*="users"] .table-header,
.admin-page .table-header:has(+ .table-row [onchange]) {
    grid-template-columns: 1fr 1.5fr 100px 60px 100px 100px 100px;
}

.admin-page .table-row:has([onchange]) {
    grid-template-columns: 1fr 1.5fr 100px 60px 100px 100px 100px;
}

.table-row a {
    color: var(--text-primary);
    text-decoration: none;
}

.table-row a:hover {
    color: var(--primary-color);
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.inline-form .form-group {
    margin-bottom: 0;
}

.inline-form input,
.inline-form select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.text-muted {
    color: var(--text-muted);
}

/* ============================================================================
   Pagination
   ============================================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.page-info {
    color: var(--text-secondary);
}

/* ============================================================================
   Breadcrumb
   ============================================================================ */

.breadcrumb {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* ============================================================================
   Page Header
   ============================================================================ */

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
}

.category-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .threads-header {
        display: none;
    }
    
    .thread-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .col-stats,
    .col-activity {
        font-size: 0.75rem;
    }
    
    .post-card {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .post-sidebar .user-avatar img,
    .post-sidebar .avatar-placeholder {
        width: 48px;
        height: 48px;
        margin: 0;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}