/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 18-ott-2019, 13.26.52
    Author     : Saverio
*/

#login,#signup{
    width: 100%;
    padding: 0px 15px 15px 15px;
    line-height: 16px;
    color: #333333;
    font-size: 14px;
    background: #ffffff;
}
#login{
    float:left;
}
#signup{
    float:right;
}
h3{
    color:#365D98
}
form label{
    font-weight: bold;
}
form label, form input{
    display: block;
    margin-bottom: 5px;
    width: 100%
}
form input{
    border: solid 1px #666666;
    padding: 10px;
    border: solid 1px #BDC7D8;
    margin-bottom: 20px
}
.button {
    cursor: pointer;
}
.errorMsg{
    color: #cc0000;
    margin-bottom: 10px
}
.jumbotron{
    background-color: #003366;
    color: #ffffff;
    padding:20px;
    border-radius: 20px;
}
.btn-home{
    height: 200px;
    align-content: center;
}

@media screen and (max-device-width:640px), screen and (max-width:640px) {
    .menu-mobile {
        background-color: whitesmoke!important;
    }
}
.toggles label {
    margin-bottom: -8px;
}
.table td, .table th {
    border-bottom: 0px;
}

.form-control {
    border: 1px solid #5c6f82;
}

@media (min-width: 768px) {
    .modal .modal-dialog {
        margin-left: auto;
        margin-right: auto;
    }
}
@media screen and (max-width: 600px) {
    .modal .modal-dialog {
        margin-left: auto;
        margin-right: auto;
        margin: 0px;
    }
}

.modal-content1 {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    -webkit-box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 50%);
    box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 50%);
    outline: 0;
}

.modal-content2 {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    -webkit-box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 50%);
    box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 50%);
    outline: 0;
}

.table{
    display: block !important;
    overflow-x: auto !important;
    width: 100% !important;
}

a.disabled {
    pointer-events: none;
    color: #ccc;
}

/* Card istruttori compatte e responsive */
.istr-card {
    margin-bottom: 0.5rem !important;
}
.istr-card .card-body {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

/* Responsive search input spacing */
#searchIstr {
    margin-bottom: 1rem;
}

/* Badge spacing */
.istr-card .badge {
    margin-left: 0.5rem;
}

/* Flex utility for istruttori card actions */
.istr-card .d-flex.gap-2 {
    gap: 0.5rem;
}

@media (max-width: 600px) {
  .istr-card .card-body {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.3rem !important;
  }
}

/* --- Stili personalizzati per la pagina ACSI --- */
.acsi-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    margin-top: 2rem;
    background: #fff;
}
.acsi-icon {
    font-size: 2.5rem;
    color: #198754;
    margin-right: 0.5rem;
}
.acsi-info {
    font-size: 1rem;
    color: #555;
}
/* --- Fine stili personalizzati ACSI --- */

/* Card index styles for patenti section */
.card-index { 
    min-height: 320px; 
    margin-bottom: 2rem; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); 
}
.card-index .card-title { 
    font-size: 1.2rem; 
    font-weight: 600; 
}
.card-index .btn { 
    min-width: 120px; 
}
.card-index .fa, 
.card-index .fas { 
    font-size: 1.5em; 
    margin-right: 0.5em; 
}
.badge-sede { 
    font-size: 1em; 
    background: #0073e6; 
    color: #fff; 
}

/* Font Awesome font path fix */
@font-face {
    font-family: 'FontAwesome';
    src: url('../fonts/fontawesome-webfont.eot?v=4.7.0');
    src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
         url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
         url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),
         url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),
         url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix for icon spacing in buttons */
.btn .fa,
.btn .fas {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ====== Email Template Management Styles ====== */
/* Tab Navigation Styles */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border-color: #dee2e6;
    color: #003399;
}

.nav-tabs .nav-link.active {
    color: #003399;
    border-bottom-color: #003399;
    font-weight: 600;
}

/* Template Card Styles */
.template-card {
    transition: all 0.3s ease;
    border-left: 4px solid #003399;
}

.template-card:hover {
    box-shadow: 0 4px 12px rgba(0, 52, 153, 0.15);
    transform: translateY(-2px);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.tab-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0;
    font-size: 0.875rem;
}

.template-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Badge Styles */
.badge-info {
    background-color: #17a2b8;
    color: white;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Modal Improvements */
.modal-body {
    max-height: 75vh;
    overflow-y: auto;
    padding: 2.5rem;
    background-color: #fafbfc;
}

.modal-body .form-group {
    margin-bottom: 2rem;
    clear: both;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.modal-body .form-group input[type="text"],
.modal-body .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-body .form-group input[type="text"]:focus,
.modal-body .form-group textarea:focus {
    border-color: #003399;
    box-shadow: 0 0 0 3px rgba(0, 52, 153, 0.1);
    outline: none;
}

.modal-body .form-group textarea {
    resize: vertical;
    min-height: 250px;
    max-height: 450px;
    line-height: 1.5;
}

/* TinyMCE in Modal Fix */
.modal-body .mce-container {
    z-index: 9999 !important;
}

.tinymce-editor {
    min-height: 250px !important;
    max-height: 450px !important;
    width: 100% !important;
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-footer .btn {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-footer .btn-secondary {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

.modal-footer .btn-secondary:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
}

.modal-footer .btn-primary {
    background-color: #003399;
    border-color: #003399;
}

.modal-footer .btn-primary:hover {
    background-color: #002266;
    border-color: #001a4d;
    box-shadow: 0 2px 8px rgba(0, 52, 153, 0.3);
}

/* Modal Header Styling */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 2.5rem;
}

.modal-header .modal-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2c3e50;
}

.modal-header .close {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.modal-header .close:hover {
    opacity: 1;
}

/* Override form-control styling for better consistency */
.modal-body .form-control {
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.modal-body .form-control:focus {
    border-color: #003399;
    box-shadow: 0 0 0 3px rgba(0, 52, 153, 0.1);
}

.modal-body .form-control[readonly],
.modal-body .form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.8;
}

.modal-body .form-control-lg {
    padding: 0.9rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-body .form-control-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
}


/* Custom Select Box Styles */
.custom-select-container {
    position: relative;
    margin-bottom: 1rem;
}

.custom-select-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #17324D;
    font-weight: 600;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #17324D;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2317324D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    border: 2px solid #E6E9F2;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-select:focus {
    border-color: #0073E6;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 115, 230, 0.25);
}

.custom-select:hover {
    border-color: #0073E6;
}

.custom-select option {
    padding: 0.75rem;
}

.custom-select option:first-child {
    color: #5C6F82;
    font-style: italic;
}

/* Card per visite mediche (new/edit/view) */
.card-visita {
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* --- Stili personalizzati estrazione_report.php --- */
.card-custom {
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 2rem;
}
.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.form-label {
    font-weight: 500;
}
/* --- Fine stili estrazione_report.php --- */

/* Fix: ensure floating labels don't overlap inputs in forms */

/* Scoped fix for patenti/date/edit.php to ensure floating labels don't overlap inputs */
.patenti-date-edit .form-group.label-floating label {
    display: block !important;
    position: static !important;
    margin-bottom: 0.5rem !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Small spacing tweak for inputs/selects inside label-floating groups on the specific page */
.patenti-date-edit .form-group.label-floating .form-control,
.patenti-date-edit .form-group.label-floating textarea,
.patenti-date-edit .form-group.label-floating .custom-select {
    margin-top: 0 !important;
}

