#ffmwp-wrapper {
  --wpfm-bg: #fff;
  --wpfm-bg-secondary: #f8f9fa;
  --wpfm-bg-tertiary: #eee;
  --wpfm-text: #333;
  --wpfm-text-secondary: #666;
  --wpfm-border: #dee2e6;
  --wpfm-border-light: #ccc;

  color-scheme: light;
  min-width: 90%;
  margin: 0 auto;
  font-family: sans-serif;
  color: var(--wpfm-text);
  display: flex;
  flex-wrap: wrap;
  gap: 5px
}

#ffmwp-left-col {
  flex: 0 0 20%;
  padding: 0;
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#ffmwp-right-col {
  flex: 1;
}

.ffmwp-center{
  text-align:center;
}

.ffmwp-navbar-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--wpfm-bg-tertiary);
  padding: 10px;
  margin-bottom: 20px;
}

.ffmwp-total-files {
  font-size: 16px;
  font-weight: bold;
}

.ffmwp-cancel-btn.ffmwp-delete-selected{
  display: none;
}

.ffmwp-button.ffmwp-move-selected{
  display: none;
}

.ffmwp-move-selected-block{
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* While one or more files are selected for a bulk action, only the move/delete
   buttons make sense - hide the upload and create-directory controls. */
#upload_files_btn_area.ffmwp-selection-active .ffmwp-select-input-wrap,
#upload_files_btn_area.ffmwp-selection-active .ffmwp-click-to-reveal,
#upload_files_btn_area.ffmwp-selection-active .ffmwp-click-to-reveal-block {
  display: none;
}

.ffmwp-move-selected-block #wpfm-move-destination{
  min-width: 200px;
}

.ffmwp-search {
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ffmwp-search-input {
  box-sizing: border-box;
  width: 100%;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.2);
  height: 40px;
  padding: 0 15px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
}

.ffmwp-search-input::placeholder {
  color: rgba(255,255,255,0.7);
}

.ffmwp-search-input:focus {
  outline: none;
  border-color: #3498db;
  background: rgba(255,255,255,0.15);
}

.ffmwp-search-btn {
  padding: 5px;
  border-radius: 3px;
  background-color: var(--wpfm-bg-tertiary);
  border: none;
  cursor: pointer;
}

.ffmwp-search-btn:hover {
  filter: brightness(0.9);
}

.ffmwp-files-container {
  background: var(--wpfm-bg);
  border: 1px solid var(--wpfm-border);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 20px 0;
}

.ffmwp-navbar-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--wpfm-bg-secondary);
  border-bottom: 1px solid var(--wpfm-border);
  padding: 15px 20px;
  margin-bottom: 0;
}

.ffmwp-breadcrumb {
  font-size: 16px;
  font-weight: bold;
}

.ffmwp-breadcrumb a {
  color: var(--wpfm-text);
  text-decoration: none;
}

.ffmwp-breadcrumb a:hover {
  text-decoration: underline;
}

.ffmwp-filter {
  display: flex;
  align-items: center;
}

.ffmwp-filter > * {
  flex: 0 0 auto;
  margin-right: 10px;
}

.ffmwp-sort {
  width: auto;
}

.ffmwp-files {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  gap:20px;
  justify-content: stretch;
  margin: 0;
  padding: 20px;
}

.ffmwp-files-list{
  flex-direction:column;
}
.ffmwp-files-list > .ffmwp-file{
  justify-content: space-between !important;
  flex-direction: row !important;
  padding:4px;
}

.ffmwp-files-list .ffmwp-file-actions{
  margin-left: auto;
}

.ffmwp-dir-empty {
  margin:25px 0;
  text-align: center;
  width:100%;
}


.ffmwp-file {
  min-width: 160px; /* Add min-width to limit the file item width */
  background-color: var(--wpfm-bg);
  border: 1px solid var(--wpfm-border-light);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 5px;
}

.ffmwp-file.node-selected{
  border-color:blue;
}

.ffmwp-file-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
}

.ffmwp-delete-file{
  cursor: pointer;
}

.ffmwp-file-thumbnail img {
    object-fit: contain;
}
.ffmwp-file-info {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 150px; /* Replace with the desired maximum width */
    padding:10px;
}
.ffmwp-file-name {
  font-weight: bold;
}

.ffmwp-file-size {
  font-size: 14px;
  color: var(--wpfm-text-secondary);
}

.ffmwp-file-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 6px 2px;
}

.ffmwp-file-icons-content,
.view-icon-dir {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--wpfm-bg-tertiary);
  color: var(--wpfm-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ffmwp-file-icons-content .dashicons,
.view-icon-dir .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
}

.ffmwp-file-icons-content:hover,
.view-icon-dir:hover {
  background-color: #000;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.ffmwp-file-icons-content.ffmwp-trash:hover {
  background-color: #dc3545;
}

.ffmwp-file-icons-content.ffmwp-download:hover {
  background-color: #28a745;
}

.ffmwp-file-icons-content.ffmwp-share-file:hover {
  background-color: #007bff;
}

.ffmwp-header {
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  background-color: var(--wpfm-bg-tertiary);
  padding: 10px;
  margin: 10px 0;
}
.ffmwp-subheader {
  font-weight: bold;
  font-size: 20px;
  background-color: var(--wpfm-bg-tertiary);
  padding: 5px;
  margin: 5px 0;
}

/* ========= drag/drop ======== */
/*css for compatibality issuse*/
.wpfm-active-droppable-box.ffmwp-file {
    background: #5eb75ebf;
}
.wpfm-file-droppable-box.ffmwp-file {
    background: #da3434;
}


/* ========= forms inputs ========= */
.ffmwp-form-group {
  margin-bottom: 10px;
}

.ffmwp-label {
  display: block;
  font-weight: bold;
  /*margin-bottom: 5px;*/
}

.ffmwp-radio-label {
  margin-left: 5px;
}

.ffmwp-text,
.ffmwp-textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid var(--wpfm-border-light);
  background-color: var(--wpfm-bg);
  color: var(--wpfm-text);
  font-size: 14px;
  line-height: 1.5;
}

.ffmwp-meta-text-field
.ffmwp-text {
  height: 30px;
}

.ffmwp-textarea {
  height: 150px;
}

.ffmwp-select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid var(--wpfm-border-light);
  background-color: var(--wpfm-bg);
  color: var(--wpfm-text);
  font-size: 14px;
  line-height: 1.5;
}

.ffmwp-select option {
  font-size: 14px;
}


.ffmwp-button {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  border: none;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin:5px 0;
}

.ffmwp-button:hover {
  background-color: #333;
}

.ffmwp-cancel-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  border: none;
  background-color: #f44336;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ffmwp-cancel-btn:hover {
  background-color: #d32f2f;
}

.ffmwp-upload-button {
  display: inline-block;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  border: none;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ffmwp-upload-button input[type="file"] {
  position: absolute;
  left: -99999px;
}

.ffmwp-upload-button:hover {
  background-color: #333;
}

#upload_files_btn_area.wpfm-dragover {
  outline: 2px dashed var(--wpfm-text);
  outline-offset: 4px;
  background-color: rgba(128, 128, 128, 0.1);
  border-radius: 4px;
}

/** ======== form input inline ========= */
.ffmwp-form-group-inline {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.ffmwp-form-group-inline label {
  flex-basis: 30%;
  margin-right: 10px;
}

label.ffmwp-checkbox-inline{
  flex-basis:auto;
}

.ffmwp-form-group-inline textarea,
.ffmwp-form-group-inline input[type="text"],
.ffmwp-form-group-inline input[type="number"],
.ffmwp-form-group-inline input[type="date"],
.ffmwp-form-group-inline input[type="color"],
.ffmwp-form-group-inline input[type="email"],
.ffmwp-form-group-inline input[type="password"],
.ffmwp-form-group-inline select {
  flex-basis: 70%;
}

/** ====== upload area ======= */
.ffmwp-upload-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  gap: 15px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ffmwp-upload-buttons.hidden {
  display: none;
}

.ffmwp-upload-buttons > * {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ffmwp-select-input-wrap {
  display: inline-block;
  background-color: #000;
  color: #fff;
}

.ffmwp-select-input-wrap:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ffmwp-upload-buttons .ffmwp-button {
  background-color: #28a745;
  color: #fff;
}

.ffmwp-upload-buttons .ffmwp-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ffmwp-upload-buttons .ffmwp-cancel-btn {
  background-color: #dc3545;
  color: #fff;
}

.ffmwp-upload-buttons .ffmwp-cancel-btn:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ffmwp-select-input-wrap .ffmwp-upload-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.ffmwp-upload-button{
  display: inline-block;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  border: none;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ffmwp-cancel-btn{
  background-color: #d32f2f;
}

.ffmwp-upload-button:hover,
.ffmwp-click-to-reveal:hover,
.ffmwp-cancel-btn:hover {
  background-color: #000;
}

.ffmwp-click-to-reveal-block{
  display:none;
}

/*.ffmwp-upload-button,*/
/*.ffmwp-click-to-reveal {*/
/*  background-color: #007bff;*/
/*}*/
/*.ffmwp-uploadarea-form-content{*/
/*  margin:10px 0;*/
/*}*/
/*.ffmwp-upload-buttons {*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  align-items: center;*/
/*  background-color: #eee;*/
/*  padding: 10px 0;*/
/*  gap: 10px;*/
/*}*/

.file-preview-wrapper{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  background: var(--wpfm-bg-secondary);
  border: 1px solid var(--wpfm-border);
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.file-preview-wrapper-img{
  flex: 0 0 120px;
  text-align: center;
}
.file-preview-wrapper-img img {
  border-radius: 6px;
  border: 2px solid var(--wpfm-border);
}

.ffmwp-remove-file {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.ffmwp-remove-file a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  text-decoration: none;
}

.ffmwp-remove-file a:hover {
  background: #c82333;
}
.file-preview-wrapper-inputs{
  flex: 1;
  min-width: 300px;
}

.ffmwp-init-display{
  display:none;
}
.ffmwp-save-file-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ffmwp-save-file-btn button {
  margin-left: 5px;
  margin-right: 5px;
}

/* ======== breadcrumb ======= */
.ffmwp-breadcrumbs {
  margin: 10px 0;
  font-size: 14px;
}

.ffmwp-bc-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ffmwp-bc-list .ffmwp-bc-item:last-child {
  font-weight: bold;
}
/** ====== left col menu ======= */
.ffmwp-left-menu {
  list-style: none;
  padding: 20px;
  margin: 0;
}

.ffmwp-left-menu li {
  margin-bottom: 5px;
  position: relative;
}

.ffmwp-left-menu li a {
  display: block;
  padding: 12px 15px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.ffmwp-left-menu li a:hover {
  background: rgba(255,255,255,0.2);
  border-left-color: #3498db;
  transform: translateX(5px);
}

.ffmwp-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #000;
  padding: 10px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: max-content; /* set the submenu width to match its content */
  min-width: 75px; /* set a minimum width of 75px */
}

.ffmwp-left-menu li:hover > .ffmwp-submenu {
  display: block;
}

/* remove the list style from the submenu */
.ffmwp-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ffmwp-submenu li a:hover {
  background-color: #333;
}
/* ======== iframe - document viewere ======== */
#ffmwp-iframe-wrapper {
  width: 100%;
  height: 90%;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#ffmwp-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/** ========= Meta Info Table ============== */
.ffmwp-table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.ffmwp-table th,
.ffmwp-table td {
  border: 1px solid var(--wpfm-border-light);
  padding: 10px;
  text-align: left;
}

.ffmwp-table th {
  background-color: var(--wpfm-bg-tertiary);
  font-weight: bold;
}

.ffmwp-table td.label {
  font-weight: bold;
}

.ffmwp-revise-notice {
  background-color: #a5dc86;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 16px;
  color: #333;
}



