@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* SIMIDS Color Palette */
    --simids-white: #ffffff;
    --simids-light-bg: #f8fafc;
    --simids-deep-navy: #1e293b; /* Extracted from dark bottom */
    --simids-cyan-bright: #0ea5e9; /* Extracted from logo play button */
    --simids-purple-deep: #4c1d95; /* Extracted from logo hand */
    
    /* System Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--simids-light-bg);
    color: var(--text-primary);
    overflow: hidden;
}

h1, h2, h3, .logo-text {
    font-family: 'Outfit', sans-serif;
}

/* --- Layout --- */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
aside {
    width: var(--sidebar-width);
    background-color: var(--simids-white);
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.logo-container {
    padding: 10px 0 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--simids-purple-deep), var(--simids-cyan-bright));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--simids-deep-navy);
    letter-spacing: -0.5px;
}

nav {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    background-color: #f1f5f9;
    color: var(--simids-cyan-bright);
}

.nav-item.active {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

header {
    height: var(--header-height);
    background-color: var(--simids-white);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--simids-light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--simids-cyan-bright);
}

/* Content Area */
.content {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

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

.stat-card {
    background-color: var(--simids-white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--simids-deep-navy);
}

.stat-trend {
    font-size: 13px;
    margin-top: 8px;
}

/* Actions Bar */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--simids-cyan-bright), #0284c7);
    color: white;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
}

/* Table Design */
.table-container {
    background-color: var(--simids-white);
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

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

th {
    background-color: #f8fafc;
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid #e2e8f0;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-online { background-color: #dcfce7; color: #166534; }
.badge-offline { background-color: #fee2e2; color: #991b1b; }

/* Micro-interactions */
.nav-item:active { transform: scale(0.98); }
