* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: #222;
    background: #f5f7fb;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #18243a;
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    font-weight: 700;
    font-size: 20px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.menu a {
    color: #dfe7f5;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
}

.menu a.active,
.menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.main-content {
    padding: 32px 0 40px;
}

.hero,
.card,
.login-wrap,
.table-wrap,
.backoffice-placeholder {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.site-footer {
    border-top: 1px solid #dce2ee;
    background: #fff;
    padding: 20px 0;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-error {
    background: #ffe4e4;
    color: #8e1e1e;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    border: 1px solid #d8dfeb;
    padding: 12px;
    text-align: left;
}

.table-wrap th {
    background: #eef3fb;
}

@media (max-width: 760px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.alert-success {
    background: #e7f7ea;
    color: #1c6b2b;
}