* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #eef2f7;
    color: #1f2937;
}

header {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    text-align: center;
    padding: 50px 20px;
    border-bottom: 1px solid #cbd5e1;
}

header h1 {
    margin: 0 0 12px;
    font-size: 40px;
}

header p {
    margin: 0;
    font-size: 18px;
    color: #334155;
}

main {
    max-width: 1150px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.intro,
.steps-section,
.diagnostic-box,
.contact-box,
.cta-section,
.admin-panel-box {
    background: white;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.intro h2,
.steps-section h2,
.contact-box h2,
.cta-section h2,
.admin-panel-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 26px;
}

.intro p,
.contact-text,
.cta-section p {
    margin: 0;
    line-height: 1.8;
    font-size: 16px;
    color: #475569;
}

.features-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-card,
.step-card {
    background: white;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.feature-card h3,
.step-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #0f172a;
}

.feature-card p,
.step-card p {
    margin: 0;
    line-height: 1.7;
    color: #475569;
}

.steps-section {
    margin-bottom: 30px;
}

.step-card {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    box-shadow: none;
}

.step-number {
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    font-weight: bold;
    margin-bottom: 12px;
}

.problem-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.problem-buttons button {
    border: none;
    background: #2563eb;
    color: white;
    padding: 15px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.2s ease;
}

.problem-buttons button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.diagnostic-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 28px;
    color: #0f172a;
}

.diagnostic-text {
    margin-bottom: 20px;
    color: #475569;
    line-height: 1.7;
}

.diagnostic-box label,
.status-form label,
.response-form label,
.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.diagnostic-box > label {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease;
    margin-bottom: 14px;
}

.diagnostic-box > label:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.diagnostic-box input[type="checkbox"] {
    margin-right: 10px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

#resultBtn,
#clearBtn,
#heatResultBtn,
#heatClearBtn,
#soundResultBtn,
#soundClearBtn,
#powerResultBtn,
#powerClearBtn {
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-size: 15px;
    font-weight: bold;
    transition: 0.2s ease;
}

#resultBtn,
#heatResultBtn,
#soundResultBtn,
#powerResultBtn {
    background: #16a34a;
}

#resultBtn:hover,
#heatResultBtn:hover,
#soundResultBtn:hover,
#powerResultBtn:hover {
    background: #15803d;
}

#clearBtn,
#heatClearBtn,
#soundClearBtn,
#powerClearBtn {
    background: #dc2626;
}

#clearBtn:hover,
#heatClearBtn:hover,
#soundClearBtn:hover,
#powerClearBtn:hover {
    background: #b91c1c;
}

.result-box {
    margin-top: 24px;
    padding: 18px 20px;
    background: #eff6ff;
    border-left: 5px solid #2563eb;
    border-radius: 10px;
    min-height: 30px;
    line-height: 1.8;
}

.result-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.result-box ul {
    margin: 0;
    padding-left: 20px;
}

.hidden {
    display: none;
}

.top-nav {
    margin-bottom: 25px;
}

.top-nav a {
    display: inline-block;
    margin: 0 10px 10px;
    text-decoration: none;
    color: #1e3a8a;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.top-nav a:hover {
    background: white;
}

.contact-form,
.status-form,
.response-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.status-form select,
.response-form textarea,
.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    background: white;
}

.contact-form textarea,
.response-form textarea {
    resize: vertical;
}

.submit-btn,
.search-btn,
.status-btn,
.response-btn,
.delete-btn,
.admin-link,
.cta-button,
.reset-btn {
    display: inline-block;
    border: none;
    text-decoration: none;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: 0.2s ease;
}

.submit-btn,
.search-btn,
.admin-link,
.cta-button {
    background: #2563eb;
}

.submit-btn:hover,
.search-btn:hover,
.admin-link:hover,
.cta-button:hover {
    background: #1d4ed8;
}

.status-btn {
    background: #f59e0b;
}

.status-btn:hover {
    background: #d97706;
}

.response-btn {
    background: #0f766e;
}

.response-btn:hover {
    background: #115e59;
}

.delete-btn {
    background: #dc2626;
}

.delete-btn:hover {
    background: #b91c1c;
}

.reset-btn {
    background: #64748b;
}

.reset-btn:hover {
    background: #475569;
}

.message-box {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
}

.status-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-progress {
    background: #fef3c7;
    color: #b45309;
}

.status-done {
    background: #dcfce7;
    color: #15803d;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 20px;
}

.filter-link {
    text-decoration: none;
    background: #e2e8f0;
    color: #1e293b;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: bold;
    transition: 0.2s ease;
}

.filter-link:hover {
    background: #cbd5e1;
}

.active-filter {
    background: #2563eb;
    color: white;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 260px;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 24px;
}

.request-card {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.request-card-top {
    margin-bottom: 18px;
}

.request-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}

.meta-label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.meta-value {
    display: block;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.5;
    word-break: break-word;
}

.content-block {
    margin-top: 10px;
}

.content-title {
    margin: 0 0 10px;
    font-size: 18px;
    color: #0f172a;
}

.request-message {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    line-height: 1.7;
    color: #1e293b;
    white-space: normal;
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.admin-action-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
}

.admin-response-box {
    margin-top: 15px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 14px;
    line-height: 1.7;
    color: #14532d;
}

.pending-response-box {
    margin-top: 15px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 12px;
    padding: 14px;
    line-height: 1.7;
    color: #9a3412;
}

.danger-zone {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
}

.delete-form {
    margin: 0;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.admin-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.7;
}

.empty-state {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    color: #475569;
}

.empty-state h3 {
    margin-top: 0;
    color: #0f172a;
}

.status-check-box {
    margin-top: 25px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 20px;
    line-height: 1.7;
}

.cta-section {
    text-align: center;
}

.site-footer {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
}