/* ==========================================================================
   LockedSystem - Portail Projets - Style
   ========================================================================== */

:root {
    --primary: #00b4d8;
    --primary-dark: #0096b8;
    --primary-light: #e0f7fc;
    --primary-bg: #f0fbfd;
    --text: #2d3748;
    --text-light: #718096;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --bg: #f7fafc;
    --card-bg: #ffffff;
    --success: #00a854;
    --danger: #dc3545;
    --warning: #f0a020;
    --info: #3b82f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-lg: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 12px 0; font-weight: 600; line-height: 1.3; }

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1929 0%, #103040 50%, #0a3a4a 100%);
    padding: 20px;
}

.auth-wrapper { width: 100%; max-width: 440px; }

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-brand { text-align: center; margin-bottom: 32px; }

.auth-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(0,180,216,0.3);
}

.auth-brand h1 { font-size: 24px; margin: 0 0 4px 0; color: var(--text); }
.auth-tagline { color: var(--text-light); margin: 0; font-size: 14px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-info {
    background: var(--primary-bg);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.auth-info i { color: var(--primary); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.auth-info p { margin: 0; }

.auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}
.auth-footer p { margin: 4px 0; }
.auth-tech-info { font-size: 11px; }

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=password],
.form-field input[type=date],
.form-field textarea,
.form-field select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    color: var(--text);
    transition: all 0.15s ease;
    font-family: inherit;
    width: 100%;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}

.input-icon { position: relative; }
.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    z-index: 2;
}
.input-icon input,
.form-field .input-icon input[type=text],
.form-field .input-icon input[type=email],
.form-field .input-icon input[type=password] {
    padding-left: 42px;
}

.form-help { font-size: 12px; color: var(--text-light); }

.otp-input {
    text-align: center !important;
    font-size: 24px !important;
    letter-spacing: 8px;
    font-family: ui-monospace, monospace;
}

.form-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,180,216,0.3);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border-color: transparent;
}
.btn-ghost:hover {
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}
.btn-danger:hover { background: #b02a3a; color: white; text-decoration: none; }

.btn-block { width: 100%; padding: 12px 20px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ==========================================================================
   ALERTS
   ========================================================================== */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: #fde2e1; color: #a01818; border: 1px solid #f5c6c4; }
.alert-success { background: #d1f4e0; color: #006d2c; border: 1px solid #a8e6c1; }
.alert-info { background: #d6ecff; color: #084d8b; border: 1px solid #a3cef1; }
.alert-warning { background: #fff4d6; color: #8b6e1a; border: 1px solid #f0d97a; }

.alert-floating {
    position: fixed;
    top: 80px;
    right: 24px;
    max-width: 400px;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(120%); } to { transform: translateX(0); } }

/* ==========================================================================
   APP LAYOUT
   ========================================================================== */

.app-header {
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.app-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}
.app-brand:hover { text-decoration: none; }
.app-brand-logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.app-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.app-brand-text strong { font-size: 15px; }
.app-brand-text small { color: var(--text-light); font-size: 11px; }

.app-user { display: flex; align-items: center; gap: 12px; position: relative; }
.app-user-name { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.app-user-soc { font-size: 12px; color: var(--text-light); padding: 2px 8px; background: var(--bg); border-radius: 100px; }

.app-user-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px; height: 36px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.15s ease;
}
.app-user-toggle:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); }

.app-user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 4px;
    display: none;
    z-index: 100;
}
.app-user-dropdown.open { display: block; }
.app-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    border-radius: 6px;
}
.app-user-dropdown a:hover { background: var(--bg); text-decoration: none; }
.app-user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

.app-main {
    min-height: calc(100vh - 64px - 60px);
    padding: 24px;
}

.app-footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    margin-top: 40px;
}
.app-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 12px;
}
.app-footer p { margin: 0; }
.app-footer-meta { font-size: 11px; }

/* ==========================================================================
   CONTENT
   ========================================================================== */

.container { max-width: 1400px; margin: 0 auto; }
.container-narrow { max-width: 800px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    flex-wrap: wrap;
}
.page-header h1 { font-size: 26px; margin: 0 0 4px 0; }
.page-subtitle { color: var(--text-light); margin: 0; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.breadcrumb { font-size: 13px; margin-bottom: 12px; color: var(--text-light); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

.h2 { font-size: 18px; margin: 0 0 16px 0; }

/* ==========================================================================
   PROJECT GRID (DASHBOARD)
   ========================================================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.15s ease;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
    border-color: var(--primary);
}

.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.project-card-ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: var(--text-light);
    padding: 2px 8px;
    background: var(--bg);
    border-radius: 4px;
}
.project-card-title { font-size: 17px; margin: 0; line-height: 1.3; }
.project-card-desc { font-size: 13px; color: var(--text-light); margin: 0; line-height: 1.5; }
.project-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 8px;
    border-top: 1px solid var(--border);
    align-items: center;
}
.project-card-meta span { display: flex; align-items: center; gap: 4px; }
.health-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-left: auto;
}

/* ==========================================================================
   PROGRESS
   ========================================================================== */

.progress-block { margin: 4px 0; }
.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-light);
}
.progress-bar {
    background: var(--bg);
    border-radius: 100px;
    overflow: hidden;
    height: 6px;
}
.progress-large { height: 12px; }
.progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--success));
    height: 100%;
    border-radius: 100px;
    transition: width 0.3s ease;
}

.progress-banner {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #e3f7fb 100%);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
}
.progress-banner-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 4px;
}
.progress-banner-stats { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.progress-banner-stats strong { font-size: 32px; color: var(--primary); line-height: 1; font-weight: 700; }
.progress-banner-stats span { font-size: 14px; color: var(--text-light); }
.progress-banner-deadline { font-size: 12px; color: var(--text-light); margin-top: 8px; }
.mini-badge { font-weight: 600; font-size: 13px; }

.progress-mini { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.progress-mini .progress-bar { width: 90px; flex-shrink: 0; }
.progress-mini span { font-size: 12px; font-weight: 600; color: var(--text-light); }

.project-description {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
    color: var(--text);
    font-size: 14px;
}

/* ==========================================================================
   TABS
   ========================================================================== */

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}
.tab {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   PHASES & TASKS
   ========================================================================== */

.phase-actions-bar {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.phase-block {
    margin-bottom: 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.phase-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
}
.phase-toggle { cursor: pointer; user-select: none; transition: background 0.15s ease; }
.phase-toggle:hover { background: #eef5f8; }

.phase-title-block { flex: 1; min-width: 0; }
.phase-title-block h3 { margin: 0; font-size: 16px; }

.phase-chevron {
    background: none;
    border: none;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.phase-chevron:hover { background: rgba(0,180,216,0.1); color: var(--primary); }
.phase-chevron i { transition: transform 0.25s ease; font-size: 13px; }

.phase-block.collapsed .phase-chevron i { transform: rotate(-90deg); }
.phase-block.collapsed .collapsible {
    max-height: 0 !important;
    opacity: 0;
    border-top: none;
}

.collapsible {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 9999px;
    opacity: 1;
}

.phase-header-old {
    padding: 16px 20px;
    display: none;
}
.phase-header h3 { margin: 0; font-size: 16px; }
.phase-desc { margin: 4px 0 0 0; font-size: 13px; color: var(--text-light); }
.phase-meta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.phase-count {
    font-size: 12px;
    color: var(--text-light);
    padding: 4px 10px;
    background: white;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.task-list { display: flex; flex-direction: column; }
.task-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    transition: background 0.1s ease;
}
.task-row:hover { background: var(--bg); }
.task-status { font-size: 18px; }
.task-main { min-width: 0; }
.task-label { font-weight: 500; font-size: 14px; }
.task-notes { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.task-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.task-resp, .task-date { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.task-late { color: var(--danger); font-weight: 600; }
.empty-tasks { padding: 20px; text-align: center; color: var(--text-muted); }

/* ==========================================================================
   GANTT TIMELINE
   ========================================================================== */

.gantt-wrap { overflow-x: auto; background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.gantt { border-collapse: collapse; width: 100%; min-width: 800px; }
.gantt th, .gantt td { padding: 10px; border: 1px solid var(--border); }
.gantt th {
    background: var(--bg);
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gantt-week { width: 70px; }
.gantt-week small { display: block; font-weight: normal; font-size: 10px; margin-top: 2px; }
.gantt-week-current { background: #fde2e1 !important; color: #a01818; }
.gantt-label-col { text-align: left; min-width: 200px; }
.gantt-label { background: var(--bg); font-size: 13px; }
.gantt-cell { background: white; height: 40px; padding: 4px !important; }
.gantt-cell-current { background: rgba(220,53,69,0.05) !important; border-left: 2px solid var(--danger); border-right: 2px solid var(--danger); }
.gantt-bar { height: 22px; border-radius: 4px; opacity: 0.8; }
.gantt-row-milestones td { background: #fffaf0 !important; }
.gantt-milestone { font-size: 16px; text-align: center; }

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-wrap {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; }
.table th {
    background: var(--bg);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg); }
.table-compact td { padding: 8px 12px; font-size: 13px; }

/* ==========================================================================
   DECISIONS & RISKS
   ========================================================================== */

.decision-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.decision-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.decision-date, .decision-validated { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.decision-text { font-weight: 500; margin: 0 0 8px 0; }
.decision-meta { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.decision-meta strong { color: var(--text); }

.risk-impact {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.comment-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 24px;
}
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment {
    display: flex;
    gap: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.comment-admin { background: var(--primary-bg); border-color: var(--primary-light); }
.comment-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--text-light);
}
.comment-admin .comment-avatar { background: var(--primary); color: white; }
.comment-body { flex: 1; min-width: 0; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    font-size: 13px;
}
.comment-tag {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.comment-date { color: var(--text-light); font-size: 12px; margin-left: auto; }
.comment-content { font-size: 14px; line-height: 1.5; word-wrap: break-word; }

/* ==========================================================================
   QR CODE BLOCK
   ========================================================================== */

.qr-block {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius);
    margin: 16px 0;
    flex-wrap: wrap;
}
.qr-block img { background: white; padding: 8px; border-radius: 4px; }
.qr-secret { flex: 1; min-width: 200px; }
.qr-secret p { margin: 0 0 8px 0; font-size: 13px; color: var(--text-light); }
.qr-secret code {
    display: block;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-family: ui-monospace, monospace;
    font-size: 13px;
    word-break: break-all;
    user-select: all;
}

.status-2fa {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.status-2fa.enabled { background: #d1f4e0; color: #006d2c; }
.status-2fa.disabled { background: #fff4d6; color: #8b6e1a; }
.status-2fa i { font-size: 20px; }

/* ==========================================================================
   MISC
   ========================================================================== */

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.card h2 { margin-top: 0; font-size: 18px; }
.card hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.empty-state {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 60px 32px;
    text-align: center;
    border: 2px dashed var(--border);
}
.empty-state i { font-size: 56px; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { margin: 0 0 8px 0; }
.empty-state p { color: var(--text-light); margin: 0 0 24px 0; max-width: 500px; margin-left: auto; margin-right: auto; }
.empty-small { padding: 30px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--bg);
    color: var(--text-light);
}

.text-muted { color: var(--text-light) !important; font-size: 13px; }
.text-danger { color: var(--danger) !important; }

.info-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.info-list dt { font-weight: 500; color: var(--text-light); font-size: 13px; }
.info-list dd { margin: 0; color: var(--text); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .auth-card { padding: 24px; }
    .app-main { padding: 16px; }
    .project-grid { grid-template-columns: 1fr; }
    .progress-banner { grid-template-columns: 1fr; }
    .task-row { grid-template-columns: auto 1fr; }
    .task-meta { grid-column: 1 / -1; }
    .qr-block { flex-direction: column; }
    .info-list { grid-template-columns: 1fr; }
    .info-list dt { margin-top: 8px; }
}

/* Print */
@media print {
    .app-header, .app-footer, .tabs, .btn, .comment-form { display: none !important; }
    .app-main { padding: 0; }
    .progress-banner { background: white; border: 1px solid #ccc; }
    .card, .phase-block, .table-wrap { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
