/* ===================================
   BONDR APP - CONSOLIDATED STYLES
   Version: 1.0
   Description: All styles from login, index, profile, and admin pages
   =================================== */

/* ===================================
   1. RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --secondary-color: #f8f8f8;
    --secondary-hover: #f0f0f0;
    --success-color: #059669;
    --success-hover: #047857;
    --warning-color: #f59e0b;
    --warning-hover: #d97706;
    --danger-color: #dc2626;
    --danger-hover: #b91c1c;
    
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #b9bbbe;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-dark: #2f3136;
    --bg-darker: #40444b;
    
    /* Border Colors */
    --border-primary: #e1e1e1;
    --border-secondary: #f0f0f0;
    --border-dark: #4f545c;
    
    /* Discord-like Colors (for login) */
    --discord-primary: #7289da;
    --discord-hover: #677bc4;
    --discord-dark: #2f3136;
    --discord-darker: #40444b;
    --discord-text: #dcddde;
    
    /* Viewport Height Variable */
    --vh: 1vh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===================================
   2. LOGIN PAGE STYLES
   =================================== */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: var(--discord-dark);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.login-header {
    background: var(--discord-primary);
    padding: 30px;
    text-align: center;
    color: white;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.login-header p {
    opacity: 0.9;
    font-size: 14px;
}

.login-body-content {
    padding: 30px;
}

.tab-buttons {
    display: flex;
    margin-bottom: 20px;
    background: var(--discord-darker);
    border-radius: 4px;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.tab-button.active {
    background: var(--discord-primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.registration-note {
    background: #faa61a;
    color: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: var(--discord-primary);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* ===================================
   3. MAIN APP LAYOUT
   =================================== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    position: relative;
    overflow: hidden;
}

/* ===================================
   4. HEADERS
   =================================== */
.header {
    background: var(--bg-secondary);
    padding: 20px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Mobile Header */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-logo {
    height: 28px;
    width: auto;
}

.mobile-nav {
    display: flex;
    gap: 10px;
}

.mobile-nav-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    position: relative;
}

.mobile-nav-btn:hover,
.mobile-nav-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* ===================================
   5. SIDEBARS
   =================================== */
/* Desktop Sidebar */
.sidebar {
    width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    display: none;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-primary);
}

.site-name {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-name img {
    height: 32px;
    width: auto;
    max-width: 100%;
}

/* Mobile Sidebar */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.mobile-sidebar-overlay.show {
    display: block;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 2001;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.show {
    left: 0;
}

.mobile-sidebar-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Categories */
.categories-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.category-item {
    padding: 12px 16px;
    margin: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
}

.category-item:hover {
    background: var(--secondary-hover);
    color: var(--text-primary);
}

.category-item.active {
    background: var(--primary-color);
    color: var(--text-white);
}

.category-icon {
    margin-right: 12px;
    font-size: 18px;
}

/* ===================================
   6. USER AREA & PROFILES
   =================================== */
.user-area {
    padding: 15px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.user-profile:hover {
    background: var(--secondary-hover);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 600;
    color: var(--text-white);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.user-status {
    font-size: 14px;
    color: var(--text-secondary);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    bottom: 100%;
    left: 15px;
    right: 15px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    padding: 15px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-secondary);
    font-size: 16px;
}

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

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item.logout {
    color: var(--danger-color);
    font-weight: 600;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
}

/* ===================================
   7. MAIN CONTENT AREA
   =================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-header {
    background: var(--bg-primary);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.channel-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 18px;
}

/* ===================================
   8. MESSAGES & POSTS
   =================================== */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: var(--bg-primary);
    -webkit-overflow-scrolling: touch;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    background: #fafafa;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 600;
    color: var(--text-white);
    flex-shrink: 0;
    overflow: hidden;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.message-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 10px;
    font-size: 14px;
}

.message-author a {
    color: inherit;
    text-decoration: none;
}

.message-author a:hover,
.chat-author a:hover {
    text-decoration: underline !important;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
}

.message-text {
    line-height: 1.6;
    color: #333333;
    word-wrap: break-word;
    font-size: 15px;
}

/* Message Reactions */
.message-reactions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.reaction-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reaction-btn:hover {
    background: var(--secondary-hover);
    transform: scale(1.05);
}

.reaction-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.reaction-count {
    font-weight: 600;
    min-width: 12px;
}

/* Message Tags */
.message-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* ===================================
   9. INPUT AREAS
   =================================== */
.message-input-container {
    padding: 15px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Markdown Toolbar */
.markdown-toolbar,
.mobile-markdown-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    padding: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.markdown-btn,
.mobile-markdown-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.markdown-btn:hover,
.mobile-markdown-btn:hover {
    background: var(--secondary-hover);
}

.preview-toggle,
.mobile-preview-toggle {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    font-weight: 600;
    white-space: nowrap;
}

.preview-toggle:hover,
.mobile-preview-toggle:hover {
    background: var(--primary-hover);
}

.preview-toggle.active,
.mobile-preview-toggle.active {
    background: var(--success-color);
}

.preview-toggle.active:hover,
.mobile-preview-toggle.active:hover {
    background: var(--success-hover);
}

/* Text Areas */
.message-input,
.mobile-message-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-primary);
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.message-input:focus,
.mobile-message-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.message-input::placeholder,
.mobile-message-input::placeholder {
    color: var(--text-muted);
}

.preview-container,
.mobile-preview-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    display: none;
    color: #333333;
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    font-weight: 600;
}

.post-button:hover {
    background: var(--primary-hover);
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.markdown-help,
.mobile-markdown-help {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===================================
   10. CHAT PANEL
   =================================== */
.chat-panel {
    width: 300px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-primary);
    display: none;
    flex-direction: column;
}

.chat-header {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-primary);
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.chat-messages,
.mobile-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
}

.chat-message.own {
    flex-direction: row-reverse;
}

.chat-message.own .message-bubble {
    background: var(--primary-color);
    color: white;
}

.chat-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 12px;
    margin-bottom: 4px;
}

.chat-author a {
    color: inherit;
    text-decoration: none;
}

.chat-text {
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
}

.chat-input {
    padding: 15px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    padding-right: 5px;
}

.chat-input input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    min-width: 0;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.chat-input input::placeholder {
    color: var(--text-muted);
}

.chat-send-button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    font-family: inherit;
    font-weight: 600;
    flex-shrink: 0;
    min-width: max-content;
}

.chat-send-button:hover {
    background: var(--primary-hover);
}

/* ===================================
   11. MOBILE SPECIFIC
   =================================== */
/* Mobile Chat Modal */
.mobile-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 3000;
    display: none;
    flex-direction: column;
}

.mobile-chat-modal.show {
    display: flex;
}

.mobile-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    font-weight: 600;
}

.mobile-chat-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.mobile-chat-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
}

.mobile-chat-input input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 16px;
    font-family: inherit;
}

.mobile-chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.mobile-chat-send-btn {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-chat-send-btn:hover {
    background: var(--primary-hover);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: flex;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
    padding: 10px 0;
    justify-content: space-around;
    position: sticky;
    bottom: 0;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.active {
    background: var(--secondary-hover);
    color: var(--primary-color);
}

.mobile-bottom-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Mobile Post FAB */
.mobile-post-fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.fab-button:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.fab-button:active {
    transform: scale(0.95);
}

/* Mobile Post Modal */
.mobile-post-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-post-modal.show {
    display: flex;
}

.post-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.post-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.post-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.post-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-primary);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: var(--bg-secondary);
}

.post-modal-cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    font-weight: 500;
}

.post-modal-cancel:hover {
    background: var(--secondary-hover);
}

.post-modal-submit {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    font-weight: 600;
}

.post-modal-submit:hover {
    background: var(--primary-hover);
}

.post-modal-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* ===================================
   12. FORMS
   =================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    background: var(--discord-darker);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    color: var(--discord-text);
    font-size: 16px;
    transition: border-color 0.2s;
}

input:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.file-input {
    display: none;
}

/* ===================================
   13. BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    margin-right: 10px;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

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

.btn-secondary:hover {
    background: var(--secondary-hover);
}

.btn-success {
    background: var(--success-color);
    color: var(--text-white);
}

.btn-success:hover {
    background: var(--success-hover);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--text-white);
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: var(--discord-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}

button[type="submit"]:hover {
    background: var(--discord-hover);
}

.back-btn,
.nav-btn,
.back-link {
    background: var(--primary-color);
    color: var(--text-white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.back-btn:hover,
.nav-btn:hover,
.back-link:hover {
    background: var(--primary-hover);
}

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

.nav-btn.secondary:hover {
    background: var(--secondary-hover);
}

.action-btn {
    background: none;
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--bg-secondary);
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.action-btn.primary:hover {
    background: var(--primary-hover);
}

/* Admin specific buttons */
.btn-approve {
    background: var(--success-color);
    color: white;
}

.btn-approve:hover {
    background: var(--success-hover);
}

.btn-reject,
.btn-delete {
    background: var(--danger-color);
    color: white;
}

.btn-reject:hover,
.btn-delete:hover {
    background: var(--danger-hover);
}

.btn-moderate {
    background: var(--warning-color);
    color: white;
}

.btn-moderate:hover {
    background: var(--warning-hover);
}

/* ===================================
   14. BADGES & NOTIFICATIONS
   =================================== */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-banned {
    background: #fee2e2;
    color: #991b1b;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.role-admin {
    background: #ddd6fe;
    color: #5b21b6;
}

.role-moderator {
    background: #fef3c7;
    color: #92400e;
}

.role-member {
    background: #f3f4f6;
    color: #374151;
}

/* ===================================
   15. MESSAGES & ALERTS
   =================================== */
.message,
.success {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #a7f3d0;
}

.error {
    background: #fef2f2;
    color: var(--danger-color);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

/* Login specific success/error */
.login-body .error {
    background: #f04747;
    color: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    border: none;
}

.login-body .success {
    background: #43b581;
    color: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    border: none;
}

/* ===================================
   16. MODALS
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-primary);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===================================
   17. PROFILE PAGE SPECIFIC
   =================================== */
.profile-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.main-profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.profile-card,
.friends-card,
.reviews-card,
.actions-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-header {
    background: var(--bg-secondary);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-primary);
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 600;
    color: var(--text-white);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-role {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.stars {
    color: #fbbf24;
    font-size: 18px;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-body {
    padding: 30px;
}

.profile-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.profile-info {
    display: grid;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-number {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Friends & Reviews */
.card-header {
    background: var(--bg-secondary);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-primary);
    font-weight: 600;
    font-size: 16px;
}

.card-body {
    padding: 20px;
}

.friend-item,
.review-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-secondary);
}

.friend-item:last-child,
.review-item:last-child {
    border-bottom: none;
}

.friend-avatar,
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 600;
    margin-right: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.friend-avatar img,
.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-info,
.review-info {
    flex: 1;
}

.friend-name,
.review-author {
    font-weight: 600;
    margin-bottom: 2px;
}

.friend-since,
.review-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-rating {
    color: #fbbf24;
    margin-bottom: 5px;
}

.review-text {
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
}

.friend-actions {
    display: flex;
    gap: 5px;
}

/* Pending Requests */
.pending-requests {
    margin-bottom: 20px;
}

.request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    margin-bottom: 10px;
}

.request-actions {
    display: flex;
    gap: 5px;
}

/* ===================================
   18. ADMIN PAGE SPECIFIC
   =================================== */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-primary);
}

.admin-title {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Admin Stats Grid */
.admin-container .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-primary);
}

/* Admin Sections */
.admin-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 18px;
}

.section-content {
    padding: 20px;
}

.user-list,
.post-list {
    display: grid;
    gap: 15px;
}

.user-item,
.post-item {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-primary);
}

.user-info,
.post-info {
    flex: 1;
}

.user-name,
.post-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.user-email,
.post-preview {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.post-preview {
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-meta,
.post-meta {
    font-size: 12px;
    color: var(--text-muted);
}

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

/* ===================================
   19. UTILITIES
   =================================== */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-style: italic;
}

.online-users {
    padding: 15px;
    border-top: 1px solid var(--border-primary);
}

.online-user {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.online-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-right: 10px;
}

.online-name {
    font-size: 12px;
    color: #333333;
    font-weight: 500;
}

/* Search Box */
.search-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 8px 15px;
    color: var(--text-primary);
    width: 200px;
    font-family: inherit;
    font-size: 14px;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.search-box::placeholder {
    color: var(--text-muted);
}

.search-results {
    max-height: 200px;
    overflow-y: auto;
}

.user-search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-secondary);
    cursor: pointer;
}

.user-search-item:hover {
    background: var(--bg-secondary);
}

/* ===================================
   20. MARKDOWN STYLES
   =================================== */
.message-text h1,
.message-text h2,
.message-text h3 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    color: var(--text-primary);
}

.message-text h1 {
    font-size: 20px;
    border-bottom: 2px solid var(--border-primary);
    padding-bottom: 8px;
}

.message-text h2 {
    font-size: 18px;
}

.message-text h3 {
    font-size: 16px;
}

.message-text strong {
    font-weight: 600;
    color: var(--text-primary);
}

.message-text em {
    font-style: italic;
}

.message-text del {
    text-decoration: line-through;
    opacity: 0.7;
}

.message-text code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    color: var(--primary-color);
}

.message-text pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    overflow-x: auto;
}

.message-text pre code {
    background: none;
    padding: 0;
    color: #333333;
    font-size: 14px;
}

.message-text blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
    margin: 12px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.message-text ul,
.message-text ol {
    margin: 12px 0;
    padding-left: 24px;
}

.message-text li {
    margin: 4px 0;
}

.message-text hr {
    border: none;
    border-top: 2px solid var(--border-primary);
    margin: 20px 0;
}

.message-text a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
}

.message-text a:hover {
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
}

.message-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
}

/* ===================================
   21. USER MENTIONS
   =================================== */
.user-mention {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.user-mention:hover {
    background: rgba(220, 38, 38, 0.2);
    text-decoration: none;
}

.mention-dropdown {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

.mention-item.selected {
    background: var(--secondary-hover) !important;
}

.everyone-mention {
    background: rgba(220, 38, 38, 0.2) !important;
    font-weight: 700 !important;
}

/* ===================================
   22. SCROLLBAR STYLING
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

/* ===================================
   23. LOGO OPTIMIZATION
   =================================== */
/* Desktop Sidebar Logo */
.sidebar .site-name img {
    height: auto !important;
    width: 100% !important;
    max-width: 220px !important;
    max-height: 80px !important;
    object-fit: contain;
}

/* Mobile Header Logo */
.mobile-logo {
    height: auto !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: 180px !important;
    object-fit: contain;
}

/* Mobile Sidebar Logo */
.mobile-sidebar-header img {
    height: auto !important;
    width: 100% !important;
    max-width: 200px !important;
    max-height: 50px !important;
    object-fit: contain;
}

/* Adjust sidebar header padding to accommodate larger logo */
.sidebar-header {
    padding: 15px;
}

/* Adjust mobile header to fit logo better */
.mobile-header {
    padding: 8px 15px;
    min-height: 56px;
}

.mobile-sidebar-header {
    padding: 12px 15px;
}

/* Ensure logo containers use full space */
.site-name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Remove any constraints on the container */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   24. RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    /* Hide desktop elements */
    .message-input-container.desktop-only {
        display: none !important;
    }
    
    .mobile-post-fab {
        display: block !important;
    }
    
    .sidebar {
        display: none !important;
    }
    
    .chat-panel {
        display: none !important;
    }
    
    /* Mobile layout adjustments */
    .app-container {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        display: flex;
        flex-direction: column;
    }
    
    .mobile-header {
        padding: 8px 15px;
        min-height: 50px;
    }
    
    .messages-container {
        flex: 1;
        overflow-y: auto;
        padding: 10px 15px;
        min-height: 0;
        max-height: calc(100vh - 140px);
    }
    
    .mobile-bottom-nav {
        padding: 8px 0;
        min-height: 60px;
    }
    
    .mobile-bottom-nav-item {
        padding: 6px;
        font-size: 11px;
    }
    
    .mobile-bottom-nav-icon {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .message {
        margin-bottom: 12px;
        padding: 12px;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .content-header {
        padding: 10px 15px;
        flex-shrink: 0;
    }
    
    .channel-name {
        font-size: 16px;
    }
    
    .search-box {
        width: 150px;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .main-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    
    /* Profile page mobile */
    .profile-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px auto;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    /* Admin page mobile */
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-item,
    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-actions,
    .post-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .admin-container .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    /* Height adjustments for smaller screens */
    @media (max-height: 600px) {
        .messages-container {
            max-height: calc(100vh - 180px);
        }
    }
}

/* Landscape mode */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-header {
        padding: 5px 15px;
        min-height: 45px;
    }
    
    .mobile-bottom-nav {
        padding: 5px 0;
        min-height: 50px;
    }
    
    .messages-container {
        max-height: calc(100vh - 160px);
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .mobile-post-fab {
        display: none !important;
    }
    
    .mobile-post-modal {
        display: none !important;
    }
    
    .message-input-container.desktop-only {
        display: block !important;
    }
    
    .app-container {
        flex-direction: row;
    }
    
    .mobile-header,
    .mobile-bottom-nav {
        display: none;
    }
    
    .sidebar {
        display: flex;
    }
    
    .mobile-sidebar {
        display: none !important;
    }
    
    .mobile-sidebar-overlay {
        display: none !important;
    }
    
    .search-box {
        width: 250px;
    }
    
    .content-header {
        padding: 20px;
    }
    
    .messages-container {
        padding: 20px;
    }
    
    .message-input-container {
        padding: 20px;
    }
    
    .message-input {
        min-height: 80px;
        font-size: 14px;
    }
    
    .post-button {
        font-size: 14px;
    }
    
    .chat-panel {
        width: 300px;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-primary);
        display: flex;
        flex-direction: column;
    }
    
    .desktop-notifications {
        padding: 12px;
        border-bottom: 1px solid var(--border-primary);
    }
}

/* Larger desktop screens */
@media (min-width: 1200px) {
    .sidebar .site-name img {
        max-height: 100px !important;
        max-width: 100% !important;
    }
    
    .sidebar-header {
        padding: 20px 10px;
    }
}

/* Small mobile screens */
@media (max-width: 360px) {
    .mobile-logo {
        max-height: 36px !important;
    }
    
    .mobile-sidebar-header img {
        max-height: 45px !important;
    }
}

/* ===================================
   25. CHAT MESSAGE STYLES
   =================================== */
.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chat-message.own {
    flex-direction: row-reverse;
}

.message-bubble {
    background: var(--bg-secondary);
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 70%;
    word-wrap: break-word;
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* ===================================
   26. TABS
   =================================== */
.tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===================================
   27. PRINT STYLES
   =================================== */
@media print {
    .mobile-header,
    .mobile-bottom-nav,
    .sidebar,
    .chat-panel,
    .message-input-container,
    .mobile-post-fab,
    .header-actions,
    .user-dropdown,
    .modal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .message {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* ===================================
   28. ACCESSIBILITY
   =================================== */
/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff0000;
        --text-primary: #000000;
        --bg-primary: #ffffff;
        --border-primary: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ===================================
   29. LOADING STATES
   =================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   30. NOTIFICATION MODAL
   =================================== */
.notification-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* ===================================
   END OF STYLESHEET
   =================================== */
