/* ================================================
   ADMIN CHECKS - Modern Dark Theme CSS
   ================================================ */

/* CSS Custom Properties (Variables) */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    --bg-hover: #30363d;
    
    --accent-primary: #58a6ff;
    --accent-secondary: #3fb950;
    --accent-warning: #d29922;
    --accent-danger: #f85149;
    --accent-gradient: linear-gradient(135deg, #58a6ff 0%, #3fb950 100%);
    
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    --border-color: #30363d;
    --border-accent: #58a6ff;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(88, 166, 255, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* Light Mode Variables */
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #f0f2f5;
    --bg-card: #ffffff;
    --bg-hover: #f3f4f6;
    
    --accent-primary: #0969da;
    --accent-secondary: #1a7f37;
    --accent-warning: #9a6700;
    --accent-danger: #cf222e;
    
    --text-primary: #24292f;
    --text-secondary: #57606a;
    --text-muted: #8c959f;
    
    --border-color: #d0d7de;
    --border-accent: #0969da;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(9, 105, 218, 0.1);
}

/* ================================================
   BASE STYLES
   ================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   LAYOUT
   ================================================ */

.container-all {
    display: flex;
    min-height: 100vh;
}

/* ================================================
   SIDEBAR
   ================================================ */

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    transition: width var(--transition-normal), min-width var(--transition-normal);
    z-index: 100;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.sidebar .logo:hover {
    background: var(--bg-hover);
}

.sidebar .logo img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-normal);
}

.sidebar .logo:hover img {
    transform: scale(1.05);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar ul li {
    margin: 2px 0;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar ul li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar ul li a.active,
.sidebar ul li.active a {
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent-primary);
}

.sidebar-icon {
    font-size: 1.2em;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-text {
    transition: opacity var(--transition-fast);
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
}

.sidebar.collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .logo img {
    height: 36px;
}

.sidebar.collapsed ul li a {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed ul li a:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    margin-left: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

/* Sidebar Section Dividers */
.sidebar-section {
    padding: 16px 14px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.sidebar.collapsed .sidebar-section {
    display: none;
}

/* ================================================
   MAIN CONTENT
   ================================================ */

.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .subtitle {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Content Area */
.content {
    flex: 1;
    padding: 24px 32px 80px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* Page Title */
.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title .icon {
    font-size: 1.3em;
}

/* ================================================
   CARDS
   ================================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.card:hover::before {
    opacity: 1;
}

.card h3, .card h4 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.card-scroll {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
    max-height: 200px;
    overflow-y: auto;
    word-break: break-word;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.card-scroll::-webkit-scrollbar {
    width: 6px;
}

.card-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.card-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Highlight Card (spans 2 columns) */
.card-highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(88, 166, 255, 0.05) 100%);
    border-color: var(--accent-primary);
}

/* Home Page Cards */
.home-card {
    text-align: center;
    padding: 28px 24px;
}

.home-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.home-card h3 {
    justify-content: center;
    margin-bottom: 8px;
}

.home-card p {
    margin-bottom: 20px;
}

/* ================================================
   BUTTONS
   ================================================ */

button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

button:hover, .btn:hover {
    background: #4c9aed;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

button:active, .btn:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

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

.btn-success:hover {
    background: #46c863;
}

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

/* Copy Button */
.copy-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.copy-btn:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.copy-btn.copied {
    background: var(--accent-secondary);
    color: #fff;
    border-color: var(--accent-secondary);
}

/* ================================================
   FORMS
   ================================================ */

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* Autofill Override */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-tertiary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

/* Input with Button */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
}

/* ================================================
   TABLES
   ================================================ */

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(88, 166, 255, 0.03);
}

/* Compare Table */
.compare-table th:first-child {
    width: 200px;
}

/* Result Table */
.result-table th {
    width: 180px;
    color: var(--accent-primary);
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.result-table td {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

/* ================================================
   STATUS INDICATORS
   ================================================ */

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
}

.status-success, .ok-green {
    color: var(--accent-secondary);
    background: rgba(63, 185, 80, 0.1);
}

.status-danger, .fail-red {
    color: var(--accent-danger);
    background: rgba(248, 81, 73, 0.1);
}

.status-warning {
    color: var(--accent-warning);
    background: rgba(210, 153, 34, 0.1);
}

.status-info {
    color: var(--accent-primary);
    background: rgba(88, 166, 255, 0.1);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--accent-primary);
    color: #fff;
}

/* ================================================
   MODALS
   ================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 90vw;
    max-height: 85vh;
    width: 600px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
}

.modal-body pre {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ================================================
   ALERTS & NOTIFICATIONS
   ================================================ */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
    color: var(--accent-secondary);
}

.alert-danger {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--accent-danger);
}

.alert-warning {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.3);
    color: var(--accent-warning);
}

.alert-info {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    color: var(--accent-primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================
   CODE DISPLAY
   ================================================ */

.codebox, code {
    font-family: var(--font-mono);
}

.codebox {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-x: auto;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
}

code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: var(--accent-primary);
}

/* ================================================
   LOADING STATES
   ================================================ */

.loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================================
   GEO CARD (für Who Am I, IP Info etc.)
   ================================================ */

.geo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.geo-card:hover {
    border-left-color: var(--accent-secondary);
    box-shadow: var(--shadow-glow);
}

.geo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.geo-header img {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.geo-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.geo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.geo-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.geo-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.geo-item .value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ================================================
   WHOIS DISPLAY
   ================================================ */

.whois-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whois-list li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.whois-list li:last-child {
    border-bottom: none;
}

.whois-label {
    min-width: 140px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ================================================
   THEME TOGGLE
   ================================================ */

#themeSwitcher {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 1.4em;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--accent-warning);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

#themeSwitcher:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

body.light-mode #themeSwitcher {
    color: var(--accent-primary);
}

/* ================================================
   PROGRESS BAR
   ================================================ */

.progress-container {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width var(--transition-normal);
}

/* Password Strength */
.strength-meter {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.strength-segment {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    transition: background var(--transition-fast);
}

.strength-segment.active { background: var(--accent-danger); }
.strength-segment.active.medium { background: var(--accent-warning); }
.strength-segment.active.strong { background: var(--accent-secondary); }

/* ================================================
   TABS
   ================================================ */

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--text-primary);
}

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

.tab-content {
    display: none;
}

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

/* ================================================
   UTILITIES
   ================================================ */

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--accent-secondary); }
.text-danger { color: var(--accent-danger); }
.text-warning { color: var(--accent-warning); }
.text-primary { color: var(--accent-primary); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .card-highlight {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .container-all {
        flex-direction: column;
    }
    
    .sidebar {
        position: relative;
        width: 100% !important;
        min-width: 100% !important;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-nav {
        padding: 8px;
    }
    
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .sidebar ul li a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .sidebar .sidebar-text {
        display: none;
    }
    
    .sidebar .logo {
        padding: 8px;
    }
    
    .sidebar .logo img {
        height: 36px;
    }
    
    .sidebar-section {
        display: none;
    }
    
    .header {
        padding: 16px 20px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .content {
        padding: 16px 16px 60px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 16px;
        padding: 20px;
    }
    
    #themeSwitcher {
        top: auto;
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .geo-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal);
}

.slide-up {
    animation: slideUp var(--transition-normal);
}

/* Card Animation on Load */
.card {
    animation: slideUp 0.4s ease backwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
    .sidebar,
    #themeSwitcher,
    .modal-overlay {
        display: none !important;
    }
    
    .main-content {
        width: 100%;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
