:root {
    --primary-color: #4a00e0;
    --secondary-color: #8e2de2;
    --accent-color: #00fff0;
    --background-color: #0f0f1e;
    --surface-color: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --success-color: #00ff9d;
    --warning-color: #ffd700;
    --danger-color: #ff4757;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #333;
    color: var(--text-primary);
    overflow-x: hidden;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--surface-color);
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.sidebar-header h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--accent-color);
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links .active a {
    background-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--primary-color);
}

.nav-links i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 0 15px var(--accent-color);
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--accent-color);
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    margin-right: 15px;
    color: var(--accent-color);
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: bold;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
}

.chart-card h3 {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.data-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.table-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.table-card:hover {
    transform: translateY(-5px);
}

.table-card h3 {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    color: var(--accent-color);
}

.glow {
    box-shadow: 0 0 20px rgba(74, 0, 224, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(74, 0, 224, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 240, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 240, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 240, 0);
    }
}

.stat-card {
    animation: pulse 2s infinite;
}

.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.settings-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.settings-card:hover {
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--surface-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    overflow: hidden;
    width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-primary);
}

.notification-title {
    display: flex;
    align-items: center;
    font-weight: bold;
}

.notification-icon {
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
}

.notification-body {
    padding: 10px 15px;
    color: var(--text-secondary);
}

.notification-progress {
    height: 4px;
    width: 100%;
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    transition: width 100ms linear;
}

.notification-success .notification-header,
.notification-success .notification-progress-bar {
    background-color: var(--success-color);
}

.notification-warning .notification-header,
.notification-warning .notification-progress-bar {
    background-color: var(--warning-color);
}

.notification-info .notification-header,
.notification-info .notification-progress-bar {
    background-color: var(--primary-color);
}

.notification-error .notification-header,
.notification-error .notification-progress-bar {
    background-color: var(--danger-color);
}

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 10px;
    }

    .main-content {
        padding: 10px;
    }

    .charts-container, .data-tables {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        width: 100%;
        margin-bottom: 10px;
    }

    .user-info {
        justify-content: center;
    }
}