/* NAUI File Upload Styles */
.naui-wrapper {
    margin: 25px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}
.naui-toggle label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}
.naui-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #007cba;
}
.naui-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.naui-title {
    margin: 0 0 15px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}
.naui-drop {
    position: relative;
    margin-bottom: 15px;
}
#naui_file {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.naui-zone {
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all .3s;
}
.naui-drop:hover .naui-zone,
.naui-drop.dragover .naui-zone {
    border-color: #007cba;
    background: #f0f7ff;
}
.naui-zone p {
    margin: 10px 0 5px;
    color: #495057;
    font-size: 15px;
}
.naui-zone small {
    color: #6c757d;
    font-size: 13px;
}
.naui-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}
.naui-btn {
    padding: 10px 25px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all .3s;
}
.naui-btn:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
}
.naui-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.naui-progress {
    flex: 1;
}
.naui-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}
.naui-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: #28a745;
    width: 0;
    transition: width .3s;
}
.naui-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}
.naui-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    animation: fadeIn .3s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.naui-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.naui-fname {
    flex: 1;
    color: #495057;
    font-size: 14px;
    word-break: break-all;
}
.naui-remove {
    padding: 6px 12px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background .3s;
}
.naui-remove:hover {
    background: #c82333;
}
.naui-prev-content {
    text-align: center;
}
.naui-prev-content img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}
.naui-pdf {
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    text-align: center;
}
.naui-pdf p {
    margin: 10px 0 0;
    color: #495057;
    font-size: 13px;
}
.naui-msg {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}
.naui-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.naui-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Cart/Basket Styles - !important para forzar */
.naui-cart-file {
    margin: 15px 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
    display: block !important;
}
.naui-cart-remove {
    padding: 5px 10px !important;
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: all .3s !important;
    white-space: nowrap !important;
}
.naui-cart-remove:hover:not(:disabled) {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
}
.naui-cart-remove:disabled {
    opacity: .6 !important;
    cursor: not-allowed !important;
}
/* NAUI Cart Files Container */
#naui-cart-files-container {
    margin-top: 30px !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
}

#naui-cart-files-container h3 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    color: #333 !important;
    font-size: 18px !important;
}

.naui-cart-file-item {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.naui-cart-file-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.naui-cart-file-mini {
    margin-top: 10px !important;
    font-size: 13px !important;
    padding: 10px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border: 1px solid #dee2e6 !important;
}

@media (max-width: 768px) {
    #naui-cart-files-container {
        padding: 15px !important;
    }
    
    .naui-cart-file-item {
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .naui-wrapper {
        padding: 15px;
    }
    .naui-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .naui-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .naui-remove,
    .naui-cart-remove {
        align-self: flex-start;
    }
}