.dpi-admin-wrap,
.dpi-data-wrap {
    max-width: 1200px;
}

.dpi-container {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-top: 20px;
}

.dpi-upload-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.dpi-upload-area {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    position: relative;
    pointer-events: auto;
}

.dpi-upload-area input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.dpi-upload-area:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.dpi-upload-area.dragover {
    border-color: #2271b1;
    background: #e7f3ff;
}

.dpi-upload-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #999;
    margin-bottom: 10px;
}

.dpi-upload-placeholder p {
    margin: 10px 0;
    color: #666;
}

.dpi-file-info {
    font-size: 12px;
    color: #999;
}

.dpi-selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f0f6fc;
    border: 1px solid #2271b1;
    border-radius: 4px;
}

.dpi-file-name {
    font-weight: 600;
    color: #2271b1;
}

.dpi-remove-file {
    background: #dc3232;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.dpi-remove-file:hover {
    background: #a00;
}

.dpi-upload-actions {
    margin-top: 20px;
    text-align: center;
}

.dpi-messages,
.dpi-process-messages {
    margin-top: 15px;
}

.dpi-process-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dpi-process-info {
    margin-bottom: 20px;
}

.dpi-process-info p {
    margin: 5px 0;
}

.dpi-progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 0;
}

.dpi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #135e96);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

.dpi-progress-text {
    text-align: center;
    margin: 10px 0;
    font-weight: 600;
    color: #666;
}

.dpi-uploads-list {
    margin-top: 30px;
}

.dpi-export-actions {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dpi-export-actions .button {
    margin-right: 10px;
}

.dpi-export-actions .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

.dpi-total-count {
    font-size: 14px;
    margin: 15px 0;
    color: #666;
}

.dpi-data-table-wrapper {
    overflow-x: auto;
}

.dpi-data-table-wrapper table {
    font-size: 13px;
}

.dpi-data-table-wrapper td,
.dpi-data-table-wrapper th {
    padding: 10px;
    word-wrap: break-word;
}

/* Modal styles */
#dpi-detail-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.dpi-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 4px;
    position: relative;
}

.dpi-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
}

.dpi-modal-close:hover,
.dpi-modal-close:focus {
    color: #000;
}

.dpi-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

#dpi-detail-content {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 782px) {
    .dpi-upload-area {
        padding: 20px;
    }
    
    .dpi-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

