/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f6f4f1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.app-container {
    min-width: 60vw;
    min-height: 60vh;
    max-width: 90vw;
    max-height: 90vh; /* Ensure a maximum height */
    padding: 15px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.header .logo {
    height: 40px;
}

.header .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .welcome-message {
    font-weight: bold;
}

/* Table Styles */

.table-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    overflow: auto;
    max-height: 400px;
}


.table-header {
    display: flex;
    font-weight: bold;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-header .table-header-cell {
    flex: 1;
    padding: 10px;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid #ddd;
}

.table-header .table-header-cell:last-child {
    border-right: none;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.table-cell {
    flex: 1;
    padding: 10px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-cell:last-child {
    border-right: none;
}

.table-no-data {
    text-align: center;
    margin-top: 20px;
    color: #555;
}
/* EAN Input Styles */
.ean-input-container {
    margin-bottom: 20px;
    max-height: 150px; /* Limit height */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 5px; /* Add spacing for scrollbar */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #f9f9f9;
}

.autocomplete-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 100px; /* Limit height */
    overflow-y: auto; /* Add vertical scrolling */
}

/* Default grey chip */
.chip {
    padding: 5px 10px;
    border-radius: 4px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    color: black;
    transition: background-color 0.3s ease;
    background-color: lightgray;  /* ⚪ Default before validation */
}

/* Green chip for valid EAN */
.chip.valid {
    background-color: lightgreen;  /* 🟢 Valid EAN after validation */
}

/* Red chip for invalid EAN */
.chip.invalid {
    background-color: lightcoral;  /* 🔴 Invalid EAN after validation */
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: rgb(12, 52, 227);
    font-size: 18px;
}

.loader span {
    margin-left: 10px;
}
.linear-progress {
    width: 100%;
    height: 10px;
    background-color: #ddd; /* Gray background */
    position: relative;
    overflow: hidden;
}

.indeterminate {
    width: 200%;
    background-color: #275efe; /* Blue color */
    animation: move 1.5s infinite linear;
}

.linear-progress {
    width: 100%;
    height: 10px;
    background-color: #ddd;  /* Light gray background */
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.indeterminate {
    width: 200%;
    background-color: #275efe;  /* Neon blue for the progress bar */
    animation: move 1.5s infinite linear, neonGlow 1.5s ease-in-out infinite alternate; /* Neon glow + movement */
    border-radius: 5px;
}


/* Button Styles */
button {
    background-color: #275efe;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #1e4fc7;
}

/* Scrollbar Styles for Smooth Scrolling */
.table-container::-webkit-scrollbar,
.ean-input-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-thumb,
.ean-input-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-track,
.ean-input-container::-webkit-scrollbar-track {
    background-color: #f4f4f4;
    border-radius: 4px;
}

@keyframes move {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes neonGlow {
    0% {
        box-shadow: 0 0 10px #275efe, 0 0 20px #275efe, 0 0 30px #275efe;
    }
    50% {
        box-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff; /* Neon pink glow */
    }
    100% {
        box-shadow: 0 0 10px #275efe, 0 0 20px #275efe, 0 0 30px #275efe;
    }
}

.google-login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0000da;
    min-height: 70vh;
  }
  
  .logo {
    width: 300px; /* Ajustez la largeur selon vos besoins */
    height: auto; /* La hauteur s'ajustera automatiquement en fonction de la largeur */
    margin-bottom: 30px; /* Espacement en dessous du logo */
    filter: brightness(0) invert(1);
  }
