.cfm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cfm-upload-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
}

.cfm-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cfm-row label {
    min-width: 150px;
    font-weight: 500;
}

.cfm-row input[type="text"],
.cfm-row input[type="file"] {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
}

.custom-file {
    position: relative;
    flex: 1;
}

.custom-file-input {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.custom-file-label {
    display: block;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.custom-file-label::after {
    content: 'Browse';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 1px solid #ddd;
}

.cfm-progress {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cfm-file-info {
    margin-bottom: 8px;
    font-size: 14px;
}

.cfm-file-info span {
    margin-right: 15px;
    color: #666;
}

.cfm-progress-container {
    position: relative;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

/* Upload progress bar */
#cfm-progress-bar .cfm-progress-bar {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
}

/* Save progress bar */
#cfm-save-progress .cfm-progress-bar {
    height: 100%;
    background-color: #28a745;
    transition: width 0.3s ease;
}

.cfm-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.cfm-upload-status {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.cfm-upload-status span {
    margin-right: 15px;
}

.cfm-chunk-info {
    color: #28a745;
}

.cfm-upload-speed {
    color: #007bff;
}

.cfm-save-status {
    color: #28a745;
    font-weight: 500;
}

.cfm-file-browser {
    border: 1px solid #e5e5e5;
}

.cfm-breadcrumb {
    padding: 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.cfm-breadcrumb-item {
    color: #0073aa;
    cursor: pointer;
}

.cfm-breadcrumb-item:hover {
    text-decoration: underline;
}

.cfm-breadcrumb-separator {
    margin: 0 5px;
    color: #666;
}

.cfm-file-list {
    max-height: 500px;
    overflow-y: auto;
}

.cfm-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.cfm-item:hover {
    background-color: #f8f9fa;
}

.cfm-item.folder {
    cursor: pointer;
}

.cfm-item .dashicons {
    margin-right: 10px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.cfm-item-name {
    flex: 1;
    margin-right: 15px;
}

.cfm-item-size {
    width: 80px;
    text-align: right;
    margin-right: 15px;
    color: #666;
}

.cfm-item-owner {
    width: 120px;
    margin-right: 15px;
    color: #666;
}

.cfm-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cfm-download-btn,
.cfm-delete-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.cfm-download-btn:hover {
    color: #0073aa;
}

.cfm-delete-btn:hover {
    color: #dc3545;
}

.cfm-item-actions .dashicons {
    margin: 0;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.button {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.button:hover {
    background: #005177;
}

button.button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
