rooting-future / static /css /style.css
mtornani's picture
Initial HF Spaces deployment (clean branch without large binaries)
38f9c15
/* ============================================================================
Rooting Future Strategy Engine v5.4
Stylesheet principale
============================================================================ */
:root {
--primary: #1a365d;
--secondary: #2c5282;
--accent: #3182ce;
--success: #38a169;
--warning: #d69e2e;
--danger: #e53e3e;
--text: #2d3748;
--text-light: #718096;
--bg: #f7fafc;
--white: #ffffff;
--border: #e2e8f0;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
line-height: 1.6;
color: var(--text);
background: var(--bg);
}
/* ============================================================================
Navbar
============================================================================ */
.navbar {
background: var(--primary);
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
height: 60px;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: var(--shadow);
}
.nav-brand {
display: flex;
align-items: center;
gap: 10px;
color: var(--white);
font-weight: 600;
font-size: 1.1rem;
}
.brand-icon {
font-size: 1.5rem;
}
.nav-links {
display: flex;
gap: 5px;
}
.nav-links a {
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
padding: 8px 16px;
border-radius: 6px;
transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
background: rgba(255, 255, 255, 0.1);
color: var(--white);
}
/* ============================================================================
Container & Layout
============================================================================ */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 30px 20px;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
}
.page-header h1 {
color: var(--primary);
font-size: 1.8rem;
}
.subtitle {
color: var(--text-light);
margin-top: 5px;
}
.section {
background: var(--white);
border-radius: 12px;
padding: 25px;
margin-bottom: 25px;
box-shadow: var(--shadow);
}
.section h2 {
color: var(--primary);
font-size: 1.3rem;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid var(--border);
}
/* ============================================================================
Stats Grid
============================================================================ */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.stat-card {
background: var(--white);
border-radius: 12px;
padding: 20px;
display: flex;
align-items: center;
gap: 15px;
box-shadow: var(--shadow);
transition: transform 0.2s;
}
.stat-card:hover {
transform: translateY(-2px);
}
.stat-card.highlight {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: var(--white);
}
.stat-icon {
font-size: 2rem;
}
.stat-value {
font-size: 1.8rem;
font-weight: 700;
}
.stat-label {
font-size: 0.9rem;
color: var(--text-light);
}
.stat-card.highlight .stat-label {
color: rgba(255, 255, 255, 0.8);
}
/* ============================================================================
Actions Grid
============================================================================ */
.actions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 15px;
}
.action-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 20px;
background: var(--bg);
border: 2px solid var(--border);
border-radius: 10px;
text-decoration: none;
color: var(--text);
cursor: pointer;
transition: all 0.2s;
}
.action-card:hover {
border-color: var(--accent);
background: var(--white);
}
.action-card.primary {
background: var(--accent);
color: var(--white);
border-color: var(--accent);
}
.action-card.primary:hover {
background: var(--secondary);
border-color: var(--secondary);
}
.action-icon {
font-size: 1.5rem;
}
.action-text {
font-weight: 500;
text-align: center;
}
/* ============================================================================
Tables
============================================================================ */
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th,
.data-table td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid var(--border);
}
.data-table th {
background: var(--bg);
color: var(--primary);
font-weight: 600;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.data-table tr:hover {
background: #f8fafc;
}
/* ============================================================================
Buttons
============================================================================ */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
font-size: 0.95rem;
font-weight: 500;
border: none;
border-radius: 8px;
cursor: pointer;
text-decoration: none;
transition: all 0.2s;
}
.btn-primary {
background: var(--accent);
color: var(--white);
}
.btn-primary:hover {
background: var(--secondary);
}
.btn-secondary {
background: var(--bg);
color: var(--text);
border: 1px solid var(--border);
}
.btn-secondary:hover {
background: var(--border);
}
.btn-success {
background: var(--success);
color: var(--white);
}
.btn-danger {
background: var(--danger);
color: var(--white);
}
.btn-sm {
padding: 6px 12px;
font-size: 0.85rem;
}
.btn-lg {
padding: 14px 28px;
font-size: 1.05rem;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* ============================================================================
Status Badges
============================================================================ */
.status-badge {
display: inline-block;
padding: 4px 10px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
border-radius: 20px;
}
.status-draft {
background: #fefcbf;
color: #744210;
}
.status-in_review {
background: #bee3f8;
color: #2a4365;
}
.status-ready {
background: #c6f6d5;
color: #22543d;
}
.status-exported {
background: #e9d8fd;
color: #553c9a;
}
.status-archived {
background: #e2e8f0;
color: #4a5568;
}
.status-needs_review {
background: #fed7d7;
color: #742a2a;
}
.status-approved {
background: #c6f6d5;
color: #22543d;
}
.status-reviewed {
background: #bee3f8;
color: #2a4365;
}
/* ============================================================================
Forms
============================================================================ */
.form-card {
background: var(--white);
border-radius: 12px;
padding: 30px;
box-shadow: var(--shadow);
}
.form-section {
margin-bottom: 30px;
}
.form-section h3 {
color: var(--primary);
font-size: 1.1rem;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border);
}
.form-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--text);
}
.form-group label small {
display: block;
font-weight: 400;
color: var(--text-light);
margin-top: 3px;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 12px 15px;
font-size: 1rem;
border: 2px solid var(--border);
border-radius: 8px;
transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--accent);
}
.form-group small {
display: block;
margin-top: 5px;
font-size: 0.8rem;
color: var(--text-light);
}
.color-input-wrapper {
display: flex;
gap: 10px;
align-items: center;
}
.color-input-wrapper input[type="color"] {
width: 50px;
height: 40px;
padding: 0;
border: 2px solid var(--border);
border-radius: 8px;
cursor: pointer;
}
.color-input-wrapper input[type="text"] {
flex: 1;
font-family: monospace;
text-transform: uppercase;
}
.form-check {
display: flex;
align-items: flex-start;
gap: 10px;
margin-bottom: 15px;
}
.form-check input[type="checkbox"] {
width: 20px;
height: 20px;
margin-top: 3px;
}
.form-actions {
display: flex;
gap: 15px;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid var(--border);
}
/* ============================================================================
Alerts
============================================================================ */
.alert {
padding: 15px 20px;
border-radius: 8px;
margin-bottom: 20px;
}
.alert-warning {
background: #fefcbf;
color: #744210;
border-left: 4px solid var(--warning);
}
.alert-error {
background: #fed7d7;
color: #742a2a;
border-left: 4px solid var(--danger);
}
.alert-success {
background: #c6f6d5;
color: #22543d;
border-left: 4px solid var(--success);
}
/* ============================================================================
Empty State
============================================================================ */
.empty-state {
text-align: center;
padding: 40px 20px;
color: var(--text-light);
}
.empty-state p {
margin-bottom: 20px;
}
.empty-state.success {
color: var(--success);
}
.empty-icon {
font-size: 3rem;
margin-bottom: 15px;
}
/* ============================================================================
Modals
============================================================================ */
.modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
}
.modal-content {
background: var(--white);
border-radius: 12px;
max-width: 500px;
width: 90%;
max-height: 90vh;
overflow: auto;
}
.modal-content.modal-large {
max-width: 800px;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid var(--border);
}
.modal-header h2 {
color: var(--primary);
font-size: 1.3rem;
}
.modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--text-light);
}
.modal-body {
padding: 20px;
}
.modal-body textarea {
width: 100%;
padding: 15px;
font-size: 1rem;
border: 2px solid var(--border);
border-radius: 8px;
font-family: 'Consolas', 'Monaco', monospace;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 20px;
border-top: 1px solid var(--border);
}
/* ============================================================================
Progress
============================================================================ */
.progress-bar {
height: 10px;
background: var(--border);
border-radius: 5px;
overflow: hidden;
margin: 20px 0;
}
.progress-fill {
height: 100%;
background: var(--accent);
border-radius: 5px;
transition: width 0.3s ease;
}
.progress-steps {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
.step {
padding: 10px;
color: var(--text-light);
transition: color 0.3s;
}
.step.active {
color: var(--success);
font-weight: 600;
}
.step.completed {
color: var(--success);
}
.step.completed .step-icon::after {
content: '✓';
margin-left: 4px;
font-size: 0.8em;
}
/* Progress Modal (UX-001-B) */
.progress-modal-content {
max-width: 550px;
padding: 35px;
text-align: center;
}
.progress-header {
margin-bottom: 25px;
}
.progress-icon {
font-size: 3rem;
display: block;
margin-bottom: 15px;
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
.progress-header h2 {
font-size: 1.5rem;
color: var(--primary);
margin: 0;
}
.progress-bar-container {
display: flex;
align-items: center;
gap: 15px;
margin: 25px 0;
}
.progress-bar-container .progress-bar {
flex: 1;
height: 12px;
margin: 0;
}
.progress-percent {
font-size: 1.2rem;
font-weight: 700;
color: var(--accent);
min-width: 50px;
}
.progress-message {
font-size: 1rem;
color: var(--text-light);
margin: 15px 0;
min-height: 24px;
}
/* Progress Steps */
.progress-steps {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
margin: 25px 0;
padding: 0 10px;
}
.progress-steps .step {
display: flex;
flex-direction: column;
align-items: center;
padding: 12px 16px;
background: var(--bg);
border-radius: 10px;
border: 2px solid var(--border);
transition: all 0.3s ease;
min-width: 90px;
}
.progress-steps .step .step-icon {
font-size: 1.5rem;
margin-bottom: 6px;
}
.progress-steps .step .step-text {
font-size: 0.75rem;
font-weight: 500;
}
.progress-steps .step.active {
border-color: var(--accent);
background: rgba(49, 130, 206, 0.1);
transform: scale(1.05);
}
.progress-steps .step.completed {
border-color: var(--success);
background: rgba(56, 161, 105, 0.1);
}
/* Agents Progress Grid */
.progress-agents {
margin-top: 25px;
padding-top: 20px;
border-top: 1px solid var(--border);
}
.progress-agents h4 {
font-size: 0.9rem;
color: var(--text-light);
margin-bottom: 15px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.agents-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.agent-item {
padding: 10px 12px;
background: var(--bg);
border-radius: 8px;
font-size: 0.85rem;
color: var(--text-light);
border: 1px solid var(--border);
transition: all 0.3s ease;
}
.agent-item.completed {
background: rgba(56, 161, 105, 0.15);
border-color: var(--success);
color: var(--success);
}
.agent-item.active {
background: rgba(49, 130, 206, 0.15);
border-color: var(--accent);
color: var(--accent);
animation: agentPulse 1.5s ease-in-out infinite;
}
@keyframes agentPulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(49, 130, 206, 0.4); }
50% { box-shadow: 0 0 0 6px rgba(49, 130, 206, 0); }
}
/* Elapsed Time */
.progress-elapsed {
margin-top: 20px;
font-size: 0.85rem;
color: var(--text-light);
}
/* ============================================================================
Plan Detail
============================================================================ */
.header-top {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.header-actions {
display: flex;
align-items: center;
gap: 15px;
}
.export-buttons {
display: flex;
gap: 8px;
}
.export-buttons .btn {
font-size: 0.85rem;
padding: 8px 14px;
}
.plan-summary {
background: var(--white);
border-radius: 12px;
padding: 25px;
margin-bottom: 25px;
box-shadow: var(--shadow);
}
.summary-stats {
display: flex;
gap: 40px;
margin-bottom: 15px;
}
.summary-stat {
text-align: center;
}
.summary-stat .stat-num {
font-size: 2rem;
font-weight: 700;
color: var(--primary);
}
.summary-stat .stat-label {
font-size: 0.9rem;
color: var(--text-light);
}
.section-card {
background: var(--white);
border-radius: 12px;
padding: 25px;
margin-bottom: 20px;
box-shadow: var(--shadow);
border-left: 4px solid var(--accent);
}
.section-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
}
.section-title {
display: flex;
align-items: center;
gap: 15px;
}
.section-title h3 {
color: var(--primary);
font-size: 1.2rem;
}
.section-meta {
display: flex;
gap: 15px;
color: var(--text-light);
font-size: 0.9rem;
}
.unverified-claims {
background: #fef5e7;
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
}
.unverified-claims ul {
margin-left: 20px;
margin-top: 10px;
}
.section-content {
background: var(--bg);
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
font-size: 0.95rem;
line-height: 1.7;
}
.section-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.section-notes {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid var(--border);
font-size: 0.9rem;
color: var(--text-light);
}
.section-notes pre {
white-space: pre-wrap;
font-family: inherit;
}
.bulk-actions {
display: flex;
gap: 15px;
justify-content: center;
padding: 30px;
}
/* ============================================================================
Filters
============================================================================ */
.filters {
background: var(--white);
border-radius: 12px;
padding: 20px;
margin-bottom: 25px;
box-shadow: var(--shadow);
}
.filter-form {
display: flex;
gap: 20px;
align-items: center;
flex-wrap: wrap;
}
.filter-group {
display: flex;
align-items: center;
gap: 10px;
}
.filter-group label {
font-weight: 500;
}
.filter-group select {
padding: 8px 12px;
border: 2px solid var(--border);
border-radius: 6px;
}
/* ============================================================================
Pagination
============================================================================ */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 25px;
padding-top: 20px;
border-top: 1px solid var(--border);
}
.pagination-info {
color: var(--text-light);
}
/* ============================================================================
Credibility Indicators
============================================================================ */
.credibility-indicator {
display: inline-block;
padding: 2px 8px;
border-radius: 4px;
font-size: 0.85rem;
font-weight: 600;
}
.credibility-indicator.high,
.credibility.high {
background: #c6f6d5;
color: #22543d;
}
.credibility-indicator.medium,
.credibility.medium {
background: #fefcbf;
color: #744210;
}
.credibility-indicator.low,
.credibility.low {
background: #fed7d7;
color: #742a2a;
}
/* ============================================================================
Review Queue
============================================================================ */
.workload-summary {
background: var(--white);
border-radius: 12px;
padding: 25px;
margin-bottom: 25px;
box-shadow: var(--shadow);
}
.workload-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 20px;
margin-bottom: 20px;
}
.workload-card {
display: flex;
align-items: center;
gap: 15px;
padding: 15px;
background: var(--bg);
border-radius: 10px;
}
.wl-icon {
font-size: 1.8rem;
}
.wl-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
}
.wl-label {
font-size: 0.85rem;
color: var(--text-light);
}
.workload-actions {
text-align: center;
padding-top: 15px;
border-top: 1px solid var(--border);
}
.queue-list {
display: flex;
flex-direction: column;
gap: 15px;
}
.queue-item {
display: flex;
align-items: center;
gap: 20px;
padding: 20px;
background: var(--bg);
border-radius: 10px;
border-left: 4px solid var(--accent);
}
.queue-item.priority-high {
border-left-color: var(--danger);
}
.queue-item.priority-medium {
border-left-color: var(--warning);
}
.queue-item.priority-low {
border-left-color: var(--success);
}
.queue-priority {
flex-shrink: 0;
}
.priority-badge {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--primary);
color: var(--white);
font-weight: 700;
font-size: 1.1rem;
}
.queue-content {
flex: 1;
}
.queue-title {
margin-bottom: 8px;
}
.queue-section {
color: var(--text-light);
margin-left: 10px;
}
.queue-meta {
display: flex;
gap: 20px;
font-size: 0.9rem;
}
.status-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 15px;
}
.status-card {
text-align: center;
padding: 20px;
background: var(--bg);
border-radius: 10px;
}
.status-count {
font-size: 2rem;
font-weight: 700;
color: var(--primary);
}
.status-label {
font-size: 0.85rem;
color: var(--text-light);
text-transform: capitalize;
}
/* ============================================================================
Footer
============================================================================ */
.footer {
text-align: center;
padding: 30px;
color: var(--text-light);
font-size: 0.9rem;
margin-top: 40px;
border-top: 1px solid var(--border);
}
/* ============================================================================
Responsive
============================================================================ */
@media (max-width: 768px) {
.navbar {
flex-direction: column;
height: auto;
padding: 15px;
}
.nav-links {
margin-top: 10px;
flex-wrap: wrap;
justify-content: center;
}
.page-header {
flex-direction: column;
gap: 15px;
text-align: center;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
.summary-stats {
flex-wrap: wrap;
}
.section-header {
flex-direction: column;
gap: 10px;
}
/* Cards and Forms */
.card {
padding: 20px 15px;
}
.form-group input,
.form-group select,
.form-group textarea {
font-size: 16px; /* Prevents iOS zoom on focus */
}
/* Buttons */
.btn {
padding: 12px 20px;
font-size: 14px;
width: 100%;
}
.btn-group {
flex-direction: column;
gap: 10px;
}
/* Modal */
.modal-content {
width: 95%;
max-width: none;
margin: 10px;
padding: 20px;
}
/* Tables */
table {
display: block;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
/* Hide non-essential on mobile */
.desktop-only {
display: none !important;
}
}
/* ============================================================================
Small Mobile (480px and below)
============================================================================ */
@media (max-width: 480px) {
.navbar {
padding: 10px;
}
.nav-brand {
font-size: 0.95rem;
}
.nav-links a {
padding: 6px 10px;
font-size: 13px;
}
.container {
padding: 15px 10px;
}
h1 {
font-size: 1.4rem;
}
h2 {
font-size: 1.2rem;
}
.stats-grid {
grid-template-columns: 1fr;
}
.stat-card {
padding: 15px;
}
.stat-value {
font-size: 1.5rem;
}
}
/* ============================================================================
GLOBAL RESPONSIVE FIX (Mobile & Tablet)
============================================================================ */
@media screen and (max-width: 1024px) {
/* Layout Reset */
.container {
padding: 15px 10px;
}
.main-container {
display: flex !important;
flex-direction: column !important;
height: auto !important;
overflow: visible !important;
}
/* Force Hide technical consoles/sidebars on mobile */
.right-panel,
.console-panel,
#logConsole,
.live-console {
display: none !important;
visibility: hidden !important;
height: 0 !important;
width: 0 !important;
}
.left-panel {
width: 100% !important;
padding: 10px !important;
overflow: visible !important;
}
/* Grids to Single Column */
.stats-grid,
.actions-grid,
.form-row,
.workload-cards {
grid-template-columns: 1fr !important;
gap: 15px !important;
}
/* Tables responsiveness */
.data-table {
display: block;
overflow-x: auto;
white-space: nowrap;
}
/* Header & Nav */
.navbar, .header {
flex-direction: column !important;
height: auto !important;
padding: 10px !important;
}
.nav-links, .header-nav {
margin-top: 10px;
flex-wrap: wrap;
justify-content: center;
gap: 5px !important;
}
/* Typography adjustment */
h1 { font-size: 1.5rem !important; }
h2 { font-size: 1.25rem !important; }
.stat-card {
padding: 15px !important;
}
}