.upload-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}

.upload-area {
    padding: 20px;
    border: 2px dashed #3498db;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 200px;
}

.upload-area.active {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.upload-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.upload-area p {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.upload-area i {
    color: #ffffff;
    font-size: 48px;
    margin-bottom: 10px;
}

#file-input {
    display: none;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
    padding: 10px;
    width: 100%;
}

.preview-item {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-item .file-info {
    padding: 8px;
}

.preview-item .file-name {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    color: #2c3e50;
}

.preview-item .file-size {
    font-size: 12px;
    color: #7f8c8d;
}

.preview-item .file-type {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.2s;
    z-index: 10;
}

.preview-item .remove-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

img.preview-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.file-preview {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.file-preview.pdf {
    background-color: #e74c3c;
}

.file-preview.doc {
    background-color: #3498db;
}

.file-preview.xls {
    background-color: #2ecc71;
}

.file-preview.txt {
    background-color: #95a5a6;
}

.file-preview.other {
    background-color: #9b59b6;
}

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

.progress {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s;
}

.hidden {
    display: none;
}