:root {
    --primary: #5865F2;
    --primary-hover: #4752c4;
    --bg: #0c0d10;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

/* User Menu & Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #16171d;
    min-width: 250px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 1000;
    overflow: hidden;
    padding: 0.5rem;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-header {
    padding: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.4;
    font-weight: 700;
}

.guild-list {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

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

.guild-icon-mini {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.add-icon {
    font-weight: 800;
    color: var(--primary);
    margin-right: -4px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dropdown-footer {
    padding: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.logout {
    color: #ff4747 !important;
}

.logout:hover {
    background: rgba(255, 71, 71, 0.1) !important;
}

.hero {
    margin-top: clamp(100px, 20vh, 160px);
    text-align: center;
    padding: 0 1rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(90deg, #5865F2, #8e96ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: clamp(1rem, 1vw, 1.25rem);
    opacity: 0.6;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.btn {
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.btn-discord {
    background: #5865F2;
    color: white;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border);
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: opacity 0.2s;
}

.btn-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}


.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 6rem;
    padding-bottom: 5rem;
}

.card {
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

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

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

.card p {
    font-size: 1rem;
    margin: 0;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .btn-discord {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .features {
        margin-top: 4rem;
    }
}

@media (max-width: 480px) {
    h1 {
        letter-spacing: -1px;
    }
    
    .nav-links a:not(.btn) {
        display: none;
    }
    
    .card {
        padding: 2rem;
    }
}

.dashboard { margin-top: clamp(100px, 15vh, 120px); }

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

.guild-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

.guild-card.inactive {
    opacity: 0.7;
    filter: grayscale(0.5);
    border-style: dashed;
}

.guild-card.inactive:hover {
    opacity: 1;
    filter: none;
    border-style: solid;
}

.guild-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.guild-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--glass);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.guild-details h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.guild-id {
    font-size: 0.8rem;
    opacity: 0.4;
    font-family: 'JetBrains Mono', monospace;
}

.guild-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: auto;
}

/* Form & Editor Styles */
.guild-editor { 
    margin-top: clamp(100px, 15vh, 120px); 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guild-editor header {
    margin-bottom: 2.5rem;
}

.guild-badge-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.guild-icon-header {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--glass);
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


.back-link { 
    display: inline-block; 
    margin-bottom: 1.5rem; 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-4px);
}

.form-group { margin-bottom: 2rem; }

label { 
    display: block; 
    margin-bottom: 0.75rem; 
    font-weight: 600; 
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

textarea, input { 
    width: 100%; 
    padding: 1rem 1.25rem; 
    border-radius: 12px; 
    background: rgba(0,0,0,0.2); 
    border: 1px solid var(--border); 
    color: white; 
    font-family: inherit; 
    font-size: 0.95rem; 
    transition: all 0.2s;
    resize: vertical;
}

textarea:focus, input:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: rgba(88, 101, 242, 0.05);
    box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.1);
}

.btn-secondary {
    background: var(--glass);
    color: white;
    border: 1px solid var(--border);
    text-align: center;
}

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

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    opacity: 0.5;
    border: 2px dashed var(--border);
    border-radius: 24px;
}

.help-text {
    font-size: 0.8rem !important; 
    opacity: 0.4;
    margin-top: 0.75rem !important;
}

/* Dynamic Item List */
.dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dynamic-item {
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.dynamic-item .delete-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    background: rgba(255, 75, 43, 0.1);
    color: #ff4b2b;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
}

.dynamic-item:hover .delete-btn {
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dynamic-item.editing .close-btn {
    display: flex;
}

.dynamic-item.editing .delete-btn {
    right: 2.75rem;
    opacity: 1;
}

.add-item-btn {
    margin-top: 1rem;
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    width: 100%;
}

.add-item-btn:hover:not(:disabled) {
    background: rgba(88, 101, 242, 0.05);
    border-color: var(--primary);
}

.add-item-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--border);
    color: white;
}

/* Grid Layout for Skills/Rules */
.dynamic-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.dynamic-item {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 180px;
}

.dynamic-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    background: rgba(var(--primary-rgb, 88, 101, 242), 0.15);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 700;
}

header p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    margin-left: 0;
    max-width: 500px;
    line-height: 1.4;
}


.item-content-preview {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 1rem;
    cursor: pointer;
}

.item-preview-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.item-preview-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.75rem;
    font-style: italic;
    line-height: 1.3;
}

.item-preview-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.7;
    font-size: 0.85rem;
}

.edit-trigger {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: auto;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}

.edit-trigger:hover {
    background: var(--primary);
    color: white;
}

.edit-section {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    animation: slideDown 0.3s ease-out;
}

.dynamic-item.editing {
    grid-column: 1 / -1; /* Expand to full width when editing */
    background: rgba(255, 255, 255, 0.08);
    height: auto;
}

.dynamic-item.editing .edit-section {
    display: block;
}

.dynamic-item.editing .item-content-preview {
    display: none;
}

.dynamic-item.editing .edit-trigger {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filter UI Refinement */
.item-filters {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.filter-select {
    width: 100%;
    height: 140px;
    background: #1a1b1e;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-family: inherit;
}

.filter-select:focus {
    border-color: var(--primary);
    outline: none;
    background: #1a1b1e;
}

.filter-select optgroup {
    background: #1a1b1e;
    color: var(--primary);
    font-weight: 700;
    padding: 0.4rem;
}

.filter-select option {
    padding: 0.4rem;
}

.filter-select::-webkit-scrollbar {
    width: 6px;
}

.filter-select::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.item-references {
    margin-top: 1.25rem;
}

.item-references label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0.6;
    text-transform: uppercase;
}

.add-item-btn-small {
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.add-item-btn-small:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.config-section {
    margin-bottom: 5rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

/* Section descriptions */
.section-desc {
    margin-top: 6px;
    margin-bottom: 1.25rem;
    margin-left: 0;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.5;
}

/* Switch Toggle Styling */
.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: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Read-Only & Security States */
.read-only-section {
    opacity: 0.65;
    pointer-events: none;
    position: relative;
    cursor: not-allowed;
}

.read-only-section * {
    cursor: not-allowed !important;
}

.owner-only-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffb800;
    background: rgba(255, 184, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    vertical-align: middle;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.toggle-group label:not(.switch) {
    margin-bottom: 0;
    flex: 1;
}

.switch {
    flex: none;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: rgba(30, 30, 40, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
    min-width: 250px;
}

.toast.success {
    border-left: 4px solid #00c853;
}

.toast.error {
    border-left: 4px solid #ff1744;
}

.toast-icon {
    font-size: 1.2rem;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}

.remove-btn-plain {
    background: rgba(255, 75, 43, 0.05);
    border: 1px solid rgba(255, 75, 43, 0.1);
    color: #ff4b2b;
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.remove-btn-plain:hover {
    background: #ff4b2b;
    color: white;
}

/* Header Action Adjustment */
.header-actions .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}
/* Scheduled Tasks */
.task-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.task-item {
    background: rgba(88, 101, 242, 0.03);
    border: 1px solid rgba(88, 101, 242, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s;
}

.task-item:hover {
    background: rgba(88, 101, 242, 0.06);
    border-color: var(--primary);
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.task-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.task-schedule {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    opacity: 0.7;
}

.task-action-preview {
    font-size: 0.85rem;
    opacity: 0.6;
    font-style: italic;
    margin-top: 0.25rem;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.task-status-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #43b581;
}

.task-cancel-btn {
    background: transparent;
    border: none;
    color: #ff4747;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.task-cancel-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.switch-small {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

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

.switch-small .slider {
    position: relative;
    width: 32px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    display: inline-block;
}

.switch-small .slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch-small input:checked + .slider {
    background-color: var(--primary);
}

.switch-small input:checked + .slider:before {
    transform: translateX(16px);
}


/* Standard Switch Component */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

.switch input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.switch-container .label-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
