* {
    box-sizing: border-box;
    background:#fff;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    
}

h1, h2 {
    margin-top: 0;
    color: #111827;
}

.subtitle {
    margin-bottom: 24px;
    color: #6b7280;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.server-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

button,
.btn-link {
    display: inline-block;
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn-link.secondary {
    background: #111827;
}

button:hover,
.btn-link:hover {
    opacity: 0.92;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}

thead {
    background: #eff6ff;
}

th,
td {
    padding: 14px 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

tr:nth-child(even) {
    background: #fafafa;
}

.small {
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 640px) {
    .card {
        padding: 22px;
        border-radius: 12px;
    }

    h1, h2 {
        font-size: 24px;
    }

    th,
    td {
        font-size: 13px;
        padding: 10px;
    }
}
