/* File Uploader Component Styles */

.file-upload-wrapper {
    margin-bottom: 1.5rem;
}

.file-upload-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.file-input-container {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
    height: 3rem;
    z-index: 0;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-input-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 100%;
    padding: 0.75rem 1rem;
    padding-right: 140px;
    line-height: 1.5;
    color: #54565a;
    background-color: #fff;
    border: 1px solid #ccccce;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-input-label::after {
    content: "Procházet";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #54565a;
    background-color: #f5f5f5;
    border-left: 1px solid #ccccce;
    border-radius: 0 4px 4px 0;
    pointer-events: none;
    min-width: 130px;
}

.file-hint {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* File List Styles */
.file-list-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.file-list-header {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    margin-bottom: 0.5rem;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.file-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    font-size: 0.875rem;
    color: #6c757d;
}

.file-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.file-remove-btn:hover {
    background-color: #dc3545;
    color: #fff;
}

.file-remove-btn:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}
