/* ============================================
   Haber Botu Admin Panel - Dark Theme CSS
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-card: #1e2130;
    --bg-card-hover: #252839;
    --bg-input: #12141c;
    --border-color: #2a2d3a;
    --border-focus: #00f2ff;
    --text-primary: #e8e9ed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #00f2ff;
    --accent-hover: #00d8e4;
    --accent-light: rgba(0, 242, 255, 0.15);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-hover: #dc2626;
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --sidebar-width: 260px;
    --transition: 0.2s ease;
}

html { font-size: 15px; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Login Page ── */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 179, 255, 0.06) 0%, transparent 50%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    text-align: center;
}

.login-card {
    background: rgba(26, 29, 39, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(0, 242, 255, 0.5) !important;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2) !important;
    animation: login-neon-glow 3s infinite ease-in-out !important;
    max-width: 400px;
    width: 100%;
}

@keyframes login-neon-glow {
    0%, 100% { 
        border-color: rgba(0, 242, 255, 0.4); 
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.15); 
    }
    50% { 
        border-color: rgba(0, 242, 255, 1); 
        box-shadow: 0 0 40px rgba(0, 242, 255, 0.4); 
    }
}

.login-header { margin-bottom: 28px; }

.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 14px;
    color: var(--accent);
    margin-bottom: 16px;
    box-shadow: 0 0 15px var(--accent-light);
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

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

.login-form { text-align: left; }

.login-footer-text {
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── App Layout ── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(26, 29, 39, 0.65); /* Daha saydam arka plan */
    backdrop-filter: blur(15px); /* Cam efekti */
    -webkit-backdrop-filter: blur(15px); /* Safari desteği */
    border-right: 1px solid rgba(0, 242, 255, 0.3); /* Neon turkuaz başlangıç */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    animation: sidebar-neon-pulse 4s infinite ease-in-out;
}

@keyframes sidebar-neon-pulse {
    0%, 100% { border-right-color: rgba(0, 242, 255, 0.2); box-shadow: 2px 0 10px rgba(0, 242, 255, 0.05); }
    50% { border-right-color: rgba(0, 242, 255, 0.8); box-shadow: 4px 0 20px rgba(0, 242, 255, 0.2); }
}

.sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.logo svg { color: var(--accent); }

.sidebar-nav {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

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

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

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 255, 0.1);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 255, 0.3);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--accent-light);
    color: var(--accent);
}

.nav-link.active svg { color: var(--accent); }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ── Version Note ── */
.version-note {
    padding: 12px 20px;
    font-size: 10px;
    font-weight: 700;
    color: #00f2ff; /* Turkuaz */
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
    animation: version-glow 3s infinite ease-in-out;
    opacity: 0.8;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
}

/* ── Demo Mode ── */
.demo-banner {
    background: rgba(0, 242, 255, 0.05); /* Neon Turkuaz şeffaf arka plan */
    color: #00f2ff; /* Turkuaz metin */
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 99;
    backdrop-filter: blur(10px);
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.3);
}

.demo-banner strong {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.is-demo-mode .btn-primary,
.is-demo-mode .btn-danger,
.is-demo-mode .btn-success,
.is-demo-mode button[type="submit"] {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

.is-demo-mode .btn-delete,
.is-demo-mode a[href*="delete"],
.is-demo-mode a[href*="sil"] {
    display: none !important;
}

@keyframes version-glow {
    0%, 100% { opacity: 0.4; text-shadow: 0 0 5px rgba(0, 242, 255, 0.2); }
    50% { opacity: 1; text-shadow: 0 0 15px rgba(0, 242, 255, 0.8); }
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-logout {
    padding: 8px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

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

/* ── Menu Toggle (Mobile) ── */
.menu-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* ── Main Content ── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 0;
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 32px;
    gap: 15px;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 242, 255, 0.3);
    height: 60px;
    width: 100%;
    animation: topbar-neon-pulse 4s infinite ease-in-out;
}

@keyframes topbar-neon-pulse {
    0%, 100% { border-bottom-color: rgba(0, 242, 255, 0.2); box-shadow: 0 2px 10px rgba(0, 242, 255, 0.05); }
    50% { border-bottom-color: rgba(0, 242, 255, 0.8); box-shadow: 0 4px 20px rgba(0, 242, 255, 0.2); }
}

.notification-icon {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

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

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.content-wrapper { 
    width: 100%;
    max-width: none;
    padding: 32px;
    margin: 0;
    box-sizing: border-box;
}

/* ── Page Header ── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ── Dashboard Stats ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative;
    cursor: move;
}

.stat-card::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.stat-card:hover::after { opacity: 0.5; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue { background: var(--accent-light); color: var(--accent); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-icon.yellow { background: var(--warning-bg); color: var(--warning); }

.stat-info h3 {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ── Tables ── */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
}

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

thead th {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--bg-card-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-active {
    background: var(--success-bg);
    color: var(--success);
}

.badge-inactive {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-admin {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-editor {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-demo {
    background: rgba(156, 163, 175, 0.12);
    color: #9ca3af;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.93rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #1da34e;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

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

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

.btn-outline:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px;
}

.btn-group {
    display: flex;
    gap: 6px;
}

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Modal (inline form) ── */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.show { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow);
    max-height: 90vh; /* Ekran yüksekliğinin %90'ını geçmesin */
    overflow-y: auto; /* İçerik taşarsa dikey kaydırma çubuğu çıksın */
    animation: slideUp 0.3s ease;
}

.modal h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ── Utilities ── */
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.api-key-mask {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .top-bar {
        justify-content: space-between;
        padding: 0 20px;
        position: sticky;
        top: 0;
        z-index: 101;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 1000;
        width: var(--sidebar-width);
        transition: left 0.3s ease;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-nav {
        padding: 20px 12px;
    }

    .nav-link span { 
        display: block; 
    }
    .nav-link { 
        padding: 12px 14px; 
    }

    .sidebar-footer { 
        padding: 16px; 
        border-top: 1px solid var(--border-color); 
    }
    .user-details { 
        display: none; 
    }

    .app-layout { 
        flex-direction: column; 
    }
    .main-content { 
        margin-left: 0; 
        width: 100%;
        padding: 0; 
    }

    /* Formlar ve Grid Yapısı */
    .form-row { 
        grid-template-columns: 1fr !important; 
        gap: 12px;
    }

    .page-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 16px;
    }
    
    .page-header .btn-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .page-header .btn-group .btn {
        flex: 1;
        justify-content: center;
    }

    /* Tabloların mobilde taşmasını engelle */
    .table-container {
        margin: 0 -16px;
        width: calc(100% + 32px);
        border-radius: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 700px; /* Tablo içeriği için zorunlu scroll */
    }

    /* Dashboard Kartları */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Modallar Mobilde Tam Ekran */
    .modal {
        width: 95%;
        padding: 20px;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Haberler Sayfası Filtreleme Formu */
    .card form .form-row {
        display: flex;
        flex-direction: column;
    }
    
    .card form .btn-group {
        margin-top: 10px;
        width: 100%;
    }
}

/* ── Notifications Page ── */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.notification-item .notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-item.notification-danger .notification-icon { background: var(--danger-bg); color: var(--danger); }
.notification-item.notification-warning .notification-icon { background: var(--warning-bg); color: var(--warning); }
.notification-item.notification-success .notification-icon { background: var(--success-bg); color: var(--success); }
.notification-item.notification-info .notification-icon { background: var(--accent-light); color: var(--accent); }

.notification-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.notification-content small {
    font-size: 0.8rem;
}

/* Toastify Customization */
.toastify.app-toast {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-family: 'Inter', sans-serif;
    padding: 12px 20px;
    opacity: 0.95;
}

.toastify.toast-success {
    background: var(--success);
}

.toastify.toast-danger,
.toastify.toast-warning { /* warning için de danger rengi kullanalım */
    background: var(--danger);
}

.toastify-close { font-size: 24px; }

/* ── Switch Toggle (iOS Style) ── */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-light);
    border-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--accent);
}
