* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f3f3;
    color: #222;
    min-height: 100vh;
    padding: 30px 0;
}

.page-center {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dcdcdc;
    padding: 30px;
}

h1,
h2,
h3 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #222;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

p {
    line-height: 1.5;
}

/* BOTTONI */

.btn {
    display: inline-block;
    padding: 10px 16px;
    text-decoration: none;
    border: 1px solid #999;
    color: #222;
    background: #f8f8f8;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover {
    background: #ececec;
}

.btn-primary {
    background: #2d6cdf;
    border-color: #2d6cdf;
    color: white;
}

.btn-primary:hover {
    background: #2459b8;
}

.btn-secondary {
    background: #efefef;
}

.btn-danger {
    background: #d9534f;
    border-color: #d9534f;
    color: white;
}

.btn-danger:hover {
    background: #c73f3b;
}

/* TABELLE */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th {
    background: #efefef;
    font-weight: bold;
}

table th,
table td {
    border: 1px solid #d9d9d9;
    padding: 12px;
    text-align: left;
}

table tr:hover {
    background: #fafafa;
}

.table-actions a {
    margin-right: 10px;
    color: #2d6cdf;
    text-decoration: none;
    font-weight: bold;
}

.table-actions a:hover {
    text-decoration: underline;
}

/* FORM */

.form-card {
    max-width: 600px;
    margin: 20px 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdbdbd;
    background: white;
    font-size: 14px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2d6cdf;
}

button[type="submit"],
.btn-submit {
    padding: 10px 16px;
    background: #2d6cdf;
    border: none;
    color: white;
    cursor: pointer;
    width: fit-content;
}

button[type="submit"]:hover,
.btn-submit:hover {
    background: #2459b8;
}

/* ALERT */

.alert-danger {
    margin: 15px 0;
    padding: 12px;
    background: #ffe5e5;
    border: 1px solid #e0a4a4;
    color: #a30000;
}

/* DASHBOARD */

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.dashboard-item {
    display: block;
    padding: 15px;
    background: white;
    border: 1px solid #d5d5d5;
    text-decoration: none;
    color: #222;
    font-weight: 600;
}

.dashboard-item:hover {
    background: #f5f5f5;
}

/* STATISTICHE */

.stats-list {
    list-style: none;
    margin-top: 15px;
}

.stats-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

/* RESPONSIVE */

@media (max-width: 700px) {
    body {
        padding: 15px 0;
    }

    .page-center {
        width: 95%;
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    table th,
    table td {
        padding: 8px;
        font-size: 13px;
    }
}