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

body {
    min-height: 100vh;
    background: #eef2f7;
    color: #1f2937;
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    padding: 24px;
}

.container {
    max-width: 760px;
    margin: 0 auto;
}

.admin-container {
    max-width: 1180px;
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    padding: 32px;
}

.card h1 {
    color: #111827;
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.card p {
    color: #64748b;
    margin-bottom: 24px;
}

.card-footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 28px;
    padding-top: 18px;
}

.card-footer p {
    margin-bottom: 8px;
}

.form-row {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    margin-bottom: 18px;
}

.form-group label,
.feedback-actions label {
    color: #334155;
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea,
.feedback-actions select,
.feedback-actions textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #111827;
    font: inherit;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea,
.feedback-actions textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.feedback-actions select:focus,
.feedback-actions textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
    outline: none;
}

.btn {
    align-items: center;
    background: #2563eb;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #475569;
}

.btn-secondary:hover {
    background: #334155;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

.alert {
    border-radius: 6px;
    margin-bottom: 20px;
    padding: 12px 14px;
}

.alert.error {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

.alert.success {
    background: #ecfdf5;
    border-left: 4px solid #059669;
    color: #065f46;
}

.text-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.admin-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.status-tabs a {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    padding: 8px 14px;
    text-decoration: none;
}

.status-tabs a.active,
.status-tabs a:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.empty-state {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    margin-bottom: 18px;
    padding: 28px;
    text-align: center;
}

.feedback-list {
    display: grid;
    gap: 18px;
}

.feedback-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 20px;
    position: relative;
}

.feedback-title-row {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.feedback-title-row h2 {
    color: #111827;
    font-size: 20px;
    line-height: 1.35;
}

.feedback-meta {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 14px;
}

.feedback-message {
    color: #1f2937;
    white-space: normal;
}

.status-badge {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 10px;
}

.status-new {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-resolved {
    background: #dcfce7;
    color: #166534;
}

.status-closed {
    background: #e5e7eb;
    color: #374151;
}

.admin-note {
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
    border-radius: 4px;
    margin-top: 14px;
    padding: 12px;
}

.feedback-actions {
    display: grid;
    gap: 10px;
}

.delete-form {
    bottom: 20px;
    position: absolute;
    right: 20px;
}

.delete-form .btn {
    min-height: 36px;
    padding: 8px 12px;
}

.login-attempts {
    margin-top: 34px;
}

.login-attempts h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

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

.data-table th,
.data-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
}

.data-table th {
    background: #f8fafc;
    color: #334155;
}

@media (max-width: 820px) {
    body {
        padding: 14px;
    }

    .card {
        padding: 22px;
    }

    .form-row,
    .feedback-item {
        grid-template-columns: 1fr;
    }

    .admin-header,
    .feedback-title-row {
        display: block;
    }

    .admin-header .btn {
        margin-top: 12px;
        width: 100%;
    }

    .delete-form {
        position: static;
    }

    .delete-form .btn {
        width: 100%;
    }
}
