:root {
    --bg-dark: var(--primary);
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #260045;
    --secondary: #FF2C3C;
    --primary-glow: rgba(255, 44, 60, 0.4);
    --text-main: #ffffff;
    --text-muted: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); overflow: hidden; background-image: radial-gradient(circle at 10% 20%, rgba(38, 0, 69, 0.12), transparent 30%), radial-gradient(circle at 90% 80%, rgba(255, 44, 60, 0.12), transparent 30%); }
.glass { background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 16px; }
.dashboard-container { display: flex; height: 100vh; }

.sidebar { 
    width: 280px; 
    background: rgba(0, 0, 0, 0.2); 
    border-right: 1px solid var(--border); 
    padding: 30px 24px; 
    display: flex; 
    flex-direction: column; 
    overflow-y: auto; /* ENABLE SIDEBAR SCROLLING */
}

/* Beautiful custom scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.logo h2 { font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 50px; }
.logo span { color: var(--secondary); }
.menu { display: flex; flex-direction: column; gap: 10px; }
.menu a { text-decoration: none; color: var(--text-muted); font-size: 16px; font-weight: 500; padding: 14px 20px; border-radius: 12px; display: flex; align-items: center; gap: 14px; transition: all 0.3s ease; }
.menu a:hover, .menu a.active { background: var(--secondary); color: #fff; box-shadow: 0 4px 15px var(--primary-glow); transform: translateX(5px); }

.main-content { flex: 1; overflow-y: auto; padding: 35px 50px; }
.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 45px; }
.search-bar { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.03); padding: 14px 24px; border-radius: 30px; width: 350px; border: 1px solid var(--border); }
.search-bar input { background: transparent; border: none; color: #fff; outline: none; width: 100%; font-size: 15px; }
.profile-area { display: flex; align-items: center; gap: 25px; }
.notification { position: relative; font-size: 24px; cursor: pointer; color: var(--text-muted); }
.badge { position: absolute; top: -5px; right: -5px; background: #ef4444; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 50%; font-weight: bold; }
.profile-pic img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--primary); cursor: pointer;}
.welcome-text h1 { font-size: 34px; font-weight: 600; margin-bottom: 8px; }
.welcome-text p { color: var(--text-muted); font-size: 16px; margin-bottom: 35px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-bottom: 45px; }
.stat-card { padding: 25px; display: flex; align-items: center; gap: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.2); }
.stat-icon { width: 65px; height: 65px; border-radius: 16px; display: flex; justify-content: center; align-items: center; font-size: 30px; color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.stat-info h3 { font-size: 14px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px;}
.stat-info h2 { font-size: 28px; font-weight: 700; margin-top: 5px; color: #fff;}
.table-container { padding: 30px; border-radius: 20px; margin-bottom: 30px;}
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.table-header h2 { font-size: 26px; font-weight: 600; margin-bottom: 0px;}
.btn-primary { background: var(--primary); color: #fff; border: none; padding: 10px 20px; border-radius: 10px; cursor: pointer; font-weight: 500; transition: 0.3s; font-family: 'Outfit';}
.btn-primary:hover { background: var(--secondary); box-shadow: 0 4px 12px var(--primary-glow);}
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 16px; color: var(--text-muted); font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.5px;}
td { padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 15px; font-weight: 400;}
tr { transition: background 0.2s; }
tr:hover td { background: rgba(255,255,255,0.02); }
.status { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px;}
.status.verified { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3);}
.status.pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3);}
.status.pinned { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3);}

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: var(--bg-dark); border: 1px solid var(--border); padding: 30px; border-radius: 16px; width: 400px; transform: translateY(-20px); transition: 0.3s; }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-box h3 { margin-bottom: 20px; font-size: 22px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 14px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: #fff; outline: none; font-family: 'Outfit'; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.btn-cancel { background: transparent; border: 1px solid var(--border); color: #fff; padding: 10px 15px; border-radius: 8px; cursor: pointer; font-weight: 500; font-family: 'Outfit';}

/* Actions logic */
.action-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: #fff; padding: 6px 12px; border-radius: 6px; cursor: pointer; margin-right: 5px; font-size: 13px; transition: 0.2s;}
.action-btn:hover { background: rgba(255,255,255,0.1); }
.action-btn.delete { color: #ef4444; border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.1); }
.action-btn.delete:hover { background: rgba(239, 68, 68, 0.2); }
.action-btn.verify { color: #10b981; border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.1); }
.action-btn.verify:hover { background: rgba(16, 185, 129, 0.2); }

/* SPAs Sections */
.section-wrapper { display: none; animation: fadeIn 0.4s; }
.section-wrapper.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Services Management UI */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.service-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.08);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.25);
}
.service-card::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--service-color-glow, rgba(255,255,255,0.05)) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.4s ease;
}
.service-card:hover::after {
    transform: scale(1.2);
    opacity: 0.9;
}
.service-card-top {
    display: flex;
    align-items: center;
    gap: 25px;
}
.service-card-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.service-card:hover .service-card-icon {
    transform: scale(1.08) rotate(-5deg);
}
.service-card-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.service-card-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}
.service-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255,255,255,0.15);
    padding-top: 20px;
}
.service-status-text {
    font-size: 15px;
    font-weight: 600;
}
.service-status-text.active {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.service-status-text.inactive {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Beautiful Premium Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 28px;
    flex-shrink: 0;
}
.switch input {
    display: none;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.2);
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
input:checked + .slider {
    background-color: #10b981;
    border-color: #10b981;
}
input:checked + .slider:before {
    transform: translateX(27px);
}
