body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
}

/* --- Barre de navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--dark-bg);
    color: white;
    padding: 10px 40px;
    height: 65px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.brand {
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.brand span { color: var(--primary); font-weight: 300; }

.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-status {
    padding: 6px 12px;
    background-color: #28a745;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 13px;
    font-weight: bold;
}

/* Avatar + dropdown */
.user {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.2s;
}

.user:hover { background: rgba(255,255,255,0.1); }

.user img {
    width: 35px; height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--primary);
}

.user-info { display: flex; flex-direction: column; line-height: 1.2; }

.dropdown {
    display: none;
    position: absolute;
    top: 55px; right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
}

.dropdown a {
    display: block; padding: 12px 15px;
    text-decoration: none; color: #333;
    border-bottom: 1px solid #eee;
}

.dropdown a:hover { background-color: #f8f9fa; }
.user.active .dropdown { display: block; }

/* --- Contenu Principal --- */
.main-content {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.welcome-header { margin-bottom: 40px; }

/* --- État Vide (No Instances) --- */
.empty-state {
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.empty-state .icon { font-size: 60px; color: #ccc; }
.empty-state h2 { margin: 0; color: #555; }
.empty-state p { color: #888; margin: 0; }

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover { background-color: #0056b3; transform: translateY(-2px); }

/* --- Liste des Instances (Si présentes) --- */
.instance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    text-align: left;
}

.instance-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary);
}

.instance-card h3 { margin: 0 0 10px 0; font-size: 18px; }
.instance-card .status { font-size: 12px; color: #28a745; font-weight: bold; }