* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  
    background-color: #ffffff; 
    overflow-x: hidden;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-logo {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}



/* invoice section styles */
.invoices-section {
    flex-direction: column;
    align-items: start;
  }
  
  /* Tabs */
  .tabs {
    width: 100%;
    display: flex;
    justify-content: start;
    gap: 10px;
    margin: 60px 0;
    border-bottom: 1px solid #E6E6E6;
    justify-content: center;
  }
  
  .tab {
    padding: 12px 15px;
    border: 1px solid #E6E6E6;
    background: white;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    width: 32%;
    text-decoration: none;
    color: inherit;
    text-align: center;
    display: inline-block;
    font-size: 15px;
  }
  
  .tab:hover {
    background: #f5f5f5;
  }
  
  .tab.active {
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    color: white;
  }
  
  /* Section Title */
  .section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #010101;
  }
  
  /* Info Cards */
.info-section {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
  }
  
  .info-card {
    display: flex;
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    color: white;
    border-radius: 16px;
    padding: 30px;
    width: 250px;
    align-items: center;
    gap: 40px;
    border: 1px solid #237CFF;
    width: fit-content;
  }

  .info-cont{
    display: flex;
    gap: 20px;
    margin-right: 30px;
  }
  
  /* Info box */
  .info-box {
    text-align: left;
  }
  
  .label{
    text-wrap: nowrap;
  }
  .value {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
    text-wrap: nowrap;
  }
  
  /* Divider */
  .divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
  }
  
  /* Add Invoice Section */
  .add-invoice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #E9F2FF;
    padding: 25px;
    border-radius: 16px;
    width: 100%;
    border: 1px solid #A5C9FF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .add-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
  }
  
  .invoice-icon {
    width: 60px;
    height: 60px;
  }
  .plus-icon{
    font-size: 22px;
  }
  .add-btn {
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    box-shadow: 0px 2px 4px 0px #3284FF17,
    0px 7px 7px 0px #3284FF14,
    0px 16px 10px 0px #3284FF0D,
    0px 28px 11px 0px #3284FF03,
    0px 44px 12px 0px #3284FF00;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 250px;
    justify-content: center;
  }
  
  .add-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  /* Action Buttons Section */
  .action-buttons-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 70px;
    margin-bottom: 0px;
    width: 100%;
  }
  
  .action-button {
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
  }
  
  .action-button:active {
    transform: translateY(0);
  }
  
  .factures-btn {
    background: #237CFF;
  }
  
  .controle-btn {
    background: #237CFF;
  }
  
  
  /* Invoice Cards */
  .invoice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 60px 0;
    gap: 20px; /* Espacement ajouté entre les cartes */
    width: 100%;
  }
  
  .invoice-card {
    background: #F1F2F4;
    border-radius: 10px;
    border: 1px solid #E6E6E6;
    padding: 15px;
    text-align: center;
    position: relative;
  }
  
  .invoice-image {
    position: relative;
    width: 100%;
    height: 350px; /* Hauteur fixe ajoutée */
    border-radius: 8px;
    overflow: hidden;
  }
  
  .invoice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  .invoice-name{
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
  }
  
  .action-btns{
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .action-btn{
    border-radius: 50%;
    width: 32px;
    height: 32px;
    border: none;
    box-shadow: 0px 1px 1px 0px #0000000F,
    0px 3px 3px 0px #0000000D,
    0px 6px 4px 0px #00000008,
    0px 11px 4px 0px #00000003,
    0px 17px 5px 0px #00000000;
  }
  .action-btn img{
    width: 20px;
    height: 20px;
  }
  .eye-btn{
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
  }
  .download-btn{
    background: #979797;
  }
  .bin-btn{
    background: #FF4242;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
    margin-bottom: 100px;
  }
  
  .page-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    border: 1.25px solid #E6E6E6;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .dot{
    border: none;
  }
  
  .page-btn.active {
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    color: white;
  }  


@media screen and (max-width: 350px) {
  .invoice-grid{
    grid-template-columns: 1fr !important;
    width: 100%;
}
}
/* Modification des media queries */
@media screen and (max-width: 1100px) {
    .logo{
        z-index: 1100;
    }

    .hamburger-menu {
        display: flex;
        z-index: 1100;
        position: relative;
    }

    .navigation {
        display: none; /* Hidden by default */
        position: fixed; /* Cover the whole screen */
        top: 0;
        left: 0;
            width: 100%;
        height: 100vh;
        background-color: rgb(239, 249, 255);
        flex-direction: column;
        justify-content: center; /* Vertically center the content */
        align-items: center; /* Horizontally center the content */
        gap: 30px;
        z-index: 1000;
        transition: all 0.3s ease-in-out;
        padding: 50px;
    }

    .navigation.active {
        display: flex;
    }

    .nav-link {
        color: #000000;
        font-size: 18px;
        padding: 15px 0;
        width: fit-content;
        text-align: center;
        border-bottom: none;
    }

    .nav-link:hover {
        color: #237CFF;
    }

    /* Show authentication buttons in full-screen overlay */
    .nav-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .auth-buttons-desktop {
        display: none;
    }

    .close-icon{
        display: none;
        height: 20px;
    }
    .footer-top{
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }
    .footer-links{
        flex-direction: column;
        gap: 20px;
    }
    .footer-column{
        margin: 0;
    }
    .footer-cont{
        flex-direction: column;
        gap: 5px;
    }
    .copyright{
        order: 2;
    }
    .social-icons{
        order: 1;
    }
    .tabs{
        margin: 30px 0;
    }
    .tab{
        font-size: 12px;
    }
    .section-title{
        font-size: 30px;
        margin-bottom: 20px;
    }
    .info-section{
        flex-direction: column;
    }
    .info-card{
        width: 100%;
    }
    .label{
        font-size: 12px;
    }
    .value{
        font-size: 20px;
    }
    .divider{
        height: 50px;
    }
    .add-invoice{
        flex-direction: column;
        gap: 10px;
    }
    .add-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .add-btn{
        width: 100%;
        justify-content: center;
    }
    .action-buttons-section {
        flex-direction: column;
        gap: 15px;
        margin: 30px 0;
    }
    .action-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        min-width: auto;
    }
    .invoice-grid{
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    .pagination{
        margin-bottom: 50px;
        margin-top: 0;
    }
}

.no-invoices {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    background: #F1F2F4;
    border-radius: 10px;
    margin: 20px 0;
}

.delete-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.delete-form button {
    background: #f40000;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Upload Form Styles */
.upload-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.upload-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.upload-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #010101;
    text-align: center;
}

.file-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2C2C2C;
}

.file-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    margin-bottom: 15px;
}

.file-input-container {
    position: relative;
}

.remove-file {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #FF4242;
    display: none;
}

.submit-btn {
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

/* Confirmation Overlay */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
            align-items: center;
    z-index: 2000;
        }

        .confirm-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
            text-align: center;
        }

        .confirm-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
    margin-top: 20px;
}

.confirm-yes, .confirm-no {
    padding: 10px 20px;
            border: none;
    border-radius: 8px;
            cursor: pointer;
    font-weight: 600;
}

.confirm-yes {
    background: #FF4242;
    color: white;
}

.confirm-no {
    background: #E6E6E6;
    color: #333;
}

/* Password Modal Styles */
.password-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    display: none;
}

.password-modal-content {
    position: relative;
    width: 100%;
}

.password-modal h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #010101;
    text-align: center;
}

.password-modal input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    margin-bottom: 15px;
}

.password-modal button[type="submit"] {
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
}

.password-modal button[type="button"] {
    background: #E6E6E6;
    color: #333;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.error-message {
    color: #FF4242;
    text-align: center;
    margin-bottom: 15px;
}

/* Styles pour la liste des factures */
.file-list {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.file-list h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

#selectedFiles {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.file-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.file-name {
    font-weight: 500;
    color: #333;
    flex: 1;
    margin-right: 15px;
}

.file-filename {
    color: #666;
    font-size: 14px;
    flex: 1;
    margin-right: 15px;
}

.file-list-item .remove-file {
    cursor: pointer;
    color: #dc3545;
    font-size: 18px;
    padding: 5px;
    transition: color 0.2s;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
}

.file-list-item .remove-file:hover {
    color: #c82333;
}

.add-more-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 15px;
    transition: background 0.2s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.add-more-btn:hover {
    background: #218838;
}
