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

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

h1 {
    margin-top: 40px;
    font-size: 32px;
    margin-bottom: 25px;
    color: #e53935;
    text-shadow: 0 2px 10px rgba(229, 57, 53, 0.2);
    position: relative;
    padding-bottom: 10px;
}

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

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

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

.item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 15px;
    border: 1px solid rgba(229, 57, 53, 0.2);
    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.05);
    backdrop-filter: blur(5px);
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(229, 57, 53, 0.1);
    border-color: #e53935;
    background: rgba(255, 255, 255, 1);
}

.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.1));
}

.manual-entry, .customer-input {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(229, 57, 53, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    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(229, 57, 53, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 16px;
    transition: all 0.3s;
}

.manual-entry input:focus, .customer-input input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}

.manual-entry button {
    background: linear-gradient(135deg, #e53935 0%, #c62828 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(229, 57, 53, 0.2);
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
}

.preview {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(229, 57, 53, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

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

.preview li {
    background: rgba(255, 255, 255, 0.95);
    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(229, 57, 53, 0.1);
    color: #333333;
}

.preview li:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(5px);
}

.remove-btn {
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 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.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.remove-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(229, 57, 53, 0.2);
}

.edit-btn {
    background: linear-gradient(135deg, #ff7043 0%, #e53935 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.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 112, 67, 0.2);
}

.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, #e53935 0%, #8e24aa 100%);
}

.pdf-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(229, 57, 53, 0.2);
    background: linear-gradient(135deg, #e53935 0%, #7b1fa2 100%);
}

.image-button {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.image-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(229, 57, 53, 0.2);
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
}

.clear-button {
    background: linear-gradient(135deg, #ff7043 0%, #e53935 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, 112, 67, 0.2);
}

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

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

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

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    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, #ffffff 0%, #f5f5f5 100%);
    padding: 30px;
    border-radius: 16px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border: 1px solid rgba(229, 57, 53, 0.2);
}

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

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

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

.modal-input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}

.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, #e53935 0%, #c62828 100%);
    color: white;
}

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

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(229, 57, 53, 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(229, 57, 53, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: #333333;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.1);
}
  
#search-input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}
  
#search-results {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    margin-top: 5px;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 57, 53, 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(229, 57, 53, 0.1);
    color: #333333;
}
  
.search-item:hover {
    background: rgba(229, 57, 53, 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: #e53935;
    opacity: 0.8;
    margin-top: 2px;
}

.preview-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(229, 57, 53, 0.2);
}

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

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

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

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

#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, #ff7043 0%, #e53935 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(229, 57, 53, 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; }