*:focus {
    outline: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f6fa;
    color: #222;
    font-size: 15px;
}

.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
}

.form-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 32px;
    width: 480px;
}

.form-card h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

.subtitle {
    color: #666;
    margin: 0 0 24px;
}

.field {
    margin-bottom: 16px;
}

.field label,
.field-title {
    display: block;
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d4dc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.field textarea {
    resize: vertical;
    min-height: 72px;
}

.field-error {
    color: #d93025;
    font-size: 12px;
    margin-top: 4px;
    min-height: 14px;
}

#submit-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
}

#submit-btn:disabled {
    background: #9db4e8;
    cursor: not-allowed;
}

.form-error {
    color: #d93025;
    font-size: 13px;
    margin-top: 10px;
    min-height: 16px;
}

.privacy-note {
    color: #888;
    font-size: 11px;
    text-align: center;
    margin-top: 20px;
}

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

.success-text {
    color: #444;
    margin: 16px 0 24px;
}

.btn-link {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
}

/* Admin */
.admin-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

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

#logout-btn {
    background: #fff;
    border: 1px solid #d0d4dc;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
}

.filters select,
.filters input {
    padding: 8px 10px;
    border: 1px solid #d0d4dc;
    border-radius: 6px;
    font-size: 14px;
}

#phone-search {
    flex: 1;
    max-width: 260px;
}

#total-counter {
    color: #666;
    font-size: 13px;
    margin-left: auto;
}

#requests-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

#requests-table th,
#requests-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eef0f4;
    font-size: 14px;
}

#requests-table thead {
    background: #f0f2f7;
    color: #555;
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.status-new {
    color: #2563eb;
    font-weight: 500;
}

.status-handled {
    color: #2e7d32;
}

.mark-handled-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

#pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

#pagination button {
    background: #fff;
    border: 1px solid #d0d4dc;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
}
