body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #222;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-top: 0;
}

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

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

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.stat-card {
    margin-bottom: 0;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 6px;
}

.checkbox-line {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: normal;
}

input[type="text"],
input[type="datetime-local"],
input[type="file"],
textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cfd6dd;
    border-radius: 6px;
    background: #fff;
}

input[type="checkbox"] {
    width: auto;
}

button,
.button-link {
    display: inline-block;
    background: #0b6efd;
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    margin-top: 15px;
    cursor: pointer;
}

button:hover,
.button-link:hover {
    background: #0958ca;
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e8f7ec;
    color: #166534;
}

.alert-error {
    background: #fdecec;
    color: #991b1b;
}

.preview-image {
    max-width: 100%;
    width: 460px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.table-thumb {
    width: 90px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.full-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

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

th {
    background: #f8fafc;
}

@media (max-width: 780px) {
    body {
        padding: 12px;
    }

    th, td {
        padding: 8px;
        font-size: 14px;
    }

    .stat-value {
        font-size: 20px;
    }
}
