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

body {
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 30px 15px;
    color: #333;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 30px;
}

h1, h2 {
    color: #2d3748;
    margin-bottom: 20px;
}

h1 { font-size: 24px; text-align: center; }
h2 { font-size: 19px; }

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

label {
    display: block;
    margin-bottom: 6px;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary { background: #667eea; color: #fff; }
.btn-primary:hover { background: #5568d3; }
.btn-full { width: 100%; padding: 13px; font-size: 15px; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background: #c6f6d5; color: #22543d; border-left: 4px solid #38a169; }
.alert-error { background: #fed7d7; color: #742a2a; border-left: 4px solid #e53e3e; }

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background: #667eea;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

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

thead { background: #f7fafc; }

th {
    padding: 14px;
    text-align: left;
    font-size: 13px;
    color: #4a5568;
    text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 14px;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

tbody tr:hover { background: #f7fafc; }

.empty {
    text-align: center;
    padding: 50px 20px;
    color: #a0aec0;
    font-style: italic;
}

@media (max-width: 640px) {
    .card { padding: 20px; }
    table thead { display: none; }
    table, tbody, tr, td { display: block; width: 100%; }
    tbody tr { margin-bottom: 14px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; }
    td { border: none; padding: 6px 8px; }
}
