/* Basic reset and global styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #374151;
    color: #333;
}

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

/* ================== */
/* == SIDEBAR      == */
/* ================== */
.sidebar {
    width: 250px;
    background-color: #1a2533;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Prevents sidebar from shrinking */
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #334;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.sidebar-links {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-links li a {
    display: block;
    padding: 15px 30px;
    color: #c0c0c0;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-links li a:hover {
    background-color: #2a3b4f;
    color: #ffffff;
}

/* ================== */
/* == MAIN CONTENT == */
/* ================== */
.main-content {
    flex-grow: 1; /* Takes up remaining space */
    padding: 30px;
    overflow-y: auto; /* Allows content to scroll if needed */
}

.main-content h1 {
    margin-top: 0;
    font-weight: 300;
    font-size: 2.5rem;
    color: #ffffff;
}

/* ================== */
/* == MODULE GRID  == */
/* ================== */
.module-grid {
    display: grid;
    /* This creates a responsive grid. 
       It tries to fit columns that are at least 300px wide. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.module {
    background-color: #e1dfe4;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.module h3 {
    margin-top: 0;
    color: #1a2533;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Specific module styles */
.stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: #27ae60;
    margin-top: 15px;
}

#team-module ul {
    list-style: none;
    padding-left: 0;
}
#team-module li {
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.status-ok { color: #27ae60; font-weight: 700; }
.status-away { color: #f39c12; font-weight: 700; }
.status-offline { color: #c0392b; font-weight: 700; }

.quick-link {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    font-weight: 500;
    color: #2980b9;
}
.quick-link:hover {
    text-decoration: underline;
}

#api-loading-message {
    font-style: italic;
    color: #888;
}