Files
jira-extractor/public/css/style.css
T

1357 lines
28 KiB
CSS

:root {
--bg: #0f0a0f;
--bg-elevated: #111a16;
--bg-card: #152019;
--bg-input: #0d1511;
--fg: #e8f0ec;
--fg-muted: #7a9488;
--fg-dim: #4a6558;
--accent: #00e68a;
--accent-dim: #00b36b;
--accent-glow: rgba(0, 230, 138, 0.15);
--accent-glow-strong: rgba(0, 230, 138, 0.3);
--border: #1e3028;
--danger: #ff4d6a;
--warning: #ffb84d;
--info: #4dc8ff;
--radius: 10px;
--radius-lg: 16px;
--shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
--fg-btn-primary: #0f0a0f;
--gantt-bg: #0a0f0d;
--gantt-header-bg: #111a16;
--gantt-sticky-bg: #1a1a1a;
--gantt-group-bg: rgba(255, 255, 255, 0.03);
--gantt-grid-border: rgba(255, 255, 255, 0.05);
/* Status Colors - Dark Mode */
--status-opportunity: #c084fc;
--status-opportunity-bg: rgba(192, 132, 252, 0.15);
--status-opportunity-border: #a855f7;
--status-opportunity-badge: #9333ea;
--status-delayed: #94a3b8;
--status-delayed-bg: rgba(148, 163, 184, 0.15);
--status-delayed-border: #64748b;
--status-delayed-badge: #475569;
--status-analyse: #fbbf24;
--status-analyse-bg: rgba(251, 191, 36, 0.15);
--status-analyse-border: #f59e0b;
--status-analyse-badge: #d97706;
--status-analysed: #22d3ee;
--status-analysed-bg: rgba(34, 211, 238, 0.15);
--status-analysed-border: #06b6d4;
--status-analysed-badge: #0891b2;
--status-ongoing: #60a5fa;
--status-ongoing-bg: rgba(96, 165, 250, 0.18);
--status-ongoing-border: #3b82f6;
--status-ongoing-badge: #2563eb;
--status-rejected: #f87171;
--status-rejected-bg: rgba(248, 113, 113, 0.16);
--status-rejected-border: #ef4444;
--status-rejected-badge: #dc2626;
--status-done: #34d399;
--status-done-bg: rgba(52, 211, 153, 0.16);
--status-done-border: #10b981;
--status-done-badge: #059669;
--gantt-bar-bg: #141f19;
--gantt-bar-border: rgba(255, 255, 255, 0.12);
}
[data-theme="light"] {
--bg: #f3f6f4;
--bg-elevated: #ffffff;
--bg-card: #ffffff;
--bg-input: #f8faf9;
--fg: #13221b;
--fg-muted: #4e6b5d;
--fg-dim: #8ba295;
--accent: #00995c;
--accent-dim: #007a49;
--accent-glow: rgba(0, 153, 92, 0.12);
--accent-glow-strong: rgba(0, 153, 92, 0.22);
--border: #d2ded6;
--danger: #dc2626;
--warning: #d97706;
--info: #0284c7;
--shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
--fg-btn-primary: #ffffff;
--gantt-bg: #f8faf9;
--gantt-header-bg: #eef4f0;
--gantt-sticky-bg: #e6ede8;
--gantt-group-bg: rgba(0, 0, 0, 0.03);
--gantt-grid-border: rgba(0, 0, 0, 0.06);
/* Status Colors - Light Mode (High Contrast) */
--status-opportunity: #6d28d9;
--status-opportunity-bg: #f5f3ff;
--status-opportunity-border: #7c3aed;
--status-opportunity-badge: #7c3aed;
--status-delayed: #334155;
--status-delayed-bg: #f1f5f9;
--status-delayed-border: #64748b;
--status-delayed-badge: #475569;
--status-analyse: #92400e;
--status-analyse-bg: #fffbeb;
--status-analyse-border: #d97706;
--status-analyse-badge: #b45309;
--status-analysed: #0e7490;
--status-analysed-bg: #ecfeff;
--status-analysed-border: #0891b2;
--status-analysed-badge: #0e7490;
--status-ongoing: #1e40af;
--status-ongoing-bg: #eff6ff;
--status-ongoing-border: #2563eb;
--status-ongoing-badge: #1d4ed8;
--status-rejected: #991b1b;
--status-rejected-bg: #fef2f2;
--status-rejected-border: #dc2626;
--status-rejected-badge: #dc2626;
--status-done: #065f46;
--status-done-bg: #ecfdf5;
--status-done-border: #059669;
--status-done-badge: #047857;
--gantt-bar-bg: #ffffff;
--gantt-bar-border: #cbd5e1;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'DM Sans', sans-serif;
background: var(--bg);
color: var(--fg);
min-height: 100vh;
transition: background-color 0.25s ease, color 0.25s ease;
}
.bg-grid {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.3;
mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
}
.bg-glow {
position: fixed;
z-index: 0;
pointer-events: none;
width: 600px;
height: 600px;
border-radius: 50%;
filter: blur(120px);
opacity: 0.12;
}
.bg-glow--1 {
top: -200px;
right: -100px;
background: var(--accent);
animation: gf 12s ease-in-out infinite;
}
@keyframes gf {
0%,
100% {
transform: translate(0, 0) scale(1)
}
50% {
transform: translate(30px, -40px) scale(1.1)
}
}
.app {
position: relative;
z-index: 1;
max-width: 90%;
margin: 0 auto;
padding: 32px 24px 80px;
}
.header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 40px;
padding-bottom: 24px;
border-bottom: 1px solid var(--border);
flex-wrap: wrap;
}
.header-icon {
width: 52px;
height: 52px;
background: linear-gradient(135deg, var(--accent), var(--accent-dim));
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
color: var(--fg-btn-primary);
box-shadow: 0 0 30px var(--accent-glow-strong);
}
.header-text h1 {
font-size: 26px;
font-weight: 900;
letter-spacing: -0.5px;
}
.header-text p {
color: var(--fg-muted);
font-size: 14px;
margin-top: 4px;
}
.header-actions {
display: flex;
align-items: center;
gap: 12px;
margin-left: auto;
}
.badge-api {
background: var(--accent-glow);
color: var(--accent);
font-size: 11px;
font-weight: 700;
padding: 6px 12px;
border-radius: 20px;
border: 1px solid rgba(0, 230, 138, 0.2);
font-family: 'JetBrains Mono', monospace;
display: inline-flex;
align-items: center;
}
[data-theme="light"] .badge-api {
border-color: rgba(0, 153, 92, 0.25);
}
.theme-toggle-btn {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--bg-card);
color: var(--fg);
border: 1px solid var(--border);
border-radius: 20px;
padding: 6px 14px;
font-family: 'DM Sans', sans-serif;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.25s ease;
outline: none;
user-select: none;
box-shadow: var(--shadow);
}
.theme-toggle-btn:hover {
border-color: var(--accent);
background: var(--accent-glow);
color: var(--accent);
transform: translateY(-1px);
}
.theme-toggle-btn i {
font-size: 13px;
color: var(--warning);
transition: transform 0.3s ease;
}
[data-theme="light"] .theme-toggle-btn i {
color: var(--info);
}
.theme-toggle-btn:hover i {
transform: rotate(25deg);
}
.card-form {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 28px;
margin-bottom: 24px;
box-shadow: var(--shadow);
max-width: 60%;
margin-left: auto;
margin-right: auto;
}
.card-title {
font-size: 16px;
font-weight: 700;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
}
.card-title i {
color: var(--accent);
font-size: 14px;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.form-grid .full {
grid-column: 1 / -1;
}
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.form-group label {
font-size: 12px;
font-weight: 600;
color: var(--fg-muted);
text-transform: uppercase;
letter-spacing: 0.8px;
}
.form-group input,
.form-group textarea {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 11px 14px;
color: var(--fg);
font-family: 'DM Sans', sans-serif;
font-size: 14px;
outline: none;
transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus,
.form-group textarea:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea {
resize: vertical;
min-height: 60px;
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
}
.hint {
font-size: 11px;
color: var(--fg-dim);
font-style: italic;
}
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
border-radius: var(--radius);
border: none;
font-family: 'DM Sans', sans-serif;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.25s;
outline: none;
}
.btn:focus-visible {
box-shadow: 0 0 0 3px var(--accent-glow-strong);
}
.btn-primary {
background: linear-gradient(135deg, var(--accent), var(--accent-dim));
color: var(--fg-btn-primary);
box-shadow: 0 4px 20px var(--accent-glow-strong);
}
.btn-primary:hover {
transform: translateY(-1px);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.btn-secondary {
background: var(--bg-input);
color: var(--fg);
border: 1px solid var(--border);
}
.btn-secondary:hover {
border-color: var(--fg-dim);
background: var(--bg-elevated);
}
.btn-danger {
background: rgba(255, 77, 106, 0.1);
color: var(--danger);
border: 1px solid rgba(255, 77, 106, 0.2);
}
[data-theme="light"] .btn-danger {
background: rgba(220, 38, 38, 0.08);
border-color: rgba(220, 38, 38, 0.2);
}
.btn-group {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-top: 8px;
}
.alert {
padding: 14px 18px;
border-radius: var(--radius);
font-size: 13px;
display: flex;
align-items: flex-start;
gap: 10px;
margin-bottom: 16px;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-8px)
}
to {
opacity: 1;
transform: translateY(0)
}
}
.alert-info {
background: rgba(77, 200, 255, 0.1);
border: 1px solid rgba(77, 200, 255, 0.2);
color: var(--info);
}
.alert-danger {
background: rgba(255, 77, 106, 0.1);
border: 1px solid rgba(255, 77, 106, 0.2);
color: var(--danger);
}
.spinner {
display: inline-block;
width: 18px;
height: 18px;
border: 2px solid transparent;
border-top-color: currentColor;
border-radius: 50%;
animation: spin 0.7s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg)
}
}
.stats-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
margin-bottom: 24px;
}
.stat-card {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
text-align: center;
transition: transform 0.25s;
}
.stat-card:hover {
transform: translateY(-2px);
}
.stat-value {
font-size: 28px;
font-weight: 900;
color: var(--accent);
font-family: 'JetBrains Mono', monospace;
}
.stat-label {
font-size: 11px;
color: var(--fg-muted);
text-transform: uppercase;
letter-spacing: 0.8px;
margin-top: 4px;
}
.tabs {
display: flex;
gap: 4px;
background: var(--bg-input);
border-radius: var(--radius);
padding: 4px;
margin-bottom: 20px;
border: 1px solid var(--border);
width: fit-content;
}
.tab-btn {
padding: 9px 20px;
border: none;
background: transparent;
color: var(--fg-muted);
font-family: 'DM Sans', sans-serif;
font-size: 13px;
font-weight: 600;
border-radius: 7px;
cursor: pointer;
transition: all 0.25s;
outline: none;
}
.tab-btn.active {
background: var(--accent);
color: var(--fg-btn-primary);
box-shadow: 0 2px 12px var(--accent-glow-strong);
}
.tab-panel {
display: none;
}
.tab-panel.active {
display: block;
animation: fadeIn 0.3s ease;
}
.table-wrap {
overflow-x: auto;
border: 1px solid var(--border);
border-radius: var(--radius);
}
table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
thead {
background: var(--bg-elevated);
position: sticky;
top: 0;
z-index: 2;
}
th {
padding: 12px 14px;
text-align: left;
font-weight: 700;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--fg-muted);
border-bottom: 2px solid var(--border);
white-space: nowrap;
}
td {
padding: 10px 14px;
border-bottom: 1px solid var(--border);
color: var(--fg);
max-width: 260px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
tr:hover td {
background: var(--accent-glow);
}
.ticket-key {
font-family: 'JetBrains Mono', monospace;
font-weight: 700;
color: var(--accent);
font-size: 12px;
text-decoration: underline;
cursor: pointer;
}
.status-badge {
display: inline-block;
padding: 3px 10px;
border-radius: 20px;
font-size: 11px;
font-weight: 700;
white-space: nowrap;
border: 1px solid transparent;
}
.s-opportunity {
background: var(--status-opportunity-bg);
color: var(--status-opportunity);
border-color: var(--status-opportunity-border);
}
.s-delayed {
background: var(--status-delayed-bg);
color: var(--status-delayed);
border-color: var(--status-delayed-border);
}
.s-analyse, .s-to-be-analysed {
background: var(--status-analyse-bg);
color: var(--status-analyse);
border-color: var(--status-analyse-border);
}
.s-analysed {
background: var(--status-analysed-bg);
color: var(--status-analysed);
border-color: var(--status-analysed-border);
}
.s-ongoing, .s-project-ongoing, .s-progress {
background: var(--status-ongoing-bg);
color: var(--status-ongoing);
border-color: var(--status-ongoing-border);
}
.s-rejected {
background: var(--status-rejected-bg);
color: var(--status-rejected);
border-color: var(--status-rejected-border);
}
.s-done {
background: var(--status-done-bg);
color: var(--status-done);
border-color: var(--status-done-border);
}
.s-todo {
background: var(--status-opportunity-bg);
color: var(--status-opportunity);
border-color: var(--status-opportunity-border);
}
.s-blocked {
background: var(--status-rejected-bg);
color: var(--status-rejected);
border-color: var(--status-rejected-border);
}
.s-other {
background: var(--status-delayed-bg);
color: var(--status-delayed);
border-color: var(--status-delayed-border);
}
.empty-cell {
color: var(--fg-dim);
font-style: italic;
}
/* Date input styling */
.date-input {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 6px;
padding: 4px 8px;
color: var(--fg);
font-family: 'DM Sans', sans-serif;
font-size: 12px;
outline: none;
transition: border-color 0.25s, box-shadow 0.25s;
width: 150px;
}
.date-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-glow);
}
.date-input::-webkit-calendar-picker-indicator {
filter: invert(1);
opacity: 0.6;
cursor: pointer;
}
.date-input::-webkit-calendar-picker-indicator:hover {
opacity: 1;
}
[data-theme="light"] .date-input::-webkit-calendar-picker-indicator {
filter: none;
}
/* Update button styling */
.btn-update {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
border-radius: 6px;
border: none;
font-family: 'DM Sans', sans-serif;
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: all 0.25s;
background: linear-gradient(135deg, var(--accent), var(--accent-dim));
color: var(--fg-btn-primary);
}
.btn-update:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px var(--accent-glow-strong);
}
.btn-update:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.btn-update .spinner {
width: 12px;
height: 12px;
border-width: 2px;
}
.btn-update i {
font-size: 10px;
}
.json-viewer {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
max-height: 600px;
overflow: auto;
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
line-height: 1.7;
white-space: pre-wrap;
word-break: break-all;
}
.json-key {
color: #4dc8ff;
}
.json-string {
color: #00e68a;
}
.json-number {
color: #ffb84d;
}
.json-bool {
color: #ff4d6a;
}
.json-null {
color: var(--fg-dim);
}
[data-theme="light"] .json-key {
color: #0284c7;
}
[data-theme="light"] .json-string {
color: #00874e;
}
[data-theme="light"] .json-number {
color: #d97706;
}
[data-theme="light"] .json-bool {
color: #dc2626;
}
.search-bar {
position: relative;
margin-bottom: 16px;
}
.search-bar i {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
color: var(--fg-dim);
}
.search-bar input {
width: 100%;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 11px 14px 11px 38px;
color: var(--fg);
font-family: 'DM Sans', sans-serif;
font-size: 14px;
outline: none;
transition: border-color 0.25s, box-shadow 0.25s;
}
.search-bar input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
#results-section {
display: none;
}
#results-section.visible {
display: block;
animation: fadeIn 0.4s ease;
}
.toast-container {
position: fixed;
top: 24px;
right: 24px;
z-index: 9999;
display: flex;
flex-direction: column;
gap: 10px;
}
.toast {
padding: 14px 20px;
border-radius: var(--radius);
font-size: 13px;
font-weight: 500;
display: flex;
align-items: center;
gap: 10px;
box-shadow: var(--shadow);
animation: tIn 0.35s ease, tOut 0.35s ease 3s forwards;
max-width: 400px;
}
.toast-success {
background: #0d2818;
border: 1px solid rgba(0, 230, 138, 0.3);
color: var(--accent);
}
.toast-error {
background: #280d14;
border: 1px solid rgba(255, 77, 106, 0.3);
color: var(--danger);
}
[data-theme="light"] .toast-success {
background: #ecfdf5;
border: 1px solid rgba(0, 153, 92, 0.3);
color: #065f46;
}
[data-theme="light"] .toast-error {
background: #fef2f2;
border: 1px solid rgba(220, 38, 38, 0.3);
color: #991b1b;
}
@keyframes tIn {
from {
opacity: 0;
transform: translateX(40px)
}
to {
opacity: 1;
transform: translateX(0)
}
}
@keyframes tOut {
to {
opacity: 0;
transform: translateX(40px)
}
}
@media (max-width: 768px) {
.form-grid {
grid-template-columns: 1fr;
}
.btn-group {
flex-direction: column;
}
.btn {
width: 100%;
justify-content: center;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
/* --- Classes Utilitaires --- */
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.p-20 { padding: 20px; }
.p-small { padding: 12px 20px; }
.no-margin { margin-top: 0 !important; }
.uppercase-input { text-transform: uppercase; }
/* --- Alignements --- */
.flex-center-between {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
}
/* --- Boutons et Badges Spécifiques --- */
.badge-api i {
margin-right: 6px;
}
.btn-drawio {
background: linear-gradient(135deg, #4dc8ff, #0d8bbf);
}
.btn-sm {
padding: 8px 16px;
font-size: 12px;
}
.info-icon {
color: var(--info);
margin-right: 8px;
}
/* --- Organisation de la barre d'actions --- */
.card-actions {
padding: 16px 20px;
}
.actions-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
}
.tabs .tab-btn i {
margin-right: 6px;
}
/* --- Ajustement Roadmap Preview --- */
#roadmapPreview {
/* Suppression du padding ici car il est dans le parent .card p-20 */
background: var(--bg-input);
border-radius: var(--radius);
min-height: 300px;
}
/*
==========
GANTT
==========
*/
/* Conteneur principal avec scrollbar */
.gantt-container {
position: relative;
height: 600px;
overflow: auto; /* Un seul scroll géré ici */
background: var(--gantt-bg);
border: 1px solid var(--border);
border-radius: 8px;
transition: height 0.3s ease;
}
.gantt-container.expanded {
height: auto;
max-height: none;
overflow-y: visible;
}
/* Ligne du temps (Header) */
.gantt-header {
display: flex;
position: sticky;
top: 0;
z-index: 100;
background: var(--gantt-header-bg);
border-bottom: 2px solid var(--border);
}
.gantt-header-label {
position: sticky;
left: 0;
z-index: 101;
background: var(--gantt-sticky-bg);
border-right: 2px solid var(--border);
padding-left: 10px;
display: flex;
align-items: center;
font-weight: bold;
color: var(--accent);
}
/* Groupes par Assigné */
.gantt-group-row {
display: flex;
background: var(--gantt-group-bg);
border-bottom: 1px solid var(--border);
font-weight: 600;
}
.gantt-assignee-sticky {
position: sticky;
left: 0;
z-index: 50;
background: var(--gantt-sticky-bg);
padding: 8px 10px;
border-right: 2px solid var(--border);
color: var(--accent);
font-size: 12px;
}
/* Lignes de tickets */
.gantt-ticket-row {
display: flex;
border-bottom: 1px solid var(--border);
height: 45px;
position: relative;
align-items: center;
}
.gantt-key-sticky {
position: sticky;
left: 0;
z-index: 50;
background: var(--bg-input);
border-right: 2px solid var(--border);
height: 100%;
display: flex;
align-items: center;
padding-left: 25px;
font-size: 11px;
color: var(--fg-dim);
}
/* La barre Gantt elle-même */
.gantt-bar {
position: absolute;
height: 32px;
border-radius: 6px;
display: flex;
align-items: center;
gap: 8px;
padding: 0 10px;
font-size: 11px;
color: var(--fg);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
z-index: 10;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
border: 1px solid var(--border);
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
[data-theme="light"] .gantt-bar {
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.gantt-bar:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
z-index: 25;
}
[data-theme="light"] .gantt-bar:hover {
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.gantt-status-badge {
color: #ffffff;
font-size: 9px;
padding: 3px 7px;
border-radius: 4px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.4px;
white-space: nowrap;
flex-shrink: 0;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.gantt-type-tag {
font-weight: 800;
font-size: 10px;
padding: 2px 6px;
border-radius: 4px;
flex-shrink: 0;
font-family: 'JetBrains Mono', monospace;
letter-spacing: 0.3px;
}
.gantt-bar-title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 12px;
font-weight: 600;
color: var(--fg);
}
/* Colonne assigné/ticket figée à gauche */
.gantt-sticky-col {
position: sticky;
left: 0;
z-index: 110;
background: var(--gantt-header-bg);
border-right: 2px solid var(--border);
padding: 0 10px;
display: flex;
align-items: center;
}
/* La ligne rouge verticale pour aujourd'hui */
.gantt-today-line {
position: absolute;
top: 0;
bottom: 0;
width: 2px;
background-color: var(--danger);
z-index: 80;
pointer-events: none;
}
.gantt-today-label {
position: absolute;
top: 2px;
transform: translateX(-50%);
background: var(--danger);
color: white;
padding: 2px 5px;
border-radius: 3px;
font-size: 9px;
font-weight: bold;
z-index: 81;
}
/* --- Structure de la Grille Gantt --- */
/* Conteneur de la largeur totale du canvas */
.gantt-canvas {
position: relative;
display: inline-block;
min-width: 100%;
}
/* Colonnes des mois dans le header */
.gantt-month-header {
min-width: 140px; /* Doit correspondre à monthWidth dans le JS */
width: 140px;
text-align: center;
font-size: 11px;
color: var(--fg-muted);
display: flex;
align-items: center;
justify-content: center;
border-left: 1px solid var(--border);
}
/* Ligne de groupe (Assigné) */
.gantt-group-header {
display: flex;
background: var(--gantt-group-bg);
border-bottom: 1px solid var(--border);
}
.gantt-group-name {
width: 250px; /* Doit correspondre à leftWidth dans le JS */
padding: 8px 10px;
color: var(--accent);
font-weight: bold;
}
/* Ligne de ticket */
.gantt-row {
display: flex;
height: 45px;
border-bottom: 1px solid var(--border);
position: relative;
align-items: center;
}
.gantt-ticket-id {
width: 250px; /* leftWidth */
height: 100%;
font-size: 11px;
color: var(--fg-muted);
padding-left: 20px;
}
/* Grille de fond (colonnes verticales sous les barres) */
.gantt-grid-col {
min-width: 140px;
border-right: 1px solid var(--gantt-grid-border);
height: 100%;
}
.view-controls {
display: flex;
align-items: center;
gap: 10px;
}
.mr-8 { margin-right: 8px; }
/* Optionnel : style pour le bouton de vue actif */
.view-controls .btn.active {
background-color: var(--accent);
color: var(--fg-btn-primary);
border-color: var(--accent);
}
/* --- ALIGNEMENT ROADMAP --- */
/* Alignement horizontal : Vues à gauche, Export à droite */
.toolbar-roadmap {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 12px 20px;
margin-bottom: 16px;
}
/* On s'assure que les deux blocs enfants se placent bien */
.toolbar-roadmap > div {
display: flex;
align-items: center;
}
/* Style de la boîte Draw.io (le deuxième enfant) */
.toolbar-roadmap > div:last-child {
margin-left: auto; /* Sécurité supplémentaire pour pousser à droite */
border: 1px solid var(--accent); /* Optionnel: pour bien la voir */
border-radius: var(--radius-lg);
background: var(--accent-glow);
padding: 5px 15px;
}
/* Style de la boîte verte d'export */
.export-drawio-box {
display: flex;
align-items: center;
gap: 15px;
background: var(--accent-glow);
border: 1px solid var(--accent);
padding: 6px 15px;
border-radius: var(--radius);
}
.export-label {
color: var(--accent);
font-weight: bold;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* On s'assure que les contrôles de vue restent simples */
.view-controls {
display: flex;
align-items: center;
}
.zoom-controls-card, .drawio-export-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 12px 20px;
display: flex;
align-items: center;
gap: 15px;
}
.drawio-export-card {
border-color: var(--accent-dim);
background: rgba(0, 230, 138, 0.03);
}
.zoom-label, .export-label {
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.zoom-label { color: var(--fg-muted); }
.export-label { color: var(--accent); }
.mr-4 { margin-right: 4px; }