/* Strategy Analysis Web Application Styles */

.hidden {
    display: none !important;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card styling */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-title {
    color: #333;
    font-weight: 600;
}

/* Form styling */
.form-label {
    font-weight: 500;
    color: #555;
}

.form-control:focus {
    border-color: #0D9488;
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.15);
}

/* Bootstrap primary override — teal */
.btn-primary {
    background-color: #0D9488;
    border-color: #0D9488;
}
.btn-primary:hover {
    background-color: #0B7C72;
    border-color: #0B7C72;
}
.btn-primary:active, .btn-primary:focus {
    background-color: #0A6E65;
    border-color: #0A6E65;
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}
.btn-outline-primary {
    color: #0D9488;
    border-color: #0D9488;
}
.btn-outline-primary:hover {
    background-color: #0D9488;
    border-color: #0D9488;
    color: #fff;
}
.btn-outline-primary:active, .btn-outline-primary:focus {
    background-color: #0B7C72;
    border-color: #0B7C72;
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}
.text-primary {
    color: #0D9488 !important;
}
.spinner-border.text-primary {
    color: #0D9488 !important;
}

/* Button styling */
.btn-primary {
    font-weight: 500;
}

/* Alert styling */
.alert {
    border-radius: 0.375rem;
}

/* Footer styling */
.footer {
    margin-top: auto;
}

/* Navbar styling */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    position: relative;
    z-index: 1050;
}
.navbar-brand {
    font-weight: 600;
}
.brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}
.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.navbar-nav .nav-link:hover {
    color: #0D9488;
}
.navbar-nav .nav-link.active {
    color: #0D9488;
    border-bottom-color: #0D9488;
}
.navbar-nav .nav-link .nav-icon {
    margin-right: 0.35rem;
}

/* Rendered advice markdown */
.advice-markdown {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.7;
}
.advice-markdown h1 {
    font-size: 1.63rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
}
.advice-markdown h2 {
    font-size: 1.37rem;
    font-weight: 600;
    color: #334155;
    margin: 1.25rem 0 0.6rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f1f5f9;
}
.advice-markdown h3 {
    font-size: 1.24rem;
    font-weight: 600;
    color: #334155;
    margin: 1.25rem 0 0.5rem 0;
}
.advice-markdown h4 {
    font-size: 1.17rem;
    font-weight: 600;
    color: #475569;
    margin: 1rem 0 0.5rem 0;
}
.advice-markdown p {
    margin-bottom: 0.75rem;
}
.advice-markdown ul,
.advice-markdown ol {
    padding-left: 1.5rem;
    margin: 0 0 0.75rem 0;
}
.advice-markdown li {
    margin-bottom: 0.3rem;
}
.advice-markdown hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.25rem 0;
}
.advice-markdown code {
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.advice-markdown pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 0.75rem;
}
.advice-markdown pre code {
    background: none;
    padding: 0;
}
.advice-markdown blockquote {
    border-left: 3px solid #0D9488;
    padding: 0.5rem 1rem;
    margin: 0 0 0.75rem 0;
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
}
.advice-markdown strong {
    font-weight: 700;
    color: #1e293b;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem !important;
    }
}

/* ── Shared: loading indicator ── */
.loading {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}

/* ── Results and advice containers ── */
.results-container,
.advice-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Page header text (results and advice pages) ── */
.results-container .page-header h1,
.advice-container .page-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}
.results-container .page-header p,
.advice-container .page-header p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

/* ── Advice page: flex header ── */
.advice-container .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Content cards (results and advice) ── */
.results-card,
.advice-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    text-align: left;
}

/* ── Empty states ── */
.no-results,
.no-advice {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}
.no-results p,
.no-advice p {
    margin: 0.5rem 0;
}

/* ── Data input page ── */
.data-input-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.page-header-left h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}
.page-header-left p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}
.rating-legend {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}
.rating-legend-label {
    font-weight: 600;
    color: #475569;
}
.rating-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.rating-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid transparent;
}
.rating-legend-dot.outline {
    background: transparent;
}
.save-indicator {
    font-size: 0.8rem;
    min-height: 1.25rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.save-indicator.saving { color: #94a3b8; }
.save-indicator.saved { color: #64748b; }
.save-indicator.error { color: #dc3545; }
.save-indicator .save-icon {
    width: 14px;
    height: 14px;
}
.table-container {
    overflow: auto;
    position: relative;
    max-height: 70vh;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}
.rating-table {
    width: 100%;
    border-collapse: collapse;
}
.rating-table th,
.rating-table td {
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    padding: 0.6rem 0.75rem;
    text-align: center;
    vertical-align: middle;
}
.rating-table th {
    background-color: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: none;
    white-space: nowrap;
    border-bottom: 2px solid #e2e8f0;
}
.rating-table th:last-child,
.rating-table td:last-child {
    border-right: none;
}
.rating-table .row-name-cell {
    min-width: 170px;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: #fff;
}
.rating-table thead .row-name-cell {
    z-index: 3;
    background-color: #f8fafc;
}
.rating-table .row-name-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}
.drag-handle {
    flex-shrink: 0;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    cursor: grab;
    font-size: 0.7rem;
    letter-spacing: 1px;
    user-select: none;
    touch-action: none;
}
.drag-handle:hover { color: #64748b; }
.drag-handle:active { cursor: grabbing; }
tr.dragging {
    opacity: 0.4;
    background: #f0fdfa !important;
}
tr.dragging > td { background: #f0fdfa !important; }
.drop-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #0D9488;
    pointer-events: none;
    z-index: 10;
}
.rating-table .row-name-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.2rem 0.35rem;
    font-size: 0.875rem;
    color: #334155;
    border-radius: 4px;
}
.rating-table .row-name-input:focus {
    outline: 2px solid #0D9488;
    background: #fff;
}
.rating-table .actions-cell {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    position: sticky;
    left: 170px;
    z-index: 1;
    background-color: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 0.4rem;
}
.rating-table thead .actions-cell {
    z-index: 3;
    background-color: #f8fafc;
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.delete-row-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    transition: background 0.15s, color 0.15s;
}
.delete-row-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}
.rating-table .header-cell { min-width: 80px; }
.rating-table .header-cell.active-col { border-bottom-color: #0D9488; }
.rating-table .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.rating-table .header-input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #475569;
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
}
.rating-table .header-input:focus {
    outline: 2px solid #0D9488;
    background: #fff;
}
.delete-col-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}
.delete-col-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}
.rating-table .add-col-cell {
    width: 40px;
    min-width: 40px;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.4rem;
}
.rating-table td.add-col-cell {
    background-color: #fff;
    border-bottom: 1px solid #f1f5f9;
}
.add-col-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px dashed #cbd5e1;
    background: transparent;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.add-col-btn:hover {
    border-color: #0D9488;
    color: #0D9488;
    background: #f0fdfa;
}
.rating-table .rating-cell {
    min-width: 36px;
    padding: 0.4rem 0.25rem;
    transition: min-width 0.15s ease;
}
.rating-table .rating-cell.expanded { min-width: 130px; }
.rating-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    outline: none;
    border-radius: 4px;
    padding: 3px;
    cursor: pointer;
}
.rating-dots:focus {
    outline: 2px solid #0D9488;
    outline-offset: 1px;
}
.rating-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.1s, border-color 0.1s;
    flex-shrink: 0;
}
.rating-dot:hover { opacity: 0.8; }
.rating-dot[data-value="-2"] { border-color: #ef4444; }
.rating-dot[data-value="-1"] { border-color: #f97316; }
.rating-dot[data-value="0"]  { border-color: #cbd5e1; }
.rating-dot[data-value="1"]  { border-color: #5eead4; }
.rating-dot[data-value="2"]  { border-color: #0D9488; }
.rating-dot.selected[data-value="-2"] { background-color: #ef4444; border-color: #ef4444; }
.rating-dot.selected[data-value="-1"] { background-color: #f97316; border-color: #f97316; }
.rating-dot.selected[data-value="0"]  { background-color: #cbd5e1; border-color: #cbd5e1; }
.rating-dot.selected[data-value="1"]  { background-color: #5eead4; border-color: #5eead4; }
.rating-dot.selected[data-value="2"]  { background-color: #0D9488; border-color: #0D9488; }
.rating-cell:not(.expanded) .rating-dot:not(.selected) { display: none; }
.rating-dots.empty-highlight {
    outline: 2px solid #ef4444;
    outline-offset: 1px;
    border-radius: 4px;
}
.rating-cell:not(.expanded) .rating-dots:not(:has(.selected))::after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px dashed #e2e8f0;
    display: block;
    flex-shrink: 0;
}
.add-row-tr td {
    border-bottom: none;
    padding: 0.5rem 0.75rem;
}
.add-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.add-row-btn:hover {
    color: #0D9488;
    background: #f0fdfa;
}
.add-row-btn .plus-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px dashed currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
}
.add-row-fab {
    position: sticky;
    bottom: 8px;
    left: 8px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px dashed #cbd5e1;
    background: #fff;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    float: left;
    margin: 4px 0 0 8px;
}
.add-row-fab:hover {
    border-color: #0D9488;
    color: #0D9488;
    background: #f0fdfa;
}
.read-only .add-row-fab { display: none; }
.submit-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #0D9488;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.submit-btn:hover:not(:disabled) { background: #0B7C72; }
.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}
.submit-btn .btn-icon {
    width: 18px;
    height: 18px;
}
.submit-btn.submitted { background: #64748b; }
.page-hints {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}
.page-hints span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.page-hints .hint-icon {
    width: 14px;
    height: 14px;
}
.result-links {
    margin-top: 1.25rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}
.result-links a { margin: 0 0.5rem; }
.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.read-only .rating-dots,
.read-only .rating-dot,
.read-only .row-name-input,
.read-only .header-input {
    pointer-events: none;
}
.read-only .row-name-input,
.read-only .header-input {
    background-color: transparent;
    color: #94a3b8;
}
.rating-table tbody tr:hover > td { background-color: #f8fafc; }
.rating-table tbody tr:hover > .row-name-cell,
.rating-table tbody tr:hover > .actions-cell {
    background-color: #f8fafc;
}
.setup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.setup-guide {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.setup-guide-header { padding: 1.5rem 1.75rem 0; }
.setup-guide-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}
.setup-guide-header p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 0.25rem 0;
    line-height: 1.5;
}
.setup-guide-header .guide-note {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0.75rem 0 0;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #0D9488;
}
.setup-guide-body {
    padding: 1rem 1.75rem;
    overflow-y: auto;
    flex: 1;
}
.setup-guide-body label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.project-name-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.project-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.project-name-row .setup-drag-handle {
    flex-shrink: 0;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    cursor: grab;
    font-size: 0.7rem;
    user-select: none;
    touch-action: none;
}
.project-name-row .setup-drag-handle:hover { color: #64748b; }
.project-name-row .setup-drag-handle:active { cursor: grabbing; }
.project-name-row.dragging {
    opacity: 0.4;
    background: #f0fdfa;
    border-radius: 6px;
}
.setup-drop-indicator {
    height: 2px;
    background: #0D9488;
    border-radius: 1px;
    margin: -1px 0;
    pointer-events: none;
}
.project-name-row .row-number {
    width: 24px;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
}
.project-name-row input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    font-size: 0.875rem;
    color: #334155;
    transition: border-color 0.15s;
}
.project-name-row input:focus {
    outline: none;
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.project-name-row input::placeholder { color: #cbd5e1; }
.project-name-row .remove-project-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.project-name-row .remove-project-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}
.add-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.25rem;
    transition: color 0.15s, background 0.15s;
}
.add-project-btn:hover {
    color: #0D9488;
    background: #f0fdfa;
}
.setup-guide-footer {
    padding: 1rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid #f1f5f9;
}
.setup-guide-footer .guide-counter {
    font-size: 0.8rem;
    color: #94a3b8;
}
.setup-guide-footer .guide-counter .count-value {
    font-weight: 600;
    color: #475569;
}
.setup-guide-footer .guide-counter .count-ok { color: #16a34a; }
.setup-guide-footer .guide-counter .count-low { color: #f97316; }
.setup-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #0D9488;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.setup-start-btn:hover:not(:disabled) { background: #0B7C72; }
.setup-start-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}
.shortcuts-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: color 0.15s;
}
.shortcuts-toggle:hover { color: #64748b; }
.shortcuts-toggle .chevron-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}
.shortcuts-toggle.open .chevron-icon { transform: rotate(180deg); }
.shortcuts-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    opacity: 0;
    width: 100%;
}
.shortcuts-panel.open {
    max-height: 300px;
    opacity: 1;
}
.shortcuts-columns {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 0 0.5rem;
}
.shortcuts-group h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 0.5rem 0;
}
.shortcuts-group dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.75rem;
    align-items: baseline;
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}
.shortcuts-group dt {
    text-align: right;
    font-weight: normal;
    white-space: nowrap;
}
.shortcuts-group dd { margin: 0; }
kbd {
    display: inline-block;
    padding: 1px 5px;
    font-size: 0.7rem;
    font-family: inherit;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    line-height: 1.4;
}
.kbd-note {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-left: 2px;
}

/* ── Admin page ── */
.statistics-card { text-align: center; }
.statistics-card .card-body { padding: 1.25rem; }
.statistics-card .card-title {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.statistics-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #212529;
    margin: 0;
}
#search-input { max-width: 400px; }
#search-count { margin-top: 0.25rem; }
#user-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}
#user-table td { vertical-align: middle; }
#user-table .btn-group-sm .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
#user-table .btn:disabled { cursor: not-allowed; }
.admin-loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.admin-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.advice-preview {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.5rem;
    min-height: 300px;
}
.advice-preview .empty-preview {
    color: #94a3b8;
    text-align: center;
    padding: 3rem 0;
}
@media (max-width: 768px) {
    .statistics-card .stat-value { font-size: 1.5rem; }
    #search-input { max-width: 100%; }
}
