* { box-sizing: border-box; }

body {
    font-family: system-ui, Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2430;
    margin: 0;
    padding: 0;
}

header {
    background: #1f2937;
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: white;
    text-decoration: none;
}

header .brand {
    font-weight: 600;
    font-size: 1.1rem;
}

main {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px 40px;
}

.card {
    background: white;
    border: 1px solid #e2e4e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

h1, h2 {
    margin-top: 0;
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

input[type=text], input[type=password], textarea, select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cfd3da;
    border-radius: 6px;
    font-size: 0.95rem;
}

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

button {
    margin-top: 14px;
    background: #2563eb;
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

button.danger {
    background: #dc2626;
}

button.danger:hover {
    background: #b91c1c;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

th, td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e4e9;
    font-size: 0.9rem;
    vertical-align: top;
}

th {
    background: #f9fafb;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.success {
    background: #dcfce7;
    color: #166534;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
}

.badge.status-ouvert { background: #fef3c7; color: #92400e; }
.badge.status-en-cours { background: #dbeafe; color: #1e40af; }
.badge.status-resolu { background: #dcfce7; color: #166534; }

.login-wrap {
    max-width: 380px;
    margin: 80px auto;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form select {
    width: auto;
}

.inline-form button {
    margin-top: 0;
}
