/* ===== IMPORT FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES CSS - ODOO STYLE ===== */
:root {
    --primary-color: #714B67;
    --primary-hover: #5a3c52;
    --accent-color: #00A09D;
    --accent-hover: #008a88;
    
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --bg-main: #f0f0f0;
    --bg-white: #ffffff;
    --bg-sidebar: #2c2c36;
    --bg-topbar: #ffffff;
    
    --text-dark: #1f1f1f;
    --text-medium: #5f5f5f;
    --text-light: #8f8f8f;
    --text-white: #ffffff;
    
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    
    --radius: 4px;
    --sidebar-width: 240px;
    --topbar-height: 60px;
}


/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 14px;
    display: flex;
    min-height: 100vh;
}

/* ===== LAYOUT STRUCTURE ODOO ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-white);
    text-decoration: none;
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-logo-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-left-color: var(--accent-color);
    font-weight: 500;
}

.sidebar-nav svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .btn-logout {
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-footer .btn-logout:hover {
    background: rgba(220, 53, 69, 0.25);
    border-color: rgba(220, 53, 69, 0.5);
}

/* ===== MAIN CONTENT AREA ===== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}

.topbar-breadcrumb {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    color: var(--text-light);
}

.topbar-breadcrumb .current-page {
    color: var(--text-dark);
    font-weight: 500;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-main);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.topbar-user:hover {
    background: #e5e5e5;
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.topbar-username {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* ===== HEADER (kept for compatibility but hidden) ===== */
header {
    display: none;
}

/* ===== OLD NAV (kept for compatibility but hidden) ===== */
nav {
    display: none;
}


/* ===== MAIN CONTAINER ===== */
.container {
    flex: 1;
    padding: 2rem;
    max-width: 100%;
}

/* ===== PAGE HEADER ODOO STYLE ===== */
.page-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-title {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 400;
}

/* ===== STATS GRID ODOO ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    position: relative;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.stat-card::before {
    display: none;
}

.stat-card.purple { border-left: 3px solid #714B67; }
.stat-card.blue { border-left: 3px solid #00A09D; }
.stat-card.green { border-left: 3px solid #28a745; }
.stat-card.orange { border-left: 3px solid #ffc107; }

.stat-label {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}

.stat-info {
    margin-top: 0.5rem;
    font-size: 12px;
    color: var(--text-medium);
}

/* ===== CONTENT CARD ODOO ===== */
.content-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: #fafafa;
}

.card-title {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* ===== BUTTONS ODOO STYLE ===== */
.btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
}

.btn:hover {
    background: var(--bg-main);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-success {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-main);
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 12px;
}


/* ===== TABLE ODOO STYLE ===== */
.table-container {
    overflow-x: auto;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead {
    background-color: #fafafa;
    border-bottom: 1px solid var(--border-color);
}

th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

tbody tr {
    transition: background-color 0.15s ease;
}

tbody tr:hover {
    background-color: #f9f9f9;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ===== BADGES ODOO ===== */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}


/* ===== FORMS ODOO STYLE ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    transition: all 0.2s ease;
    font-family: inherit;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(113, 75, 103, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
    font-size: 13px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* ===== DETAIL VIEW ODOO ===== */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
}

.detail-item {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border-left: none;
}

.detail-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 400;
}

/* ===== ACTION BUTTONS ODOO ===== */
.action-btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    margin-right: 0.4rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    background: var(--bg-white);
}

.action-view {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.action-view:hover {
    background-color: var(--primary-color);
    color: white;
}

.action-edit {
    color: var(--info-color);
    border-color: var(--info-color);
}

.action-edit:hover {
    background-color: var(--info-color);
    color: white;
}

.action-delete {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.action-delete:hover {
    background-color: var(--danger-color);
    color: white;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-bar input {
    flex: 1;
}

/* ===== ICONS ===== */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.section-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 0;
    }
    
    .nav-container a {
        border-bottom: 1px solid var(--border-color);
        border-left: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
    }
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== DASHBOARD ENHANCEMENTS ===== */
.stat-icon {
    margin-bottom: 1rem;
    color: var(--accent-color);
    opacity: 0.9;
}

.stat-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-warning {
    color: var(--warning-color);
    font-weight: 600;
}

/* Cartes de stats avec gradient */
.stat-card-gradient {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white !important;
    border: none;
}

.stat-card-gradient.purple {
    --gradient-start: #8b5cf6;
    --gradient-end: #6366f1;
}

.stat-card-gradient.blue {
    --gradient-start: #3b82f6;
    --gradient-end: #2563eb;
}

.stat-card-gradient.green {
    --gradient-start: #10b981;
    --gradient-end: #059669;
}

.stat-card-gradient.orange {
    --gradient-start: #f59e0b;
    --gradient-end: #d97706;
}

.stat-card-gradient .stat-label,
.stat-card-gradient .stat-value,
.stat-card-gradient .stat-info {
    color: white !important;
}

.stat-icon-large {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-trend {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Section graphiques */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.chart-card {
    min-height: 400px;
}

.chart-wrapper {
    padding: 2rem;
    height: 320px;
}

/* Status cards amÃƒÂ©liorÃƒÂ©es */
.status-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.status-card-enhanced {
    padding: 2rem;
    border-radius: 16px;
    background: white;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--status-color);
}

.status-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--status-color);
}

.status-card-enhanced.status-success { --status-color: #10b981; }
.status-card-enhanced.status-warning { --status-color: #f59e0b; }
.status-card-enhanced.status-info { --status-color: #06b6d4; }
.status-card-enhanced.status-danger { --status-color: #ef4444; }

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--status-color), var(--status-color));
    color: white;
    opacity: 0.9;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: var(--status-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.status-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 1rem 0 0.5rem 0;
    font-weight: 500;
}

.status-value-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--status-color);
    line-height: 1;
    margin: 0.5rem 0;
}

.status-percentage {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Animations pulse */
.pulse-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Carte rÃƒÂ©seau */
.network-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.network-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.network-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.network-metric:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.metric-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Barre de progression rÃƒÂ©seau */
.progress-container {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-value {
    color: var(--primary-color);
}

.progress-bar-container {
    width: 100%;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    border-radius: 16px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.progress-percentage {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.network-pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    margin-right: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ===== CHART STYLES ===== */
.chart-container {
    padding: 1.5rem;
}

.chart-bar-item {
    margin-bottom: 1.5rem;
}

.chart-bar-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.chart-bar-wrapper {
    width: 100%;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    transition: width 0.5s ease;
    min-width: 50px;
}

.chart-bar-value {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== STATUS GRID ===== */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.status-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.status-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.status-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.status-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.status-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.status-success .status-icon { color: var(--success-color); }
.status-warning .status-icon { color: var(--warning-color); }
.status-info .status-icon { color: var(--info-color); }
.status-danger .status-icon { color: var(--danger-color); }

/* ===== NETWORK STATS ===== */
.network-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.network-stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.network-stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.network-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.network-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* ===== RESPONSIVE DASHBOARD ===== */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .network-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== LOGO ===== */

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: bold;
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.logo span {
    display: block;
    line-height: 1;
}
/* ===== BACK BUTTON TOPBAR ===== */
.topbar-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-right: 0.75rem;
}

.topbar-back-btn:hover {
    background: var(--primary-hover);
    transform: translateX(-2px);
}

.topbar-separator {
    color: var(--text-light);
    margin-right: 0.5rem;
}


footer {
    background-color: var(--bg-white);
    color: var(--text-medium);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
}

footer p {
    margin-bottom: 0.25rem;
}

/* ===== RESPONSIVE ODOO ===== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .status-grid-enhanced {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .network-overview {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
    
    .topbar {
        padding: 0 1rem;
    }
}

/* ===== TUILES APPLICATIONS ODOO ===== */
.odoo-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.odoo-app-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.odoo-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--app-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.odoo-app-card:hover::before {
    transform: scaleX(1);
}

.odoo-app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--app-color);
}

.odoo-app-card.purple { --app-color: #714B67; }
.odoo-app-card.blue { --app-color: #00A09D; }
.odoo-app-card.green { --app-color: #28a745; }
.odoo-app-card.orange { --app-color: #ffc107; }

.odoo-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--app-color), var(--app-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.odoo-app-card:hover .odoo-app-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.odoo-app-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.odoo-app-info {
    width: 100%;
}

.odoo-app-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.odoo-app-desc {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.odoo-app-status {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ===== ACTIONS RAPIDES ===== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn svg {
    flex-shrink: 0;
}

.quick-action-btn:hover svg {
    stroke: white;
}

/* ===== RESPONSIVE TUILES ===== */
@media (max-width: 768px) {
    .odoo-apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .odoo-app-card {
        padding: 1.5rem;
    }
    
    .odoo-app-icon {
        width: 64px;
        height: 64px;
    }
    
    .odoo-app-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}