/* Styles personnalisés pour IMMBOX */
.mt-4 {
    margin-top: 20px;
}
.mt-10 {
    margin-top: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}
.custom-blue {
    background-color: #3E609A !important;
}
.custom-blue-text {
    color: #3E609A !important;
}
.custom-blue-lighten {
    background-color: rgba(62, 96, 154, 0.1) !important;
}
.custom-blue-darken {
    color: #32507F !important;
}

/* Styles pour les logos */
.nav_logo img {
    width: 30px;
}

.login-logo {
    max-width: 150px !important;
    margin-bottom: 10px !important;
}

.header-logo {
    max-width: 180px;
    margin-bottom: 15px;
}

/* Bannière rose en haut de la page */
.banner-container {
    margin-bottom: 15px;
}

.pink-banner {
    background-color: #ee6e9f;
    color: white;
    padding: 16px 20px;
    font-size: 18px;
    border-radius: 3px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2);
}

/* Styles pour la page d'accueil */
.settings-card {
    margin-bottom: 20px;
    border-radius: 3px;
}

.settings-title {
    margin-bottom: 20px;
    font-size: 20px !important;
    font-weight: 500;
}

.settings-container {
    margin-bottom: 0;
}

.setting-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
}

.setting-label {
    display: flex;
    align-items: center;
}

.setting-label i {
    margin-right: 12px;
    font-size: 20px;
}

.setting-text {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.7);
}

.setting-control {
    width: 220px;
}

.setting-select {
    height: 36px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    padding: 0 10px;
}

.setting-status {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    text-align: center;
}

.setting-status-active {
    background-color: #e8f5e9;
    color: #4caf50;
}

/* Style pour le champ zipname */
#zipname-input {
    display: none;
}

#zipname-input.active {
    display: block;
}

.zipname-container {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Zone de dépôt des fichiers */
.upload-area {
    padding: 40px 20px;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px 0 rgba(0,0,0,0.2), 0 4px 14px 0 rgba(0,0,0,0.19) !important;
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon i {
    font-size: 70px;
}

.upload-title {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 10px;
}

.file-limit {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 15px 0;
}

.upload-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.upload-divider::before,
.upload-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 120px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.upload-divider::before {
    left: calc(50% - 150px);
}

.upload-divider::after {
    right: calc(50% - 150px);
}

.upload-divider span {
    display: inline-block;
    background-color: #3E609A;
    padding: 0 15px;
    font-size: 18px;
    position: relative;
}

.file-input-container {
    margin-top: 25px;
}

.file-input-container .btn {
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #9e9e9e;
    z-index: 1;
}

.tooltip-icon {
    font-size: 16px;
    vertical-align: middle;
    color: #9e9e9e;
    margin-left: 5px;
    position: relative;
    top: -1px;
}

.tooltip-link:hover .tooltip-icon {
    color: #3E609A;
}

/* Styles pour les messages d'alerte */
.card.pink i.left {
    margin-right: 10px;
}

/* Style pour le label avec l'icône info */
.input-field label a {
    display: inline-block;
}

/* Styles pour la section "Fichiers envoyés" */
.uploaded-files-section {
    margin-top: 30px;
    transition: all 0.3s ease;
}

.uploaded-files-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #3E609A !important;
    font-size: 20px;
}

.uploaded-files-title i.left {
    color: #3E609A;
    margin-right: 12px;
}

.uploaded-files-description {
    color: #6b6b6b;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Styles pour les cartes de fichier dans la liste des résultats */
.file-item-card {
    margin: 8px 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.file-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.file-item-card .card-title {
    font-size: 16px !important;
    margin-bottom: 3px !important;
    font-weight: 500;
    color: #3E609A;
}

.file-item-card .card-content {
    padding: 12px !important;
}

/* Optimisation de l'espace pour les fichiers téléchargés */
#ul-results .collection {
    margin: 0;
    border: none;
}

#ul-results li {
    margin-bottom: 8px;
}

#ul-results .card-content span.card-title {
    line-height: 1.4;
}

/* Affichage compact pour les liens */
#ul-results .link-container {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
    font-size: 14px;
}

#ul-results .link-item {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

#ul-results .link-item:last-child {
    border-bottom: none;
}

#ul-results .link-label {
    width: 150px;
    color: #777;
    font-size: 13px;
}

#ul-results .link-value {
    flex: 1;
    word-break: break-all;
    font-family: monospace;
    font-size: 13px;
    background-color: #f9f9f9;
    padding: 3px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

/* Boutons plus compacts */
#results .card-content .btn {
    margin: 5px 5px 5px 0;
    padding: 0 12px;
    height: 34px;
    line-height: 34px;
    font-size: 13px;
}

#copyall, #mailto {
    margin-right: 8px;
    background-color: #63A340 !important
}

/* Optimisation de l'espace dans les barres de progression */
.custom-progress {
    height: 6px !important;
    border-radius: 3px !important;
    overflow: hidden;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
    background-color: #f0f0f0 !important;
}

.custom-progress .determinate {
    background-color: #3E609A !important;
}

/* Animation pour les éléments de la liste quand ils sont ajoutés */
#ul-results li.animated {
    transition: opacity 0.5s ease;
}

/* Animation pour mettre en évidence les nouveaux fichiers ajoutés */
@keyframes pulseHighlight {
    0% {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 5px 15px rgba(62, 96, 154, 0.4);
    }
    100% {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

.new-file-highlight {
    animation: pulseHighlight 1.2s ease;
    border-left: 4px solid #3E609A;
    background-color: rgba(62, 96, 154, 0.03);
}

/* Amélioration visuelle pour assurer une meilleure visibilité des nouveaux fichiers */
#results {
    scroll-margin-top: 30px;
}

#ul-results li:first-child .card {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* Styles pour le modal de paramètres */
#settings-modal {
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    top: 80px;
    border-radius: 4px;
    overflow-y: auto;
}

#settings-modal .modal-content {
    padding-bottom: 0;
}

#settings-modal h4 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 500;
}

#settings-modal .file-list-section {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

#settings-modal .file-list-section h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#modal-file-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

#modal-file-list .collection-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

#modal-file-list .file-icon {
    margin-right: 10px;
    color: #26a69a;
}

#modal-file-list .file-name {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#modal-file-list .file-size {
    color: #9e9e9e;
    margin-left: 10px;
    font-size: 0.9rem;
}

/* Styles pour les champs inline dans le modal */
.setting-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

.setting-item .inline-field {
    margin-left: 20px;
    transition: all 0.3s ease;
}

.zipname-field, .password-field {
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 0 10px;
    width: 200px;
    background-color: #f9f9f9;
}

/* Styles pour la mise en page côte à côte dans le modal */
.flex-setting-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: center;
    gap: 20px;
}

.flex-setting-row .setting-group {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid #f0f0f0;
}

.flex-setting-row .setting-group .setting-label {
    display: flex;
    align-items: center;
    width: auto;
    flex: 1;
}

.flex-setting-row .setting-group .setting-control {
    width: auto;
    display: flex;
    justify-content: flex-end;
    min-width: 120px;
}

.zipname-field, .password-field {
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 0 10px;
    width: 100%;
    background-color: #f9f9f9;
}

/* Responsive pour le modal */
@media only screen and (max-width: 600px) {
    #settings-modal {
        width: 95%;
        height: 95%;
        max-height: none;
    }
    
    #settings-modal .modal-content {
        padding: 15px;
    }
    
    #settings-modal h4 {
        font-size: 1.3rem;
    }
    
    #modal-file-list {
        max-height: 150px;
    }
    
    .flex-setting-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .flex-setting-row .setting-group {
        width: 100%;
        min-width: 100%;
    }
    
    .zipname-field, .password-field {
        width: 100%;
    }
}

/* Styles pour la page d'upload des fichiers */
.upload-page .card {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}


/* Puis surcharger pour les inputs dans tab-settings (plus spécifique donc prioritaire) */
#tab-settings input[type="text"],
#tab-settings input[type="password"] {
    height: 20px;
    margin: 0px auto;
}

/* Styles pour les onglets */
.tabs {
    position: relative; 
    overflow-x: auto;
    overflow-y: hidden;
    height: 48px;
    background-color: #fff;
}

.tabs .tab {
    flex-grow: 1;
    display: block;
    text-align: center;
    line-height: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    overflow: hidden;
    width: 15%;
    min-width: 80px;
}

.tabs .tab a {
    color: #1565c0;
    pointer-events: none; /* Désactiver les clics sur les onglets */
    display: block;
    width: 100%;
    height: 100%;
    transition: color .28s ease;
}

.tabs .tab a:hover, .tabs .tab a.active {
    color: #1565c0;
    font-weight: bold;
}

.tabs .tab a.disabled {
    color: #bdbdbd;
    cursor: not-allowed;
    pointer-events: none;
}

.tabs .tab a.active.disabled {
    color: #1565c0;
    font-weight: bold;
    opacity: 0.8;
}

.tabs .indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #1565c0;
    will-change: left, right;
    transition: all 0.3s;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Cacher le bouton suivant par défaut (activé via JS) */
#next-to-settings[disabled], .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Styles pour la liste des fichiers sélectionnés */
.selected-files-preview {
    margin-top: 20px;
    display: none;
}

.selected-files-preview .collection-item {
    display: flex;
    align-items: center;
}
.selected-files-preview .file-icon {
    margin-right: 10px;
    color: #1565c0;
}
.selected-files-preview .file-name {
    flex-grow: 1;
}
.selected-files-preview .file-size {
    color: #757575;
    margin-left: 10px;
}

/* Adaptations mobile - affichage conditionnel desktop/mobile */
.desktop-only {
    display: block !important;
}
.mobile-only {
    display: none !important;
}

/* Styles spécifiques pour l'interface mobile */
#mobile-upload {
    margin-bottom: 1.5rem;
}
.mobile-upload-icon i {
    font-size: 3.5rem;
    margin-bottom: 10px;
}
#mobile-upload .btn {
    width: 100%;
    margin-top: 15px;
    padding: 0 20px;
    height: 45px;
    line-height: 45px;
    font-size: 16px;
}

@media only screen and (max-width: 600px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    
    .upload-area {
        padding: 15px 0;
    }
    .upload-icon i {
        font-size: 3.5rem;
    }
    .upload-title {
        font-size: 1.5rem;
    }
    .setting-item {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f5f5f5;
    }
    .setting-label, .setting-control {
        width: 100%;
    }
    .setting-control {
        margin-top: 10px;
        justify-content: flex-start;
    }
    .switch label {
        font-size: 0.9rem;
    }
    .card-title {
        font-size: 1.3rem !important;
    }
    .setting-status {
        padding: 3px 10px;
        background: rgba(38, 166, 154, 0.1);
        border-radius: 3px;
        color: #26a69a;
    }
    #zipping .collection {
        margin-top: 20px;
    }
    #zipping .collection li {
        font-size: 0.9rem;
        padding: 8px 15px;
        word-break: break-word;
    }
    #ul-results .card {
        margin: 0.5rem 0;
    }
    #ul-results .card-content {
        padding: 12px;
    }
    #zipname {
        font-size: 0.9rem;
        height: 2.5rem;
    }
    .info-message-box {
        padding: 8px 10px;
        margin-bottom: 10px;
    }
    .info-icon {
        margin-right: 10px;
    }
    .info-text p {
        font-size: 13px;
    }
}

.card-header {
    padding: 15px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.card-header:hover {
    background-color: rgba(38, 166, 154, 0.05);
}

.card-header .card-title {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* Animation pour le dropdown */
.settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.settings-content.active {
    max-height: 1000px; /* Valeur suffisamment grande pour contenir tout le contenu */
    transition: max-height 0.5s ease-in;
    padding: 20px; /* Rétablir le padding standard */
}

/* Styles pour les messages d'avertissement dans le modal */
.warning-message {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.warning-message i {
    font-size: 24px;
    margin-right: 10px;
}

.warning-message span {
    font-size: 14px;
    line-height: 1.4;
}

/* Styles pour les éléments de la liste de fichiers */
#modal-file-list .file-icon,
#param-file-list .file-icon {
    margin-right: 10px;
    color: #26a69a;
}

#modal-file-list .file-name,
#param-file-list .file-name {
    font-weight: 500;
    margin-right: 10px;
}

#modal-file-list .file-size,
#param-file-list .file-size {
    color: #757575;
    font-size: 0.9em;
}

/* Styles pour améliorer l'apparence des progress bars */
.progress {
    background-color: #e0f2f1;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress .determinate {
    background-color: #26a69a;
    transition: width 0.2s ease;
}

#zip-progress-text {
    font-size: 14px;
    color: #757575;
    margin-bottom: 15px;
}

/* Styles pour la liste des fichiers dans le résultat */
.file-card-modern {
    display: flex;
    flex-direction: column;
}
.file-info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.file-name-container {
    display: flex;
    align-items: center;
}
.file-download-icon {
    margin-right: 10px;
    color: #1565c0;
}
.file-expiry {
    color: #757575;
    font-size: 0.9em;
}
.file-actions {
    display: flex;
    align-items: center;
}
.file-link-field {
    display: flex;
    align-items: center;
    width: 100%;
}
.copy-btn {
    margin-left: 10px;
    color: #1565c0;
}

/* Ajout des styles pour les messages d'information */
.info-message-box {
    display: flex;
    align-items: center;
    background-color: #e3f2fd;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-left: 4px solid #1565c0;
}

.info-icon {
    margin-right: 15px;
    color: #1565c0;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.info-icon i {
    font-size: 24px;
}

.info-text {
    flex: 1;
}

.info-text p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* Styles pour les tooltips d'aide */
.help-tooltip {
    display: inline-block;
}

.help-tooltip .tooltip-icon {
    color: #1565c0;
    font-size: 18px;
    vertical-align: middle;
    margin-left: 5px;
}

/* Suppression des styles qui créent les tooltips personnalisés */
.help-tooltip:hover:after,
.help-tooltip:hover:before {
    display: none;
}

/* Ajout d'un style pour les tooltips Materialize */
.tooltip-icon {
    cursor: help;
}

/* Responsive pour les tooltips */
@media only screen and (max-width: 600px) {
    .material-tooltip {
        width: 80% !important;
        max-width: 300px !important;
    }
}

/* Style pour le texte d'info sous un paramètre */
.setting-info-text {
    font-size: 12px;
    color: #757575;
    font-style: italic;
    margin: -10px 0 15px 40px;
}

/* Amélioration des tooltips Materialize */
.material-tooltip {
    max-width: 250px !important;
    background-color: rgba(21, 101, 192, 0.9) !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    color: white !important;
    letter-spacing: 0 !important;
}

/* Responsive pour les tooltips */
@media only screen and (max-width: 600px) {
    .material-tooltip {
        width: 80% !important;
        max-width: 300px !important;
    }
    
    .setting-info-text {
        margin: -5px 0 15px 0;
    }

}

/* Styles spécifiques pour le champ de nom du zip */
#zipname-input {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#zipname-input.active, #zipname-input[style*="display: block"], #zipname-input[style*="display:block"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#zipname {
    width: 100%;
    padding: 5px;
    height: 2.5rem;
  }

  #zipname-input .setting-label {
    margin-right: 20px !important;
  }

  .cp {
    font-size: 21px !important  ;
    margin-top: -7px !important;
    margin-right: 29px !important;
  }