:root {
    --primary: #7c4dff;
    --primary-light: #b47cff;
    --bg-dark: #0a0b1e;
    --card-bg: rgba(16, 18, 45, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #e0e0e0;
    --text-dim: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background: radial-gradient(circle at top right, #1e1b4b, #0a0b1e);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: rgba(10, 11, 30, 0.5);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
}

.sidebar-logo {
    padding: 0 30px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    color: white;
    letter-spacing: 1px;
}

.sidebar-logo i {
    color: var(--primary);
    font-size: 24px;
}

.nav-links {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 30px;
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(124, 77, 255, 0.1);
    border-left-color: var(--primary);
}

.nav-link i {
    font-size: 18px;
    width: 24px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.page-title p {
    color: var(--text-dim);
    font-size: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.stat-icon i {
    font-size: 20px;
    color: var(--primary);
}

.stat-info h3 {
    font-size: 32px;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-dim);
    font-size: 14px;
}

.stat-trend {
    font-size: 12px;
    margin-top: 10px;
}

.trend-up {
    color: var(--success);
}

/* Table Section */
.data-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-table {
    width: 100%;
    border-collapse: collapse;
}

.pro-table th {
    text-align: left;
    padding: 15px;
    color: var(--text-dim);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.pro-table td {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-text {
    font-weight: 500;
}

.hash-text {
    font-family: monospace;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.btn-action {
    background: rgba(124, 77, 255, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(124, 77, 255, 0.2);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-size: 13px;
}

.btn-action:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: 0.3s;
}

.modal-content {
    background: #10122d;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--primary);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

input[type="password"] {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    margin-bottom: 25px;
    font-size: 16px;
    transition: 0.3s;
}

input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(124, 77, 255, 0.05);
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-submit {
    background: var(--primary);
    color: white;
}

.btn-submit:hover {
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.4);
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 30px 0;
    }

    .sidebar-logo span,
    .nav-link span {
        display: none;
    }

    .main-content {
        margin-left: 80px;
    }
}