426 lines
8.0 KiB
CSS
426 lines
8.0 KiB
CSS
/* Variables CSS pour le thème dark */
|
|
:root {
|
|
--primary-bg: #1a1a1a;
|
|
--secondary-bg: #2d2d2d;
|
|
--tertiary-bg: #404040;
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #cccccc;
|
|
--accent-color: #007bff;
|
|
--success-color: #28a745;
|
|
--warning-color: #ffc107;
|
|
--danger-color: #dc3545;
|
|
--info-color: #17a2b8;
|
|
--border-color: #495057;
|
|
}
|
|
|
|
/* Body et éléments de base */
|
|
body {
|
|
background-color: var(--primary-bg) !important;
|
|
color: var(--text-primary) !important;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
/* Navigation */
|
|
.navbar-dark {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.navbar-brand {
|
|
font-weight: bold;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.bg-secondary {
|
|
background-color: var(--secondary-bg) !important;
|
|
}
|
|
|
|
.card-header {
|
|
background-color: var(--tertiary-bg) !important;
|
|
border-bottom: 1px solid var(--border-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Status Items */
|
|
.status-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.5rem 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.status-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Badges */
|
|
.badge {
|
|
font-size: 0.75rem;
|
|
padding: 0.5em 0.75em;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.btn-success {
|
|
background: linear-gradient(135deg, #28a745, #20c997);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #007bff, #6610f2);
|
|
}
|
|
|
|
.btn-info {
|
|
background: linear-gradient(135deg, #17a2b8, #6f42c1);
|
|
}
|
|
|
|
.btn-warning {
|
|
background: linear-gradient(135deg, #ffc107, #fd7e14);
|
|
color: #000;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: linear-gradient(135deg, #dc3545, #e83e8c);
|
|
}
|
|
|
|
/* Tabs */
|
|
.nav-tabs {
|
|
border-bottom: 2px solid var(--border-color);
|
|
}
|
|
|
|
.nav-tabs .nav-link {
|
|
background-color: var(--secondary-bg);
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px 8px 0 0;
|
|
margin-right: 0.25rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.nav-tabs .nav-link:hover {
|
|
background-color: var(--tertiary-bg);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-tabs .nav-link.active {
|
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
|
color: white;
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
/* Forms */
|
|
.form-control {
|
|
background-color: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.form-control:focus {
|
|
background-color: var(--secondary-bg);
|
|
border-color: var(--accent-color);
|
|
color: var(--text-primary);
|
|
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
|
|
}
|
|
|
|
.form-control::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Alerts */
|
|
.alert {
|
|
border-radius: 8px;
|
|
border: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.alert-info {
|
|
background: linear-gradient(135deg, rgba(23, 162, 184, 0.2), rgba(23, 162, 184, 0.1));
|
|
color: #17a2b8;
|
|
border-left: 4px solid #17a2b8;
|
|
}
|
|
|
|
.alert-warning {
|
|
background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
|
|
color: #ffc107;
|
|
border-left: 4px solid #ffc107;
|
|
}
|
|
|
|
.alert-success {
|
|
background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
|
|
color: #28a745;
|
|
border-left: 4px solid #28a745;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal-content {
|
|
background-color: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.modal-header {
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal-footer {
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Flux Item */
|
|
.flux-item {
|
|
background-color: var(--tertiary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.flux-item:hover {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.flux-status {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.flux-status.active {
|
|
background-color: var(--success-color);
|
|
box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
|
|
}
|
|
|
|
.flux-status.inactive {
|
|
background-color: var(--danger-color);
|
|
}
|
|
|
|
/* Message History */
|
|
.message-history {
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.message-item {
|
|
background-color: var(--tertiary-bg);
|
|
border-radius: 8px;
|
|
padding: 0.75rem;
|
|
margin-bottom: 0.5rem;
|
|
border-left: 3px solid var(--accent-color);
|
|
}
|
|
|
|
.message-time {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
float: right;
|
|
}
|
|
|
|
/* Subtitle History */
|
|
.subtitle-history {
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.subtitle-item {
|
|
background-color: var(--tertiary-bg);
|
|
border-radius: 8px;
|
|
padding: 0.75rem;
|
|
margin-bottom: 0.5rem;
|
|
border-left: 3px solid var(--info-color);
|
|
}
|
|
|
|
/* Prompt Item */
|
|
.prompt-item {
|
|
background-color: var(--tertiary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
position: relative;
|
|
}
|
|
|
|
.prompt-item .btn-danger {
|
|
position: absolute;
|
|
top: 0.5rem;
|
|
right: 0.5rem;
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes pulse {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.pulse {
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.fade-in {
|
|
animation: fadeIn 0.5s ease-out;
|
|
}
|
|
|
|
/* Scrollbar personnalisée */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--secondary-bg);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--accent-color);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.container-fluid {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.card {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.btn {
|
|
font-size: 0.9rem;
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
}
|
|
|
|
/* Loading spinner */
|
|
.spinner {
|
|
display: inline-block;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 3px solid rgba(255,255,255,.3);
|
|
border-radius: 50%;
|
|
border-top-color: #fff;
|
|
animation: spin 1s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Toast notifications */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.toast {
|
|
background-color: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.toast-header {
|
|
background-color: var(--tertiary-bg);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Stats cards */
|
|
.stats-card {
|
|
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
|
|
border: 1px solid rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
/* Flux controls */
|
|
.flux-controls {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.flux-info {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.flux-name {
|
|
font-weight: bold;
|
|
font-size: 1.1rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.flux-details {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Loading states */
|
|
.loading {
|
|
opacity: 0.6;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.loading::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
margin: -10px 0 0 -10px;
|
|
border: 2px solid var(--accent-color);
|
|
border-radius: 50%;
|
|
border-top-color: transparent;
|
|
animation: spin 1s linear infinite;
|
|
} |