/**
 * Stili per la gestione dei file P7M
 */

.p7m-upload-tab {
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.p7m-upload-header {
    margin-bottom: 20px;
}

.p7m-upload-header h3 {
    margin: 0 0 10px;
    font-size: 1.4em;
    color: #333;
}

.p7m-upload-description {
    color: #666;
    margin: 0;
}

.p7m-dropzone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.p7m-dropzone.dragover {
    border-color: #2196F3;
    background: #E3F2FD;
}

.p7m-dropzone-inner {
    max-width: 500px;
    margin: 0 auto;
}

.p7m-upload-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    background: url('../images/upload-icon.svg') no-repeat center;
    background-size: contain;
}

.p7m-upload-text {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.p7m-upload-info {
    color: #666;
    font-size: 0.9em;
}

.p7m-files-list {
    margin-top: 20px;
}

.p7m-file-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
}

.p7m-file-item.has-error {
    border-color: #f44336;
    background: #ffebee;
}

.p7m-file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.p7m-file-name {
    font-weight: 500;
    color: #333;
}

.p7m-file-size {
    color: #666;
    font-size: 0.9em;
}

.p7m-file-status {
    margin-bottom: 10px;
}

.p7m-status-text {
    font-size: 0.9em;
    color: #666;
}

.p7m-progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.p7m-progress {
    height: 100%;
    background: #2196F3;
    width: 0;
    transition: width 0.3s ease;
}

.p7m-file-actions {
    position: absolute;
    top: 15px;
    right: 15px;
}

.p7m-remove-file {
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.p7m-remove-file:hover {
    opacity: 1;
}

.p7m-file-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.p7m-format,
.p7m-dimensions,
.p7m-pages {
    font-size: 0.9em;
    color: #333;
}

.p7m-file-error {
    color: #f44336;
    font-size: 0.9em;
    margin-top: 10px;
}

.p7m-upload-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.p7m-copies-control {
    display: flex;
    align-items: center;
}

.p7m-copies-control label {
    margin-right: 10px;
    color: #333;
}

.p7m-copies-input {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.p7m-decrease-copies,
.p7m-increase-copies {
    background: #f5f5f5;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s ease;
}

.p7m-decrease-copies:hover,
.p7m-increase-copies:hover {
    background: #e0e0e0;
}

.p7m-copies {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    padding: 8px;
    -moz-appearance: textfield;
}

.p7m-copies::-webkit-outer-spin-button,
.p7m-copies::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.p7m-total-price {
    font-size: 1.2em;
    color: #333;
}

.p7m-price {
    font-weight: 500;
    color: #2196F3;
} 