/* Global Layout Fixes */
:root {
    --bg-color: #0f0f13;
    --card-bg: rgba(30, 30, 40, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    --primary-color: #833ab4;
    --accent-color: #fd1d1d;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --success-color: #00c851;
    --radius: 16px;
    --font-family: 'Outfit', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family); background-color: var(--bg-color); color: var(--text-main);
    height: 100vh; overflow: hidden; display: flex; flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Background Blobs */
.app-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; }
.blob-1 { width: 500px; height: 500px; background: #833ab4; top: -100px; left: -100px; animation: move1 20s infinite ease-in-out alternate; }
.blob-2 { width: 400px; height: 400px; background: #fcb045; bottom: -50px; right: -50px; animation: move2 15s infinite ease-in-out alternate; }
.blob-3 { width: 300px; height: 300px; background: #fd1d1d; top: 40%; left: 40%; animation: move3 18s infinite ease-in-out alternate; }
@keyframes move1 { from { transform: translate(0, 0); } to { transform: translate(50px, 100px); } }
@keyframes move2 { from { transform: translate(0, 0); } to { transform: translate(-50px, -50px); } }
@keyframes move3 { from { transform: translate(0, 0); } to { transform: translate(100px, -100px); } }

/* Layout Structure */
.container { max-width: 1600px; margin: 0 auto; padding: 0 20px 20px 20px; display: flex; flex-direction: column; height: 100%; width: 100%; }
header { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; margin-bottom: 10px; }

.main-layout { display: grid; grid-template-columns: 320px 1fr; gap: 30px; flex: 1; overflow: hidden; padding-bottom: 10px; }

/* Header Elements */
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 700; }
.logo i { font-size: 2rem; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo span { color: var(--primary-color); }

.header-controls { display: flex; align-items: center; gap: 15px; }

.status-badge { background: rgba(0, 200, 81, 0.1); color: var(--success-color); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(0, 200, 81, 0.2); }
.dot { width: 8px; height: 8px; background: currentColor; border-radius: 50%; box-shadow: 0 0 8px currentColor; }

/* Navigation */
.main-nav { display: flex; gap: 10px; background: rgba(40, 40, 55, 0.5); padding: 5px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); }
.nav-link { text-decoration: none; color: var(--text-muted); padding: 8px 20px; border-radius: 40px; font-size: 0.9rem; transition: all 0.3s; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.nav-link:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-link.active { background: var(--primary-color); color: white; box-shadow: 0 4px 10px rgba(131, 58, 180, 0.3); }

/* Left Panel (Config) */
.config-panel { display: flex; flex-direction: column; overflow-y: auto; max-height: 100%; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; padding: 25px; }

/* Right Panel (Visual) */
.visual-panel { display: flex; flex-direction: column; position: relative; max-height: 100%; overflow: hidden; }

/* Global Styling */
.glass-card { background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); }
h2 { margin-bottom: 20px; font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; color: white; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
h2 i { color: var(--primary-color); }

.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
input, select { width: 100%; background: rgba(15, 15, 20, 0.6); border: 1px solid var(--card-border); padding: 12px 15px 12px 40px; border-radius: 12px; color: white; font-family: var(--font-family); font-size: 0.95rem; transition: all 0.2s; }
input:focus, select:focus { border-color: var(--primary-color); outline: none; background: rgba(15, 15, 20, 0.8); box-shadow: 0 0 0 2px rgba(131, 58, 180, 0.2); }

/* Input Extras */
.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 0.9rem; }
.select-wrapper { position: relative; }
.select-wrapper select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.select-wrapper i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); font-size: 0.8rem; }
.input-mt { margin-top: 10px; }

/* Range / Buttons */
.range-wrapper { display: flex; align-items: center; gap: 15px; background: rgba(0,0,0,0.2); padding: 10px; border-radius: 10px; border: 1px solid var(--card-border); }
input[type=range] { padding: 0; background: transparent; border: none; height: 6px; flex: 1; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: var(--text-main); margin-top: -5px; cursor: grab; box-shadow: 0 0 10px rgba(0,0,0,0.5); transition: transform 0.2s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
#gapDisplay { font-size: 0.9rem; font-weight: 600; min-width: 40px; text-align: right; }

.btn { width: 100%; padding: 12px; border: none; border-radius: 12px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--font-family); color: white; display: flex; justify-content: center; align-items: center; gap: 10px; }
.btn-primary { background: var(--primary-gradient); box-shadow: 0 4px 15px rgba(131, 58, 180, 0.4); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text-muted); width: 100%; border: 1px solid transparent; }
.btn-secondary:hover { background: rgba(255,255,255,0.15); color: white; border-color: rgba(255,255,255,0.1); }
.btn-success { background: linear-gradient(135deg, #00b09b, #96c93d); box-shadow: 0 4px 15px rgba(0, 176, 155, 0.4); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(1); box-shadow: none; pointer-events: none; }

/* Visual Panel Internals */
.flow-container { flex: 1; overflow-y: auto; padding: 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; position: relative; }

.action-bar { 
    flex-shrink: 0; 
    margin: 20px; 
    padding: 15px; 
    border: 1px solid rgba(255,255,255,0.1); 
    background: rgba(20, 20, 30, 0.95); 
    border-radius: var(--radius); 
    display: flex;
    justify-content: center;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}
.action-bar button { max-width: 400px; }

/* Visual Header Styling */
.visual-header { 
    display: flex; justify-content: space-between; align-items: center; 
    background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 15px 25px; margin-bottom: 20px;
}
.visual-title { display: flex; align-items: center; gap: 20px; }
.visual-title h2 { margin: 0; border: none; padding: 0; font-size: 1.1rem; }

.header-input-group { position: relative; }
.header-input-group i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; pointer-events: none; }
.header-input-group input { 
    width: auto; padding: 8px 12px 8px 35px; height: auto; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3); font-size: 0.85rem; border-radius: 8px; color: var(--text-muted); cursor: pointer;
}
.header-input-group input:focus { color: white; border-color: var(--primary-color); }

.stats { display: flex; gap: 10px; align-items: center; }
.stat-badge { font-weight: 500; font-size: 0.8rem; padding: 6px 12px; border-radius: 8px; display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); }
.validation-badge { font-weight: 600; font-size: 0.8rem; padding: 6px 12px; border-radius: 8px; display: flex; gap: 6px; align-items: center; }
.validation-badge.valid { background: rgba(0, 200, 81, 0.15); color: #00c851; border: 1px solid rgba(0, 200, 81, 0.3); }
.validation-badge.invalid { background: rgba(253, 29, 29, 0.15); color: #ff4444; border: 1px solid rgba(253, 29, 29, 0.3); }

/* Order Cards */
.order-node { display: flex; flex-direction: column; align-items: center; width: 100%; animation: fadeIn 0.4s ease; position: relative; z-index: 10; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.order-card { width: 340px; padding: 0; background: rgba(30, 30, 40, 0.95); position: relative; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.order-card:hover { border-color: var(--primary-color); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }

.card-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.05); }
.card-header span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }
.time-preview { color: var(--primary-color) !important; }

.card-body { padding: 15px; }
.input-group label { margin-bottom: 5px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.qty-input { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); padding: 10px; font-size: 1.2rem; text-align: center; font-weight: 700; color: white; width: 100%; border-radius: 8px; }
.qty-input:focus { border-color: var(--primary-color); background: rgba(0,0,0,0.4); }

.card-options { position: absolute; max-height: 0; overflow: hidden; top: 0; right: 0; transition: all 0.3s; }
.order-card:hover .card-options { max-height: 40px; }

.btn-remove { 
    background: rgba(255, 68, 68, 0.1); color: #ff4444; border: none; padding: 8px 12px; cursor: pointer; transition: all 0.2s; border-bottom-left-radius: 8px;
}
.btn-remove:hover { background: #ff4444; color: white; }

/* Flow Arrows & Gaps */
.flow-arrow { display: flex; flex-direction: column; align-items: center; height: 80px; position: relative; width: 100%; justify-content: center; }
.line { position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.05)); z-index: 1; }
.arrow-head { position: absolute; bottom: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid rgba(255,255,255,0.1); z-index: 1; }

/* Custom Gap Input Styling */
.gap-label-container { position: relative; z-index: 5; background: var(--bg-color); padding: 5px; }
.gap-label {
    background: rgba(255,255,255,0.05); padding: 5px 15px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); 
    display: flex; align-items: center; gap: 5px; height: 34px; transition: border-color 0.2s;
}
.gap-label:hover { border-color: var(--text-muted); }
.gap-label input {
    width: 40px; border: none; background: transparent; padding: 0; text-align: right; height: 100%; 
    font-size: 0.9rem; font-weight: 600; color: white; border-radius: 0; box-shadow: none;
}
.gap-label input:focus { box-shadow: none; background: transparent; }
/* Hide Spinners */
input, select { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.gap-label span { color: var(--text-muted); font-size: 0.8rem; pointer-events: none; }

.btn-insert { 
    position: absolute; top: 50%; left: 65%; transform: translate(0, -50%) scale(0.8);
    width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(131, 58, 180, 0.5); 
    background: rgba(131, 58, 180, 0.1); color: var(--primary-color); 
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem; 
    cursor: pointer; transition: all 0.2s; opacity: 0; z-index: 20; 
}
.flow-arrow:hover .btn-insert { opacity: 1; transform: translate(10px, -50%) scale(1); }
.btn-insert:hover { background: var(--primary-color); color: white; box-shadow: 0 0 10px rgba(131, 58, 180, 0.5); }

.empty-state { text-align: center; color: var(--text-muted); margin-top: 80px; }
.empty-state i { font-size: 3rem; margin-bottom: 20px; opacity: 0.2; }
.add-order-container { display: flex; justify-content: center; margin-top: 20px; padding-bottom: 20px; }
.btn-icon.circle { 
    width: 50px; height: 50px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.15); 
    background: transparent; color: rgba(255,255,255,0.3); font-size: 1.2rem; 
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; 
}
.btn-icon.circle:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(131, 58, 180, 0.05); transform: scale(1.1); }

/* Layout & Spacing */
.panel-header {
    background: rgba(255,255,255,0.02);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 5px;
}

.filter-tab {
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.3);
}

.filter-tab .count-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
}

.filter-tab.active .count-badge {
    background: rgba(0, 0, 0, 0.2);
}

.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-bottom: 50px;
}

/* Orders Page specific */
.campaign-card {
    width: 100%;
    background: rgba(30,30,40,0.3); 
    border: 1px solid rgba(255,255,255,0.06); 
    border-radius: 12px; 
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    user-select: none;
}
.campaign-card:hover { 
    background: rgba(40,40,55,0.5);
    border-color: rgba(131, 58, 180, 0.3);
}
.campaign-card.expanded {
    background: rgba(35,35,45,0.7);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.campaign-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: 0; 
    border: none;
}
.campaign-header .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.id-text {
    font-weight: 600; font-size: 0.65rem; color: var(--text-muted); opacity: 0.7; letter-spacing: 1px;
    background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px;
}
.reel-preview {
    font-size: 0.8rem; color: var(--primary-color); font-weight: 700;
    background: rgba(131, 58, 180, 0.12); padding: 4px 12px; border-radius: 8px;
    display: flex; align-items: center; gap: 8px; border: 1px solid rgba(131, 58, 180, 0.25);
    transition: all 0.3s;
}
.reel-preview:hover { background: rgba(131, 58, 180, 0.2); border-color: var(--primary-color); transform: scale(1.02); }
.reel-preview i { font-size: 0.75rem; opacity: 0.9; }

.expand-btn {
    width: 28px; height: 28px; border-radius: 6px;
    background: rgba(255,255,255,0.03); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; border: 1px solid rgba(255,255,255,0.05);
}
.campaign-card.expanded .expand-btn { background: var(--primary-color); color: white; transform: rotate(180deg); }
.expand-btn:hover { background: rgba(131, 58, 180, 0.2); color: white; border-color: var(--primary-color); }
.expand-btn i { transition: transform 0.4s; font-size: 0.8rem; }
.campaign-card.expanded .expand-btn i { transform: rotate(180deg); }
.campaign-card.expanded .expand-btn { color: white; background: var(--primary-color); box-shadow: 0 0 15px rgba(131, 58, 180, 0.4); }

.orders-detail {
    max-height: 0; overflow: hidden; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; transform: translateY(10px);
}
.campaign-card.expanded .orders-detail {
    max-height: 2000px; opacity: 1; transform: translateY(0);
    margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 15px;
}

.detail-table-wrapper { 
    overflow-x: auto; width: 100%; border-radius: 12px; 
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 12px;
}
.detail-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; text-align: left; table-layout: fixed; }
.detail-table th { 
    padding: 12px 15px; color: var(--text-muted); font-weight: 600; 
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.65rem;
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}
.detail-table th:nth-child(3) { width: 40%; } /* Link column width */
.detail-table td { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.04); color: #f0f0f0; vertical-align: middle; }

.detail-table tr:hover td { color: white; background: rgba(255,255,255,0.02); }

.card-footer-stats {
    display: flex; 
    flex-wrap: wrap;
    justify-content: center; 
    align-items: center;
    gap: 12px;
    font-size: 0.75rem; 
    margin-top: 20px; 
    color: var(--text-muted);
}
.stat-pill {
    display: flex; align-items: center; gap: 8px; 
    background: rgba(255,255,255,0.03); 
    padding: 6px 14px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}
.stat-pill:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.stat-pill b { color: #ffffff; font-weight: 700; margin-left: 2px; }
.stat-pill.active b { color: var(--primary-color); }
.stat-pill.success b { color: var(--success-color); }
.stat-pill.warning b { color: #ffbb33; }
.detail-table tr:last-child td { border-bottom: none; }

.detail-table .id-badge { 
    display: inline-block; background: rgba(131, 58, 180, 0.15); color: #d69efc; 
    padding: 3px 8px; border-radius: 6px; font-size: 0.7rem; font-family: 'JetBrains Mono', monospace; 
    border: 1px solid rgba(131, 58, 180, 0.3);
}
.detail-table .status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-Pending .status-dot { background: #ffbb33; box-shadow: 0 0 6px #ffbb33; }
.status-Completed .status-dot { background: #00c851; box-shadow: 0 0 6px #00c851; }
.status-Processing .status-dot { background: #33b5e5; box-shadow: 0 0 6px #33b5e5; }
.status-Partial .status-dot { background: #ff4444; }
.status-Canceled .status-dot { background: #757575; }
.status-Waiting .status-dot { background: #d69efc; box-shadow: 0 0 6px #d69efc; }

.detail-table .remains-badge { color: #ffbb33; font-weight: 600; }
.detail-table .link-preview { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary-color); display: inline-block; }

.btn-cancel {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-cancel:hover {
    background: #ff4444;
    color: white;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.btn-remove {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-remove:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.logout-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.logout-link:hover { color: #ff4444; }

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.toggle-switch input { display: none; }
.toggle-switch .slider {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background: #aaa;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .slider { background: #833ab4; border-color: #833ab4; box-shadow: 0 0 10px rgba(131, 58, 180, 0.4); }
.toggle-switch input:checked + .slider::before { transform: translateX(16px); background: #fff; }
.toggle-switch .label { transition: all 0.3s ease; }
.toggle-switch input:checked ~ .label { color: #d69efc; font-weight: 600; text-shadow: 0 0 10px rgba(131, 58, 180, 0.4); }

/* Reveal Animation container */
.time-picker-reveal {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-10px);
}
.time-picker-reveal.visible {
    max-width: 300px; /* Enough to fit the input */
    opacity: 1;
    transform: translateX(0);
}
