:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sidebar-bg: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-color: #333;
    --highlight-color: #764ba2;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-gradient);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: white;
}

.logo h2 {
    margin-bottom: 40px;
    font-weight: 700;
}

.logo .highlight {
    color: #a3bffa;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 15px;
}

.sidebar nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.sidebar nav ul li.active a,
.sidebar nav ul li a:hover {
    color: white;
    font-weight: 600;
}

.user-info {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    color: white;
}

.search-bar input {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.status-ok {
    color: green;
    font-weight: 600;
}

.activity-list {
    list-style: none;
}

.activity-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

/* Dynamic Content Section */
.dynamic-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    min-height: 200px;
}

.dynamic-content h2 {
    margin-bottom: 10px;
    color: var(--highlight-color);
}

#content-area {
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed #ccc;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Restricted Page Styles */
.restricted-container {
    justify-content: center;
    align-items: center;
}

.restricted-card {
    text-align: center;
    padding: 50px;
    background: white;
    max-width: 600px;
}

.restricted-card h1 {
    color: #d32f2f;
    margin-bottom: 20px;
}

.flag-container {
    margin: 30px 0;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 8px;
    border: 2px dashed #333;
}

.flag {
    font-family: monospace;
    font-size: 1.2rem;
    color: #d32f2f;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--highlight-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #5a3a7e;
}
