body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    color: #222;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

h1, h2 {
    margin-top: 0;
}

h2 {
    grid-column: 1 / -1;
    margin-top: 30px;
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
    background: #f1f3f5;
    border-radius: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

label {
    font-weight: bold;
    margin-top: 8px;
}

input, textarea, button, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

button {
    background: #0d6efd;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    opacity: 0.95;
}

.full-width {
    grid-column: 1 / -1;
    margin-top: 15px;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.alert.success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert.error {
    background: #f8d7da;
    color: #842029;
}

.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

nav a {
    margin-right: 12px;
    text-decoration: none;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 260px;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 14px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.table th,
.table td {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #f1f3f5;
    font-weight: bold;
}

.actions a {
    margin-right: 10px;
    text-decoration: none;
    color: #0d6efd;
}

.detail-grid h2 {
    margin-top: 25px;
}

.detail-grid p {
    margin: 8px 0;
    line-height: 1.5;
}

.preview-img {
    max-width: 220px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}