/* ========== VARIABLES ========== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.5);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

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

/* ========== BACKGROUND ========== */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.15;
    z-index: -1;
}

.background-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(199, 146, 234, 0.3), transparent 50%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ========== GLASS EFFECT ========== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ========== TOP NAVIGATION ========== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    padding: 0 2rem;
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-text {
    display: none;
}

@media (min-width: 768px) {
    .brand-text {
        display: inline;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

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

.nav-icon {
    font-size: 1.1rem;
}

.nav-label {
    display: none;
}

@media (min-width: 768px) {
    .nav-label {
        display: inline;
    }
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    display: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (min-width: 1024px) {
    .user-email {
        display: inline;
    }
}

.user-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

.user-badge.verified {
    background: var(--success);
    color: white;
}

.user-badge.admin {
    background: var(--primary);
    color: white;
}

.user-badge.unverified {
    background: var(--warning);
    color: white;
}

.btn-logout {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* ========== PAGE CONTENT ========== */
.page-content {
    padding: 100px 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========== AUTH SCREEN ========== */
.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-container {
    max-width: 450px;
    width: 100%;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand .brand-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.auth-brand h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-brand p {
    color: var(--text-secondary);
}

.auth-card {
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-content {
    display: none;
}

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

.auth-content input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
}

.auth-content input::placeholder {
    color: var(--text-secondary);
}

.auth-hint {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== BUTTONS ========== */
.btn-gradient {
    position: relative;
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--danger);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-danger-sm {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    background: var(--danger);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-send {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.btn-float:hover {
    transform: scale(1.1);
}

/* ========== GRIDS ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.content-grid {
    display: grid;
    gap: 1.5rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.files-grid {
    display: grid;
    gap: 1rem;
}

.wlan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.account-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
}

/* ========== CARDS ========== */
.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.stat-info p {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.news-card {
    padding: 1.5rem;
}

.news-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.news-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.solution-card {
    padding: 1.5rem;
    position: relative;
}

.subject-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.subject-tag.mathe { background: #3b82f6; }
.subject-tag.deutsch { background: #ec4899; }
.subject-tag.englisch { background: #10b981; }
.subject-tag.bio { background: #84cc16; }
.subject-tag.physik { background: #8b5cf6; }
.subject-tag.chemie { background: #f59e0b; }
.subject-tag.geschichte { background: #ef4444; }

.solution-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.solution-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.solution-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.game-card {
    padding: 1.5rem;
    text-align: center;
}

.game-card h3 {
    margin-bottom: 1rem;
}

.game-card .status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    background: var(--success);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.game-card .status.blocked {
    background: var(--danger);
}

.game-url {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-url:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.file-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 2rem;
}

.file-info {
    flex: 1;
}

.file-info h4 {
    margin-bottom: 0.3rem;
}

.btn-download {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.wlan-card {
    padding: 1.5rem;
}

.wlan-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.wlan-info {
    margin-bottom: 1rem;
}

.wlan-info label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.wlan-info input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
}

.password-field {
    display: flex;
    gap: 0.5rem;
}

.password-field input {
    flex: 1;
}

.account-card {
    padding: 1.5rem;
}

.account-card h2 {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-weight: 500;
    color: var(--text-secondary);
}

.account-card input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.danger-zone {
    border: 2px solid var(--danger);
}

/* ========== CHAT ========== */
.chat-container {
    padding: 1.5rem;
    height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    max-width: 70%;
}

.chat-message.own {
    margin-left: auto;
    background: var(--primary);
}

.chat-message.anon {
    background: rgba(251, 146, 60, 0.2);
}

.chat-sender {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary-light);
}

.chat-text {
    margin-bottom: 0.3rem;
}

.chat-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.chat-input-area {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.chat-controls {
    margin-bottom: 0.8rem;
}

.anon-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.8rem;
}

.chat-input-wrapper input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* ========== DMS ========== */
.dms-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 250px);
}

@media (max-width: 768px) {
    .dms-layout {
        grid-template-columns: 1fr;
    }
}

.dms-sidebar {
    padding: 1.5rem;
    overflow-y: auto;
}

.dms-sidebar h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.conv-avatar {
    font-size: 2rem;
}

.conv-info {
    flex: 1;
}

.conv-info h4 {
    margin-bottom: 0.3rem;
}

.conv-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dms-main {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.dm-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.dm-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.dm-message {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    max-width: 70%;
}

.dm-message.own {
    margin-left: auto;
    background: var(--primary);
}

.dm-text {
    margin-bottom: 0.3rem;
}

.dm-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dm-input-area {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    display: flex;
}

.dm-input-wrapper {
    display: flex;
    gap: 0.8rem;
    width: 100%;
}

.dm-input-wrapper input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* ========== ADMIN ========== */
.admin-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-section h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
}

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

.user-card {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.user-info strong {
    display: block;
    margin-bottom: 0.3rem;
}

.btn-verify {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: var(--success);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-verify:hover {
    background: #059669;
}

.admin-news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.news-info {
    flex: 1;
}

.news-info h4 {
    margin-bottom: 0.5rem;
}

/* ========== MODALS ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    padding: 2rem;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* ========== FILTER BAR ========== */
.filter-bar {
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

/* ========== ADD SECTION ========== */
.add-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.add-form {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.add-form h3 {
    margin-bottom: 1.5rem;
}

.add-form input,
.add-form textarea,
.add-form select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
}

/* ========== UPLOAD AREA ========== */
.upload-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========== NOTICES ========== */
.wlan-notice,
.games-notice,
.files-notice,
.chat-notice {
    padding: 1.5rem;
    margin-top: 2rem;
}

.wlan-notice h3,
.games-notice h3 {
    margin-bottom: 1rem;
}

.wlan-notice ul,
.games-notice ul {
    list-style: none;
    padding-left: 0;
}

.wlan-notice li,
.games-notice li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* ========== QUICK LINKS ========== */
.quick-links {
    padding: 1.5rem;
}

.quick-links h2 {
    margin-bottom: 1rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.link-icon {
    font-size: 2rem;
}

/* ========== RECENT NEWS ========== */
.recent-news {
    padding: 1.5rem;
}

.recent-news h2 {
    margin-bottom: 1rem;
}

.news-preview {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.news-preview:last-child {
    border-bottom: none;
}

.news-preview h4 {
    margin-bottom: 0.3rem;
}

.view-all {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    color: var(--primary-light);
}

/* ========== UTILITY ========== */
.info {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.error {
    color: var(--danger);
    padding: 1rem;
    text-align: center;
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem;
    border-radius: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

.toast.info {
    border-color: var(--primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .page-content {
        padding: 90px 1rem 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .chat-container {
        height: calc(100vh - 200px);
    }
    
    .dms-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .dms-sidebar {
        max-height: 300px;
    }
}
