/* CSS Variables */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --bg-card-hover: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #a8b2bd;
    --text-muted: #7d8590;
    --border-color: #30363d;
    --accent: #00ffaa;
    --accent-secondary: #66ffcc;
    --accent-glow: rgba(0, 255, 170, 0.15);
    --accent-hover: #66ffcc;
    --light-gray: #c9d1d9;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 255, 170, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --status-online: #22c55e;
    --status-offline: #ef4444;
    --status-checking: #f59e0b;
}

/* Accent Color Themes */
[data-accent="mint"] {
    --accent: #00ffaa;
    --accent-secondary: #66ffcc;
    --accent-glow: rgba(0, 255, 170, 0.15);
    --shadow-glow: 0 0 20px rgba(0, 255, 170, 0.2);
}

[data-accent="ocean"] {
    --accent: #0ea5e9;
    --accent-secondary: #38bdf8;
    --accent-glow: rgba(14, 165, 233, 0.15);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.2);
}

[data-accent="violet"] {
    --accent: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.2);
}

[data-accent="rose"] {
    --accent: #fb7185;
    --accent-secondary: #fda4af;
    --accent-glow: rgba(251, 113, 133, 0.15);
    --shadow-glow: 0 0 20px rgba(251, 113, 133, 0.2);
}

[data-accent="amber"] {
    --accent: #fbbf24;
    --accent-secondary: #fcd34d;
    --accent-glow: rgba(251, 191, 36, 0.15);
    --shadow-glow: 0 0 20px rgba(251, 191, 36, 0.2);
}

[data-accent="lime"] {
    --accent: #a3e635;
    --accent-secondary: #bef264;
    --accent-glow: rgba(163, 230, 53, 0.15);
    --shadow-glow: 0 0 20px rgba(163, 230, 53, 0.2);
}

[data-accent="crimson"] {
    --accent: #dc2626;
    --accent-secondary: #ef4444;
    --accent-glow: rgba(220, 38, 38, 0.15);
    --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.2);
}

[data-accent="gold"] {
    --accent: #d4a520;
    --accent-secondary: #f0c040;
    --accent-glow: rgba(212, 165, 32, 0.15);
    --shadow-glow: 0 0 20px rgba(212, 165, 32, 0.2);
}

[data-accent="electric"] {
    --accent: #00d9ff;
    --accent-secondary: #66e5ff;
    --accent-glow: rgba(0, 217, 255, 0.15);
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.2);
}

[data-accent="magenta"] {
    --accent: #e040fb;
    --accent-secondary: #ea80fc;
    --accent-glow: rgba(224, 64, 251, 0.15);
    --shadow-glow: 0 0 20px rgba(224, 64, 251, 0.2);
}

/* Rainbow Dynamic Theme */
[data-accent="rainbow"] {
    --accent: hsl(var(--rainbow-hue, 0), 100%, 60%);
    --accent-secondary: hsl(var(--rainbow-hue, 0), 100%, 70%);
    --accent-glow: hsla(var(--rainbow-hue, 0), 100%, 60%, 0.15);
    --shadow-glow: 0 0 20px hsla(var(--rainbow-hue, 0), 100%, 60%, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.15s ease;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Background Glow - applied via JS to use current accent */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at top, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, var(--accent-glow) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 5;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 200px 1fr 220px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 100vh;
    position: relative;
    z-index: 5;
}

/* Sidebars */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-left {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.sidebar-right {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;
}

.sidebar-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--accent);
    font-size: 0.9rem;
}

.sidebar-admin {
    margin-top: auto;
}

/* User Info */
.user-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-gray);
    margin-bottom: 12px;
}

.user-info-header i {
    color: var(--accent);
    font-size: 1rem;
}

.ip-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-row .label {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.ip-row .value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: monospace;
    flex: 1;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.copy-btn:hover {
    color: var(--accent-secondary);
    background: var(--bg-primary);
}

.copy-btn.copied {
    color: var(--status-online);
}

/* Calendar */
.calendar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.calendar-header h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: capitalize;
}

.calendar-nav {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    color: var(--accent);
    background: var(--bg-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.calendar-day-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 4px 0;
    text-transform: uppercase;
}

.calendar-day {
    font-size: 0.75rem;
    padding: 4px 2px;
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.4;
}

.calendar-day.today {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 600;
}

.calendar-day.weekend {
    color: var(--accent);
}

.calendar-day.other-month.weekend {
    color: var(--accent);
    opacity: 0.3;
}

.calendar-day {
    cursor: pointer;
    position: relative;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.today:hover {
    background: var(--accent);
    filter: brightness(1.2);
}

.calendar-day.marked {
    background: var(--accent-glow);
    border: 1px solid var(--accent);
}

.calendar-day.marked.today {
    background: var(--accent);
    border: 1px solid var(--accent-secondary);
}

/* Market Widget */
.market-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;
}

.market-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-gray);
    margin-bottom: 12px;
}

.market-header i {
    color: var(--accent);
    font-size: 1rem;
}

.market-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.market-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.market-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 4px;
}

.market-value .arrow {
    font-size: 0.7rem;
    color: var(--accent);
}

.market-value .arrow.down {
    color: var(--text-muted);
}

/* Notes Widget */
.notes-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.add-note-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.add-note-btn:hover {
    background: var(--accent-glow);
}

.clear-completed-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.clear-completed-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 450px;
    overflow-y: auto;
}

.note-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    position: relative;
    transition: all 0.2s ease;
    border-left: 3px solid var(--accent);
}

.note-item:hover {
    border-color: var(--accent);
}

.note-item.completed .note-text {
    text-decoration: line-through;
    opacity: 0.5;
}

.note-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.note-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.note-checkbox:hover {
    background: var(--accent-glow);
}

.note-item.completed .note-checkbox {
    background: var(--accent);
}

.note-item.completed .note-checkbox::after {
    content: '✓';
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: bold;
}

.note-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.note-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.2s ease;
}

.note-item:hover .note-delete {
    opacity: 1;
}

.note-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.note-input-wrapper {
    display: flex;
    gap: 8px;
}

.note-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
}

.note-input:focus {
    outline: none;
    border-color: var(--accent);
}

.note-input::placeholder {
    color: var(--text-muted);
}

.empty-notes {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 20px 0;
}

/* Bookmarks List */
.bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bookmark-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
}

.bookmark-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.bookmark-item i {
    color: var(--accent);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.bookmark-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookmark-item .remove-bookmark {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 1px solid var(--accent-secondary);
    color: var(--bg-primary);
    font-size: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.bookmark-item .remove-bookmark:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

.bookmark-item:hover .remove-bookmark {
    display: flex;
}

/* Main Content */
.main-content {
    min-width: 0;
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.settings-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-toggle:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.settings-content {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    min-width: 180px;
    box-shadow: var(--shadow);
}

.settings-panel.active .settings-content {
    display: block;
}

.settings-content h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    margin-top: 15px;
}

.settings-content h4:first-child {
    margin-top: 0;
}

/* Toggle Switch */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    border-radius: 22px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-glow);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
    background: var(--accent);
}

.accent-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.accent-btn {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accent-btn:hover {
    transform: scale(1.1);
}

.accent-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 10px currentColor;
}

.accent-btn.random-btn {
    background: linear-gradient(135deg, #ef4444, #f97316, #eab308, #22c55e, #06b6d4, #3b82f6, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.accent-btn.random-btn:hover {
    animation: rainbow-spin 1s linear infinite;
}

@keyframes rainbow-spin {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-family: 'Rubik Glitch', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.logo span {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.clock {
    font-size: 1.5rem;
    color: var(--light-gray);
    font-weight: 300;
    font-variant-numeric: tabular-nums;
}

/* Search Box */
.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    transition: all 0.3s ease;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    cursor: text;
    position: relative;
    z-index: 10;
}

.search-box:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 40px var(--accent-glow), 0 0 80px var(--accent-glow);
}

.search-box i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
    padding: 8px 0;
    min-width: 0;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Content Grid - Notes + Services */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-bottom: 40px;
}

.notes-column {
    min-width: 0;
}

.notes-column .notes-widget {
    position: sticky;
    top: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
}

.notes-column .notes-list {
    max-height: calc(100vh - 350px);
}

.services-column {
    min-width: 0;
}

.search-buttons {
    display: flex;
    gap: 8px;
}

.search-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.search-btn[data-engine="google"]:hover {
    background: #4285f4;
    border-color: #4285f4;
}

.search-btn[data-engine="yandex"]:hover {
    background: #fc3f1d;
    border-color: #fc3f1d;
}

.search-btn[data-engine="duckduckgo"]:hover {
    background: #de5833;
    border-color: #de5833;
}

.duck-icon {
    font-size: 1.1rem;
    filter: grayscale(100%) brightness(0.6) contrast(1.2);
    transition: filter 0.2s ease;
}

.search-btn[data-engine="duckduckgo"]:hover .duck-icon {
    filter: grayscale(0%) brightness(1) contrast(1);
}

.grok-icon {
    font-size: 1.3rem;
    font-weight: 900;
    font-family: Arial, sans-serif;
    color: var(--text-secondary);
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.2s ease;
}

.search-btn[data-engine="grok"]:hover .grok-icon {
    filter: grayscale(0%) brightness(1);
    color: #ffffff;
}

.search-btn[data-engine="grok"]:hover {
    background: #000000;
    border-color: #ffffff;
    color: #ffffff;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1rem;
    color: var(--accent);
}

.section-title .clear-completed-btn,
.section-title .add-note-btn {
    margin-left: auto;
}

.section-title .add-note-btn {
    margin-left: 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: grab;
}

.card:active {
    cursor: grabbing;
}

.card.dragging {
    opacity: 0.5;
    transform: scale(1.02);
}

.card.drag-over {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.card-secondary {
    opacity: 0.7;
}

.card-secondary:hover {
    opacity: 1;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    background: var(--accent);
    color: var(--bg-primary);
}

.card-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-content p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.status-badge[data-status="online"] {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}

.status-badge[data-status="offline"] {
    background: rgba(127, 127, 127, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.status-badge[data-status="checking"] {
    background: rgba(127, 127, 127, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Admin Section */
.section-admin {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 30px;
}

.section-admin .section-title {
    margin-bottom: 15px;
}

.admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.admin-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent);
}

/* Admin Link in Sidebar */
.sidebar .admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.sidebar .admin-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent);
}

.sidebar .admin-link i {
    color: var(--accent);
}

/* Add Bookmark Button */
.add-bookmark-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.add-bookmark-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.modal-btn.cancel {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.modal-btn.cancel:hover {
    background: var(--bg-card-hover);
}

.modal-btn.save {
    background: var(--accent);
    color: var(--bg-primary);
}

.modal-btn.save:hover {
    background: var(--accent-hover);
}

/* Notifications */
.notifications {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.notification.error {
    border-color: var(--status-offline);
}

.notification.success {
    border-color: var(--status-online);
}

.notification i {
    font-size: 1.2rem;
}

.notification.error i {
    color: var(--status-offline);
}

.notification.success i {
    color: var(--status-online);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Question Marks Effect */
.question-marks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.question-mark {
    position: absolute;
    font-family: 'Rubik Glitch', cursive;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent-glow);
}

.question-mark.fast-fade {
    animation-duration: 0.5s !important;
}

@keyframes floatAway {
    0% {
        opacity: 0.7;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.3);
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-left,
    .sidebar-right {
        position: static;
    }
    
    .sidebar-left {
        order: -1;
    }
    
    .sidebar-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .sidebar-admin {
        margin-top: 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .notes-column .notes-widget {
        position: static;
    }
    
    .notes-column .notes-list {
        max-height: 200px;
    }
}

@media (max-width: 600px) {
    .layout {
        padding: 20px 15px;
    }

    .logo {
        font-size: 2.2rem;
    }

    .clock {
        font-size: 1.2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        padding: 12px 20px;
    }
    
    .settings-panel {
        top: 10px;
        right: 10px;
    }
    
    .settings-toggle {
        width: 40px;
        height: 40px;
    }
    
    .sidebar-right {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .link-card, .admin-link {
    animation: fadeIn 0.4s ease forwards;
}

.cards-grid .card:nth-child(1) { animation-delay: 0.05s; }
.cards-grid .card:nth-child(2) { animation-delay: 0.1s; }
.cards-grid .card:nth-child(3) { animation-delay: 0.15s; }
.cards-grid .card:nth-child(4) { animation-delay: 0.2s; }
.cards-grid .card:nth-child(5) { animation-delay: 0.25s; }
.cards-grid .card:nth-child(6) { animation-delay: 0.3s; }

/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.matrix-rain.hidden {
    display: none;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--accent);
    opacity: 0.08;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    animation: matrixFall linear forwards;
    pointer-events: none;
    user-select: none;
}

@keyframes matrixFall {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(calc(100vh + 100%));
        opacity: 0;
    }
}

/* Rainbow button animation */
.accent-btn[data-accent="rainbow"] {
    animation: rainbow-spin 3s linear infinite;
}
