/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* Animated Background - Same as IndiCloudAI */
.mega-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(88, 86, 214, 0.3), transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(138, 43, 226, 0.2), transparent 50%),
                radial-gradient(circle at 90% 10%, rgba(72, 219, 251, 0.2), transparent 50%),
                linear-gradient(135deg, #000000 0%, #0a0015 50%, #000520 100%);
    animation: bgPulse 20s ease infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Particle System */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Mesh Gradient Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
    animation: orbFloat 30s infinite ease-in-out;
}

.orb1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7877c6, #5856d6);
    top: -15%;
    left: -10%;
}

.orb2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8a2be2, #9d4edd);
    bottom: -10%;
    right: -5%;
    animation-delay: 10s;
}

.orb3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #48dbfb, #0abde3);
    top: 40%;
    right: 5%;
    animation-delay: 20s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, -80px) scale(1.15); }
    66% { transform: translate(-60px, 60px) scale(0.95); }
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
}

/* App Root Layout */
#app-root {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px) saturate(180%);
    border-right: 1px solid rgba(138, 43, 226, 0.2);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
}

.sidebar-nav {
    flex: 1;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(138, 43, 226, 0.1);
    color: #ffffff;
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(72, 219, 251, 0.1));
    color: #ffffff;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.nav-icon {
    font-size: 20px;
}

.nav-text {
    letter-spacing: 0.5px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #8a2be2, #48dbfb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 3px;
}

.user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px;
    min-height: 100vh;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-left {
}

.page-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(138, 43, 226, 0.6);
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.header-right {
    display: flex;
    gap: 15px;
}

.header-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.header-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
    transform: translateY(-3px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8a2be2, #48dbfb);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(138, 43, 226, 0.5);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    padding: 35px;
    transition: all 0.4s ease;
}

.dashboard-card.large {
    grid-column: span 2;
}

.dashboard-card:hover {
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(138, 43, 226, 0.5);
}

.card-badge {
    padding: 6px 15px;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #48dbfb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
}

/* Security Status */
.security-status {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.status-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

.status-text h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}

.status-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.activity-icon {
    width: 45px;
    height: 45px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.activity-text {
    flex: 1;
}

.activity-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}

.activity-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(72, 219, 251, 0.1));
    border-color: #8a2be2;
    transform: translateX(5px);
}

.action-icon {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card.large {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 10px;
    }

    .header-btn {
        width: 45px;
        height: 45px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}