body {
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e6e6e6;
    text-align: center;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background-attachment: fixed;
    background-color: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(30, 30, 46, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    margin-top: 40px;
    font-size: 32px;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(100, 149, 237, 0.5);
    position: relative;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4cc9f0, transparent);
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.item {
    background: rgba(46, 46, 72, 0.7);
    padding: 20px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: #4cc9f0;
    background: rgba(56, 56, 82, 0.9);
}

.item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.manual-entry, .customer-input {
    background: rgba(46, 46, 72, 0.7);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.manual-entry input, .customer-input input {
    width: calc(100% - 24px);
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 46, 0.8);
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

.manual-entry input:focus, .customer-input input:focus {
    outline: none;
    border-color: #4cc9f0;
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.3);
}

.manual-entry button {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    color: white;
    padding: 12px 15px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manual-entry button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #4cc9f0 0%, #3a56d4 100%);
}

.preview {
    background: rgba(46, 46, 72, 0.7);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preview li {
    background: rgba(30, 30, 46, 0.8);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview li:hover {
    background: rgba(40, 40, 56, 0.9);
    transform: translateX(5px);
}

.remove-btn {
    background: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.remove-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(247, 37, 133, 0.3);
}

.edit-btn {
    background: linear-gradient(135deg, #f8961e 0%, #f3722c 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(248, 150, 30, 0.3);
}

.pdf-button, .image-button {
    color: white;
    padding: 15px;
    border: none;
    cursor: pointer;
    width: 90%;
    font-size: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdf-button {
    background: linear-gradient(135deg, #f72585 0%, #7209b7 100%);
}

.pdf-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(247, 37, 133, 0.3);
    background: linear-gradient(135deg, #f72585 0%, #5a08a0 100%);
}

.image-button {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
}

.image-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(76, 201, 240, 0.3);
    background: linear-gradient(135deg, #4cc9f0 0%, #3a56d4 100%);
}

.clear-button {
    background: linear-gradient(135deg, #ff9e00 0%, #ff6d00 100%);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.clear-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 157, 0, 0.3);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

footer a {
    color: #4cc9f0;
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 30px;
    border-radius: 16px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal-input {
    width: 80%;
    padding: 15px;
    margin: 20px auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 46, 0.8);
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    display: block;
    transition: all 0.3s;
}

.modal-input:focus {
    outline: none;
    border-color: #4cc9f0;
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.3);
}

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

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    color: white;
}

.modal-btn-secondary {
    background: linear-gradient(135deg, #f72585 0%, #7209b7 100%);
    color: white;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 15px;
        border-radius: 16;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}

.whatsapp-button {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px;
    border: none;
    cursor: pointer;
    width: 90%;
    font-size: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, #1FAF5B 0%, #0E7B5E 100%);
  }

.search-container {
    position: relative;
    margin: 0 auto 20px;
    max-width: 500px;
  }
  
  #search-input {
    width: 85%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid rgba(76, 201, 240, 0.3); 
    background: rgba(30, 30, 46, 0.8);
    color: white;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(76, 201, 240, 0.1); 
  }
  
  #search-input:focus {
    outline: none;
    border-color: #4cc9f0; 
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2); 
  }
  
  #search-results {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(46, 46, 72, 0.95);
    border-radius: 12px;
    margin-top: 5px;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(76, 201, 240, 0.2);
  }
  
  #search-results.active {
    display: block;
  }
  
  .search-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .search-item:hover {
    background: rgba(76, 201, 240, 0.1);
  }
  
  .search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 6px;
  }
  
  .search-item-name {
    font-weight: 500;
  }
  
  .search-item-path {
    font-size: 12px;
    color: #4cc9f0;
    opacity: 0.8;
    margin-top: 2px;
  }

.preview-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 12px;
    background: rgba(30, 30, 46, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.preview-controls label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #f8fafc;
    transition: all 0.3s ease;
}

.preview-controls label:hover {
    color: #4cc9f0;
}

#confirm-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid rgba(76, 201, 240, 0.5);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

#confirm-checkbox:checked {
    background-color: #4cc9f0;
    border-color: #4cc9f0;
}

#confirm-checkbox:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.clear-button {
    background: linear-gradient(135deg, #ff9e00 0%, #ff6d00 100%);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.clear-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 158, 0, 0.2);
}

  
/* Animation for items */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.item {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
}

.item:nth-child(1) { animation-delay: 0.1s; }
.item:nth-child(2) { animation-delay: 0.2s; }
.item:nth-child(3) { animation-delay: 0.3s; }
.item:nth-child(4) { animation-delay: 0.4s; }
.item:nth-child(5) { animation-delay: 0.5s; }
.item:nth-child(6) { animation-delay: 0.6s; }
.item:nth-child(7) { animation-delay: 0.7s; }
.item:nth-child(8) { animation-delay: 0.8s; }