* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: #f0f2f5; color: #333; }

.sidebar {
    width: 240px; background: #1a1a2e; color: #fff;
    height: 100vh; position: fixed; top: 0; left: 0;
    display: flex; flex-direction: column; padding: 20px 0;
}
.sidebar .logo {
    padding: 0 20px 20px; border-bottom: 1px solid #2d2d4e;
    font-size: 18px; font-weight: 700; color: #4fc3f7;
}
.sidebar nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; color: #ccc; text-decoration: none;
    transition: all .2s;
}
.sidebar nav a:hover, .sidebar nav a.active {
    background: #2d2d4e; color: #fff; border-left: 3px solid #4fc3f7;
}
.sidebar nav a .icon { font-size: 18px; }

.main { margin-left: 240px; padding: 30px; min-height: 100vh; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: #1a1a2e; }

.card {
    background: #fff; border-radius: 12px;
    padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.08); margin-bottom: 20px;
}
.card h2 { font-size: 16px; color: #666; margin-bottom: 16px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: #fff; border-radius: 12px; padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08); text-align: center;
}
.stat-card .number { font-size: 32px; font-weight: 700; color: #1a1a2e; }
.stat-card .label { color: #888; font-size: 13px; margin-top: 4px; }
.stat-card.blue .number { color: #4fc3f7; }
.stat-card.green .number { color: #66bb6a; }
.stat-card.red .number { color: #ef5350; }
.stat-card.orange .number { color: #ffa726; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.form-group input, .form-group select {
    width: 100%; padding: 10px 14px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 14px; transition: border .2s;
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: #4fc3f7;
}

.btn {
    padding: 10px 20px; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-primary { background: #4fc3f7; color: #fff; }
.btn-primary:hover { background: #039be5; }
.btn-success { background: #66bb6a; color: #fff; }
.btn-success:hover { background: #43a047; }
.btn-danger { background: #ef5350; color: #fff; }
.btn-danger:hover { background: #c62828; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.recipient-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px; align-items: center; margin-bottom: 10px;
    background: #f8f9fa; padding: 12px; border-radius: 8px;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th { background: #f0f2f5; padding: 12px; text-align: left; font-size: 13px; color: #666; }
table td { padding: 12px; border-bottom: 1px solid #f0f2f5; font-size: 14px; }
table tr:hover td { background: #f8f9fa; }

.badge {
    padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-success { background: #e8f5e9; color: #388e3c; }
.badge-error { background: #ffebee; color: #c62828; }
.badge-pending { background: #fff3e0; color: #e65100; }
.badge-sent { background: #e3f2fd; color: #1565c0; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; display: none; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.alert-error { background: #ffebee; color: #c62828; border-left: 4px solid #ef5350; }

.preview-box {
    background: #f0f7ff; border: 1px solid #b3d9ff;
    border-radius: 8px; padding: 14px; font-size: 14px;
    line-height: 1.6; color: #333; white-space: pre-line;
    margin-bottom: 16px;
}