/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* Base Styles */
:root {
    --primary: #ff2a6d;
    --primary-glow: rgba(255, 42, 109, 0.5);
    --secondary: #05d9e8;
    --secondary-glow: rgba(5, 217, 232, 0.5);
    --accent: #d1f7ff;
    --purple: #9d4edd;
    --green: #39ff14;
    --dark: #0a0a0f;
    --dark-light: #16161e;
    --light: #d1f7ff;
    --gray: #6c757d;
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    color: var(--light);
    background-color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Particle Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.5;
}

/* Grid Lines */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(209, 247, 255, 0.05) 1px, transparent 1px),
                     linear-gradient(to bottom, rgba(209, 247, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    transform: perspective(1000px) rotateX(80deg) scale(2);
    transform-origin: center center;
    opacity: 0.2;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(22, 22, 30, 0.8);
    border-right: 1px solid rgba(255, 42, 109, 0.3);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 10;
    box-shadow: 5px 0 30px rgba(255, 42, 109, 0.1);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 50px;
    padding-left: 10px;
    position: relative;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow),
                0 0 20px var(--primary-glow);
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--light);
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.5px;
}

nav li.active a {
    background: linear-gradient(90deg, rgba(255, 42, 109, 0.2), transparent);
    color: var(--primary);
    box-shadow: -5px 0 0 var(--primary);
}

nav a:hover {
    background: rgba(255, 42, 109, 0.1);
}

nav i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.user-profile {
    margin-top: auto;
    border-top: 1px solid rgba(255, 42, 109, 0.3);
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    background: var(--dark-light);
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    background-color: var(--dark-light);
    background-image: url('https://images.unsplash.com/photo-1566140967404-b8b3932483f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=200&q=80');
    background-size: cover;
    background-position: center;
}

.status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--dark-light);
}

.status.online {
    background-color: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.user-info {
    flex: 1;
}

.user-info h4 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.user-info p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.user-menu {
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.user-menu:hover {
    background: rgba(255, 42, 109, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 30px;
    margin-left: 280px;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

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

.search-bar i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--light);
    opacity: 0.7;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(22, 22, 30, 0.8);
    border: 1px solid rgba(255, 42, 109, 0.3);
    border-radius: 30px;
    color: var(--light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

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

.top-bar-actions {
    display: flex;
    gap: 15px;
}

.top-bar-actions button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 42, 109, 0.3);
    background: rgba(22, 22, 30, 0.8);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.top-bar-actions button:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.notification-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: var(--light);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--primary-glow);
}

.menu-toggle {
    display: none;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.blink {
    animation: cursor-blink 1.5s infinite;
    color: var(--primary);
    margin-left: 5px;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 42, 109, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.stat-details h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    opacity: 0.8;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat-trend {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-trend.positive {
    color: var(--green);
}

.stat-trend.negative {
    color: var(--primary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    margin-bottom: 30px;
}

.grid-item {
    overflow: hidden;
}

.grid-item.wide {
    grid-column: span 2;
}

.grid-item.tall {
    grid-row: span 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-actions button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 42, 109, 0.3);
    background: rgba(22, 22, 30, 0.8);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.card-actions button:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Neon Card */
.neon-card {
    background: rgba(22, 22, 30, 0.8);
    border: 1px solid rgba(255, 42, 109, 0.3);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.neon-card:hover {
    box-shadow: 0 0 30px rgba(255, 42, 109, 0.2);
    border-color: rgba(255, 42, 109, 0.5);
}

.neon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 42, 109, 0.1), transparent 70%);
    z-index: -1;
}

/* Charts and Visualizations */
.activity-chart {
    height: 250px;
    width: 100%;
}

.usage-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    position: relative;
}

.usage-value {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.percentage {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.usage-circle {
    width: 170px;
    height: 170px;
}

.usage-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.usage-circle-bg {
    fill: transparent;
    stroke: rgba(5, 217, 232, 0.1);
    stroke-width: 8;
}

.usage-circle-progress {
    fill: transparent;
    stroke: var(--secondary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dashoffset: 283;
    filter: drop-shadow(0 0 5px var(--secondary-glow));
}

/* Memory Status */
.memory-status {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.memory-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.memory-item span {
    font-size: 0.9rem;
    font-weight: 600;
    width: 50px;
}

.memory-item span:last-child {
    width: 40px;
    text-align: right;
    font-family: 'Orbitron', sans-serif;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Process List */
.process-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.process-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.process-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.process-icon {
    width: 40px;
    height: 40px;
    background: rgba(5, 217, 232, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary);
}

.process-details {
    flex: 1;
}

.process-details h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.process-details p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.process-usage {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Alerts List */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.alert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.alert-item.warning {
    background: rgba(255, 186, 8, 0.05);
}

.alert-item.warning::before {
    background: #ffba08;
    box-shadow: 0 0 10px rgba(255, 186, 8, 0.5);
}

.alert-item.critical {
    background: rgba(255, 42, 109, 0.05);
}

.alert-item.critical::before {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.alert-item.info {
    background: rgba(5, 217, 232, 0.05);
}

.alert-item.info::before {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary-glow);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.alert-item.warning .alert-icon {
    color: #ffba08;
    background: rgba(255, 186, 8, 0.1);
}

.alert-item.critical .alert-icon {
    color: var(--primary);
    background: rgba(255, 42, 109, 0.1);
}

.alert-item.info .alert-icon {
    color: var(--secondary);
    background: rgba(5, 217, 232, 0.1);
}

.alert-details h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.alert-details p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Back to Main */
.back-to-main {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.back-to-main a {
    display: inline-block;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: var(--transition);
}

.back-to-main a:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-item.wide {
        grid-column: auto;
    }
    
    .search-bar {
        width: 200px;
    }
} 