/* Project Manager Popup */
.printsys-modal {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}

.printsys-modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    min-height: 400px;
}

.printsys-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.printsys-close:hover,
.printsys-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Upload Area */
.printsys-dropzone {
    border: 2px dashed #0073aa;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
}

.printsys-dropzone:hover {
    background: #f1f1f1;
}

.printsys-dropzone.dragover {
    background: #e5f5fa;
    border-color: #005a87;
}

/* File List */
.printsys-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.printsys-file-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

.printsys-file-preview {
    width: 60px;
    height: 60px;
    background: #eee;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ccc;
}

.printsys-file-details {
    flex-grow: 1;
}

.printsys-file-name {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

.printsys-file-status {
    font-size: 12px;
    color: #666;
}

.printsys-progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    height: 6px;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.printsys-progress-fill {
    height: 100%;
    background-color: #0073aa;
    width: 0%;
    transition: width 0.2s;
}

.printsys-file-actions {
    margin-left: 15px;
}

.printsys-btn-delete {
    color: #a00;
    cursor: pointer;
    text-decoration: none;
}

.printsys-btn-delete:hover {
    color: #d00;
}

/* Cart Integration */
.printsys-cart-action {
    display: block;
    margin-top: 10px;
}

/* Ensure button is hidden in mini-cart widgets if potential leaks occur */
.widget_shopping_cart .printsys-open-project,
.mini_cart_item .printsys-open-project,
.woocommerce-mini-cart .printsys-open-project {
    display: none !important;
}
