/* assets/style.css - Design épuré, responsive, accessible */
:root {
    --bg: #ffffff;
    --text: #000000;
    --text-light: #444444;
    --border: #dddddd;
    --accent: #000000;
    --accent-hover: #333333;
    --success: #22c55e;
    --error: #ef4444;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 1rem;
}

.container { max-width: 900px; margin: 0 auto; }

/* Header */
header {
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
header h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.slogan { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fafafa;
    box-shadow: var(--shadow);
}
.card.success { border-left: 4px solid var(--success); }
.card.error { border-left: 4px solid var(--error); }

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 0.875rem;
    margin: 0.5rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: #fff;
    color: var(--text);
}
input:focus, textarea:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

/* Buttons */
button, .btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s;
}
button:hover, .btn:hover { opacity: 0.9; }
.btn-primary { background: var(--accent); }
.btn-danger { background: var(--error); padding: 0.5rem; }

/* Navigation */
.nav-links { text-align: center; margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; }
.login-links { text-align: center; margin-top: 1rem; display: flex; gap: 1rem; justify-content: center; }
.login-links a, .nav-links a { color: var(--text); }

/* Progress Bar */
.progress-bar {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.5s ease;
}
.mini-progress { width: 60px; height: 6px; display: inline-block; background: #eee; border-radius: 3px; margin-right: 5px; }
.mini-progress .progress-fill { border-radius: 3px; }
.progress-text { color: var(--text-light); }

/* Logs */
.logs-container { max-height: 200px; overflow-y: auto; }
.log {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: #f0f0f0;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.375rem 0;
    border-left: 3px solid var(--accent);
}

/* Agenda */
.agenda-list { display: flex; flex-direction: column; gap: 0.5rem; }
.agenda-item { padding: 0.75rem; background: #fff; border-radius: 4px; border: 1px solid var(--border); }

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Tables */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table th { background: #f5f5f5; font-weight: 600; }
.actions { display: flex; gap: 0.5rem; align-items: center; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat-card { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: var(--accent); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }

/* Alerts */
.alert { padding: 1rem; border-radius: var(--radius); margin: 0.5rem 0; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }

/* Login Page */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-container { width: 100%; max-width: 400px; }

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.header-actions { display: flex; gap: 1rem; align-items: center; }
.startup-name { color: var(--text-light); }

/* Footer */
footer { text-align: center; padding: 2rem; color: var(--text-light); font-size: 0.875rem; border-top: 1px solid var(--border); margin-top: 2rem; }

/* App URL */
.app-url { font-family: monospace; background: #f5f5f5; padding: 0.5rem; border-radius: 4px; margin-top: 0.5rem; word-break: break-all; }

/* Details */
.test-details { margin-top: 1rem; }
.test-details summary { cursor: pointer; padding: 0.5rem; background: #f5f5f5; border-radius: 4px; }
.test-result { padding: 1rem; background: #fff; border: 1px solid var(--border); border-radius: 4px; margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 600px) {
    header h1 { font-size: 1.5rem; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .header-actions { width: 100%; justify-content: space-between; }
    .nav-links, .login-links { flex-direction: column; }
    .data-table { font-size: 0.875rem; }
    .actions { flex-direction: column; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease; }