/* * THEME-MODERN.CSS * Refonte UI/UX - Application Gestion Santé */ :root { --primary-color: #0d6efd; /* Bleu médical */ --secondary-bg: #f8f9fa; --sidebar-bg: #ffffff; --sidebar-width: 260px; --sidebar-collapsed-width: 80px; --border-radius: 12px; --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); --transition-speed: 0.3s; } /* --- Global Layout --- */ body { font-family: 'Inter', 'Poppins', -apple-system, sans-serif; background-color: var(--secondary-bg); color: #444; } .main { margin-left: var(--sidebar-width); padding: 20px 30px; transition: all var(--transition-speed); } .mode-test-active { border-top: 5px solid orange; } /* --- Header & Navigation --- */ #header { background: #fff; box-shadow: 0 1px 10px rgba(0,0,0,0.05); padding: 10px 20px; } .breadcrumb { border-radius: 8px; background: transparent !important; } .initials { background-color: var(--primary-color); color: white; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; } /* --- Sidebar (Navigation Latérale) --- */ .sidebar { width: var(--sidebar-width); background: var(--sidebar-bg); border-right: 1px solid #eee; padding: 15px; } .sidebar-nav .nav-link { border-radius: var(--border-radius); padding: 12px 15px; font-weight: 500; color: #555; transition: 0.2s; } .sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active-main { background: #f0f7ff; color: var(--primary-color); } .sidebar-nav .nav-link i { font-size: 1.2rem; margin-right: 10px; color: #888; } .sidebar-nav .nav-link.active-main i { color: var(--primary-color); } /* --- Barre de Contexte (Droite) --- */ #barre_laterale_d { position: fixed; top: 0; right: -350px; /* Caché par défaut */ width: 320px; height: 100vh; background: #fff; z-index: 1050; transition: right 0.3s ease-in-out; box-shadow: -5px 0 25px rgba(0,0,0,0.1); } #barre_laterale_d.open { right: 0; /* Apparaît au clic */ } .btn-info-context { position: fixed; right: 20px; bottom: 20px; background: var(--primary-color); color: #fff; border-radius: 50px; padding: 12px 20px; border: none; box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3); z-index: 1001; } /* --- Main Navigation (Scrollmenu) --- */ .scrollmenu { overflow: auto; white-space: nowrap; padding: 10px 0; background: #fff; border-radius: var(--border-radius); margin-bottom: 20px; box-shadow: var(--soft-shadow); } .scrollmenu a { display: inline-block; padding: 10px 20px; text-decoration: none; color: #666; border-radius: 20px; margin: 0 5px; } .scrollmenu a:hover { background-color: var(--secondary-bg); color: var(--primary-color); } /* --- Cards & UI Elements --- */ .card { border: none; border-radius: var(--border-radius); box-shadow: var(--soft-shadow); transition: transform 0.2s; } .card:hover { transform: translateY(-2px); } .btn { border-radius: 8px; padding: 8px 16px; font-weight: 500; } .btn-info { background-color: #08C5D1; border: none; color: white; } /* --- Modals Modernisation --- */ .modal-content { border-radius: var(--border-radius); border: none; box-shadow: 0 20px 40px rgba(0,0,0,0.1); } .modal-header { border-bottom: 1px solid #f1f1f1; background: #fafafa; } /* --- Tables (DataTables Custom) --- */ .table { border-collapse: separate; border-spacing: 0 8px; } .table tr { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.02); } .table td, .table th { padding: 15px; border: none !important; } .table tr td:first-child { border-radius: 10px 0 0 10px; } .table tr td:last-child { border-radius: 0 10px 10px 0; }