/* Font e colori generali */
body {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* === Bottoni === */
.btn {
    border-radius: 0;
    font-weight: 600;
    text-transform: none;
    transition: all 0.2s ease-in-out;
    padding: 10px 16px;
    border-width: 2px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
    position: relative;
    display: inline-block;
}

/* Effetto tridimensionale al passaggio del mouse */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}

/* Effetto "premuto" */
.btn:active {
    transform: translateY(1px);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Bottoni principali */
.btn-primary {
    background-color: #1d3557;
    border-color: #1d3557;
    color: white;
}

.btn-primary:hover {
    background-color: #457b9d;
    border-color: #457b9d;
}

.btn-secondary {
    background-color: #495057;
    border-color: #495057;
    color: white;
}

.btn-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Bottoni per stati di azione */
.btn-success {
    background-color: #2d6a4f;
    border-color: #2d6a4f;
    color: white;
}

.btn-danger {
    background-color: #d00000;
    border-color: #d00000;
    color: white;
}

.btn-warning {
    background-color: #e09f3e;
    border-color: #e09f3e;
    color: white;
}

.btn-info {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* === Form === */
.form-control {
    border-radius: 0;
    border: 2px solid #ced4da;
    box-shadow: none;
    padding: 10px;
}

.form-control:focus {
    border-color: #1d3557;
    box-shadow: none;
}

/* === Tabelle === */
.table {
    border-collapse: collapse;
    width: 100%;
}

.table th {
    background-color: #1d3557;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 3px solid #457b9d;
    padding: 12px;
    text-align: left;
}

.table td {
    border-bottom: 1px solid #dee2e6;
    padding: 12px;
}

/* === Alert === */
.alert {
    border-radius: 0;
    font-weight: 500;
    padding: 12px;
}

.alert-primary {
    background-color: #1d3557;
    color: white;
    border-left: 4px solid #457b9d;
}

.alert-success {
    background-color: #2d6a4f;
    color: white;
    border-left: 4px solid #52b788;
}

.alert-danger {
    background-color: #d00000;
    color: white;
    border-left: 4px solid #ff6b6b;
}

.alert-warning {
    background-color: #e09f3e;
    color: white;
    border-left: 4px solid #ffba08;
}

.alert-info {
    background-color: #0d6efd;
    color: white;
    border-left: 4px solid #90e0ef;
}

/* === Card === */
.card {
    border-radius: 0;
    border: 2px solid #dee2e6;
    box-shadow: none;
    padding: 20px;
    background: white;
}

/* Tipologie di card */
.card-primary {
    border-left: 4px solid #1d3557;
}

.card-success {
    border-left: 4px solid #2d6a4f;
}

.card-danger {
    border-left: 4px solid #d00000;
}

.card-warning {
    border-left: 4px solid #e09f3e;
}

.card-info {
    border-left: 4px solid #0d6efd;
}

/* === Navbar === */
.navbar {
    background-color: #1d3557 !important;
    border-bottom: 3px solid #457b9d;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    text-transform: uppercase;
    padding: 12px 16px;
}

.navbar-nav .nav-link:hover {
    color: #a8dadc !important;
}

/* === Footer === */
footer {
    background-color: #1d3557;
    color: white;
    padding: 15px;
    text-align: center;
    border-top: 3px solid #457b9d;
}

#custom-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 20px;
    line-height: 20px;
    transition: height 0.3s ease, line-height 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

#custom-footer.expanded {
    height: 200px;
    line-height: 200px;
    overflow: auto;
}
