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

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #333;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #222;
}

p {
    margin-bottom: 12px;
    line-height: 1.6;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s ease;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #16a34a;
    color: #fff;
}

.btn-secondary:hover {
    background: #15803d;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.form-section {
    background: #f8fafc;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 8px;
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}

th {
    background: #f1f5f9;
}

tr:nth-child(even) {
    background: #fafafa;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

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

.canvas-container {
    border: 1px solid #cbd5e1;
    background: #fff;
    width: 100%;
    max-width: 420px;
    height: 150px;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
}

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

.small-text {
    font-size: 13px;
    color: #666;
}
