/* ====================== */
/* Reset e Stili Generali */
/* ====================== */
button,
input {
    font-size: 0.9rem;
}

body {
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ====================== */
/* Contenitori            */
/* ====================== */
.header-container {
    background-color: #1d2b4d;
    color: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-container {
    background-color: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-container {
    margin-top: 100px;
}

.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    color: #04275c;
    border-left: 4px solid #04275c;
    padding-left: 50px;
    margin-top: 4rem;
}

/* ====================== */
/* Bottoni                */
/* ====================== */
.button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.button-container a {
    flex: 1;
    margin-right: 10px;
}

.button-container a:last-child {
    margin-right: 0;
}

.uniform-button {
    width: 100%;
}

.btn {
    margin-right: 10px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
    background-color: #1d2b4d;
    border-color: #1d2b4d;
    color: #f5f5f5;
}

.btn-primary:hover {
    background-color: #1a253c;
    border-color: #1a253c;
}

.btn-info {
    background-color: #808080;
    border-color: #808080;
}

.btn-info:hover {
    background-color: #666666;
    border-color: #666666;
}

.btn-danger {
    background-color: #666666;
    border-color: #666666;
}

.btn-danger:hover {
    background-color: #4d4d4d;
    border-color: #4d4d4d;
}

.btn-success {
    background-color: #808080;
    border-color: #808080;
}

.btn-success:hover {
    background-color: #666666;
    border-color: #666666;
}

/* ====================== */
/* Form e Campi           */
/* ====================== */
.form-group {
    margin-bottom: 1rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 0.5rem;
    background-color: #ffffff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #1d2b4d;
    box-shadow: 0 0 5px rgba(29, 43, 77, 0.5);
}

.required-field::after {
    content: " *";
    color: #ff4d4d;
}

/* ====================== */
/* Tabelle                */
/* ====================== */
table {
    width: 100%;
}

th,
td {
    padding: 0.50rem;
    border: 1px solid #ddd;
    text-align: left;
}

thead {
    background-color: #1d2b4d;
    color: #f5f5f5;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-condensed th,
.table-condensed td {
    font-size: 12px;
}

.table-bordered {
    border: 1px solid #ddd;
}

.table-total td {
    font-weight: bold;
    background-color: #f8f9fa;
}

/* ====================== */
/* Editor Quill           */
/* ====================== */
#editor-container {
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
}

.quill-editor .ql-toolbar,
.quill-editor .ql-container {
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #ffffff;
}

.quill-editor .ql-toolbar:focus-within + .ql-container,
.quill-editor .ql-container:focus-within {
    border-color: #1d2b4d;
    box-shadow: 0 0 5px rgba(29, 43, 77, 0.5);
}

/* ====================== */
/* Link                   */
/* ====================== */
a {
    text-decoration: none;
    color: #1d2b4d;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a253c;
}

/* ====================== */
/* Messaggi di Avviso     */
/* ====================== */
.text-warning {
    color: #d2b48c;
}

.text-danger {
    color: #666666;
}

.rosso-evidenziato {
    color: red;
    background-color: yellow;
    padding: 2px 5px;
    border-radius: 3px;
}

/* ====================== */
/* Plugin - DataTables    */
/* ====================== */
.dataTables_wrapper .dataTables_paginate {
    display: block !important;
}

.dataTables_wrapper .dataTables_info {
    display: block !important;
}

table.dataTable thead th {
    cursor: pointer !important;
}

.small-text,
.table-small {
    font-size: 0.8rem;
}

/* ====================== */
/* Media Queries          */
/* ====================== */
@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
    }

    .header-container {
        padding: 1rem;
    }

    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .button-container a {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .button-container a:last-child {
        margin-bottom: 0;
    }
}