/* File: assets/css/style.css - Giao diện hiện đại, tối ưu hiển thị */
:root {
    --primary: #1e40af;
    --primary-hover: #1d4ed8;
    --success: #15803d;
    --warning: #b45309;
    --danger: #b91c1c;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 28px 0;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.badge-topic {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.top-header h1 {
    font-size: 1.65rem;
    margin-bottom: 4px;
}

.subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.team-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-size: 1.25rem;
    color: #1e293b;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.health-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 16px;
    border-radius: 8px;
}

.health-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.health-value {
    font-size: 0.98rem;
    color: var(--text);
}

/* Gợi ý 3: Bảng kiểm tra thư viện PHP */
.ext-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.sub-heading {
    font-size: 0.96rem;
    color: #334155;
    margin-bottom: 12px;
}

.ext-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.ext-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.ext-ok {
    color: #166534;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
}

.ext-warn {
    color: #92400e;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
}

.task-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.task-form input {
    flex: 1;
    min-width: 260px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

.task-form select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
}

/* Gợi ý 2: Thanh lọc & Tìm kiếm */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.search-input {
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.88rem;
    min-width: 220px;
}

.btn {
    cursor: pointer;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: #eff6ff;
}

.btn-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.btn-warning:hover {
    background: #f59e0b;
    color: #fff;
}

.btn-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table th, .task-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.task-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-completed { background: #dcfce7; color: #166534; }
.status-in_progress { background: #fef3c7; color: #92400e; }
.status-pending { background: #e2e8f0; color: #334155; }

.progress-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Gợi ý 4: Công cụ tạo nhanh file .env & .htaccess */
.badge-sub {
    background: #ede9fe;
    color: #5b21b6;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.section-desc {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.gen-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
}

.gen-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
}

.gen-output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
}

.code-box {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #334155;
}

.code-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.btn-copy {
    cursor: pointer;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-copy:hover {
    background: #2563eb;
}

.code-box pre {
    padding: 14px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.84rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
}

.text-center {
    text-align: center;
}

.footer {
    text-align: center;
    padding: 24px;
    color: var(--muted);
    font-size: 0.9rem;
}
