[type=button], button{
        border: 1px solid #ff6919 !important;
   
    color: #ff6819;
}

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover{
    background-color: #ff651b21 !important;
}
.cmhfm-wrap {
    display: flex;
    gap: 16px;
    min-height: 650px;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.cmhfm-sidebar {
    width: 363px;
    border-right: 1px solid #e5e5e5;
    padding: 16px;
    box-sizing: border-box;
    overflow: auto;
}

.cmhfm-main {
    flex: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    min-width: 0;
}

.cmhfm-files-panel,
.cmhfm-preview-panel {
    padding: 16px;
    box-sizing: border-box;
    min-width: 0;
}

.cmhfm-files-panel {
    border-right: 1px solid #e5e5e5;
}

.cmhfm-panel-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cmhfm-toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.cmhfm-upload-row {
    display: grid;
    gap: 8px;
}

.cmhfm-btn {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #c8c8c8;
    background: #f7f7f7;
    cursor: pointer;
}

.cmhfm-btn-primary {
    background: #1f5eff;
    color: #fff;
    border-color: #1f5eff;
}

.cmhfm-current-folder {
    font-size: 12px;
    color: #666;
}

.cmhfm-tree,
.cmhfm-tree ul {
    list-style: none;
    padding-left: 14px;
    margin: 0;
}

.cmhfm-tree-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.cmhfm-toggle,
.cmhfm-add-subfolder {
    width: 22px !important;
    height: 22px;
    border: 0 !important;
    color: orange;
    padding: 0 !important;
    background: #fafafa;
    cursor: pointer;
    line-height: 1;
}

.cmhfm-toggle.is-empty {
    visibility: hidden;
}

#cmhfm-folder-tree{
    overflow: auto;
    height: 560px;
}
.cmhfm-folder-btn {
    flex: 1;
    text-align: left !important;
    padding: 0 10px !important;
    border: 0 !important;
    color: black !important;
    background: transparent;
    white-space: break-spaces !important;
    cursor: pointer;
}

.cmhfm-folder-btn.is-active {
    background: #eef4ff;
    border-color: #cfe0ff;
}

.cmhfm-children.is-collapsed {
    display: none;
}

.cmhfm-file-row {
       width: 100% !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex-direction: row;
    text-align: left !important;
    margin-bottom: 8px;
    border: 0 !important;
    padding: 0 !important;
    color: #4b3a19 !important;
    background: #fff;
    cursor: pointer;
    white-space: break-spaces !important;
}

.cmhfm-file-row:hover,
.cmhfm-folder-btn:hover,
.cmhfm-btn:hover,
.cmhfm-toggle:hover,
.cmhfm-add-subfolder:hover {
    background: #f4f7fb;
}

.cmhfm-file-name {
    font-weight: 600;
    font-size: 13px;
}

.cmhfm-file-meta {
    font-size: 11px;
    color: #666;
}

.cmhfm-preview-empty,
.cmhfm-empty-files,
.cmhfm-empty-tree,
.cmhfm-notice {
    color: #666;
    font-size: 14px;
    padding: 10px;
    border: 1px dashed #d9d9d9;
    background: #fafafa;
}

.cmhfm-preview-frame {
    width: 100%;
    height: 560px;
    border: 1px solid #ddd;
    background: #fff;
}

@media (max-width: 1100px) {
    .cmhfm-wrap {
        flex-direction: column;
    }

    .cmhfm-sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .cmhfm-main {
        grid-template-columns: 1fr;
    }

    .cmhfm-files-panel {
        border-right: 0;
        border-bottom: 1px solid #e5e5e5;
    }
}


.cmhfm-upload-row {
    
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    padding: 14px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.cmhfm-upload-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* File Input Styling */
#cmhfm-upload-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#cmhfm-upload-input:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
    
}

/* Button Styling */
#cmhfm-upload-btn, #cmhfm-create-root-folder {
    padding: 9px 18px;
    border-radius: 6px;
    border: none;
    background:linear-gradient(135deg, #FF9800, #FF5722);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

#cmhfm-upload-btn:hover, #cmhfm-create-root-folder:hover {
    background: linear-gradient(135deg, #FF5722, #FF9800);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

#cmhfm-upload-btn:active {
    transform: scale(0.97);
}

.cmhfm-preview-wrapper{
    position: relative;
    width: 100%;
    height: 560px;
}

.cmhfm-preview-frame{
    width:100%;
    height:100%;
    border:none;
}

.cmhfm-delete-folder, .cmhfm-delete-file{
    border: 0 !important;
    padding: 0 !important;
    
}

