/* 
  Devlink lead Portal v10.6 - Production Theme 
  Styling for High-End Glassmorphism & Centered Layouts 
*/

:root {
    --primary: #00f2ff;
    --primary-dim: #008fa0;
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-dim: #a0a0a0;
    --success: #00ff88;
    --error: #ff4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

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

/* Sections & Layout */
.view {
    display: none;
    min-height: 100vh;
}

.view.active {
    display: flex;
}

/* Center Login Experience */
#login-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #111, #000);
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin: auto;
}

.logo-container { margin-bottom: 25px; }
.logo-icon { font-size: 3rem; color: var(--primary); margin-bottom: 15px; }
.logo-container h1 { font-weight: 700; letter-spacing: -1px; }
.logo-container span { color: var(--primary); }
.subtitle { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 30px; }

/* Forms */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

input, select {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus { border-color: var(--primary); background: rgba(255,255,255,0.1); }

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: black;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,242,255,0.3); }

/* Dashboard UI */
#dashboard-section {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 280px;
    background: #0a0a0a;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

.sidebar-header { display: flex; align-items: center; gap: 15px; font-size: 1.5rem; font-weight: 700; margin-bottom: 40px; }
.sidebar-header i { color: var(--primary); }

.nav-links { list-style: none; flex: 1; }
.nav-links li {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    transition: var(--transition);
}

.nav-links li:hover, .nav-links li.active { background: rgba(0,242,255,0.1); color: var(--primary); }

.content-area { flex: 1; padding: 40px; overflow-y: auto; background: #050505; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }

/* Stats & Tables */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { padding: 25px; display: flex; align-items: center; gap: 20px; }
.stat-icon { font-size: 2rem; color: var(--primary); }

.data-table-container { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 15px; background: rgba(255,255,255,0.02); color: var(--text-dim); font-weight: 400; font-size: 0.85rem; }
td { padding: 15px; border-bottom: 1px solid var(--glass-border); }

/* Multi-Proof Components */
.proof-thumb-stack { position: relative; width: 60px; height: 45px; cursor: pointer; }
.screenshot-preview { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; border: 1px solid var(--glass-border); }
.proof-count { position: absolute; bottom: -5px; right: -5px; background: var(--primary); color: black; font-size: 0.7rem; font-weight: 800; padding: 2px 6px; border-radius: 8px; }

/* Status Pills */
.status-pill { padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.status-pill.pending { background: rgba(255,166,0,0.1); color: #ffa600; }
.status-pill.verified { background: rgba(0,255,136,0.1); color: var(--success); }

/* Admin Action Buttons */
.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.action-btn:hover { background: rgba(255,255,255,0.15); }
.action-btn.verify { background: rgba(0,255,136,0.1); color: var(--success); }
.action-btn.verify:hover { background: var(--success); color: black; }
.action-btn.delete { background: rgba(255,68,68,0.1); color: var(--error); }
.action-btn.delete:hover { background: var(--error); color: white; }

/* Toasts */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 15px 30px;
    border-radius: 30px;
    background: #111;
    color: white;
    z-index: 9999;
    transition: var(--transition);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border: 1px solid var(--success); }
.toast.error { border: 1px solid var(--error); }

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10000;
}
.modal.active { display: flex; }
.modal-content { max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 40px; position: relative; }
.close-modal, .close-viewer { position: absolute; top: 20px; right: 20px; cursor: pointer; font-size: 1.5rem; }

/* Terms Grid */
.terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}
.plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}
.plan-card h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.plan-card ul { margin-left: 20px; color: var(--text-dim); font-size: 0.9rem; margin-top: 10px; }
.plan-card ul li { margin-bottom: 8px; }

/* Form Grid System */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.form-group label { margin-bottom: 8px; font-size: 0.9rem; color: var(--text-dim); }
.form-group.full-width { grid-column: 1 / -1; }

.screenshot-container {
    border: 2px dashed var(--glass-border);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.screenshot-container:hover { border-color: var(--primary); background: rgba(0, 242, 255, 0.05); }
.screenshot-container i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }

/* Mobile Utilities */
@media (max-width: 768px) {
    #dashboard-section { flex-direction: column; }
    .sidebar { width: 100%; padding: 15px; }
    .nav-links { display: flex; overflow-x: auto; gap: 5px; }
    .nav-links li span { display: none; }
    .content-area { padding: 20px; }
    .form-grid, .terms-grid { grid-template-columns: 1fr; }
}
