@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600&family=Space+Grotesk:wght@400;600&display=swap');

:root {
    --bg: #f2efe6;
    --bg-2: #e4dfd0;
    --ink: #1f2228;
    --muted: #5a646e;
    --accent: #0f6c6d;
    --accent-2: #b8562f;
    --card: #ffffff;
    --line: #d4d0c4;
    --success: #1f7a4f;
    --warn: #b25800;
    --danger: #b0302e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Crimson Pro", Georgia, serif;
    background: radial-gradient(circle at top, var(--bg), var(--bg-2));
    color: var(--ink);
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

nav a {
    margin-right: 16px;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.container {
    max-width: 1100px;
    margin: 24px auto 64px;
    padding: 0 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    margin: 0 0 12px;
}

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

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: "Crimson Pro", Georgia, serif;
}

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

button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    cursor: pointer;
}

button.secondary {
    background: #2f3b46;
}

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

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.badge.pending {
    background: #f0e3c0;
    color: #6a4d00;
}

.badge.sent {
    background: #d4f0df;
    color: #1f7a4f;
}

.badge.failed {
    background: #f3d2d1;
    color: #8b2a28;
}

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.alert.error {
    background: #f8e1e0;
    color: #8b2a28;
    border: 1px solid #e6b7b5;
}

.alert.success {
    background: #e0f4ea;
    color: #1f7a4f;
    border: 1px solid #b7e1ca;
}

.form-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer {
    text-align: center;
    color: var(--muted);
    padding: 24px;
}

.auth .site-header {
    justify-content: center;
}

.auth .container {
    max-width: 460px;
}
