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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
}

nav {
    background: #2c3e50;
    padding: 12px 24px;
    display: flex;
    gap: 20px;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover { color: #3498db; }

.container {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
}

h1 { margin-bottom: 16px; }
h2 { margin-bottom: 12px; }

.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

form { display: flex; flex-direction: column; gap: 8px; max-width: 400px; }

label { font-weight: 500; margin-top: 4px; }

input, textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button {
    margin-top: 8px;
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover { background: #2980b9; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; font-weight: 600; }

code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    word-break: break-all;
}

.status-pending { color: #f39c12; font-weight: 600; }
.status-sent { color: #27ae60; font-weight: 600; }
.status-failed { color: #e74c3c; font-weight: 600; }

.filters { display: flex; gap: 12px; margin-bottom: 16px; }
.filters a {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.filters a.active { background: #3498db; color: #fff; border-color: #3498db; }

p { margin-bottom: 8px; }
