#ffmwp-wrapper {
  min-width: 90%;
  margin: 0 auto;
  font-family: sans-serif;
  color: #333;
  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: #eee;
  padding: 10px;
  margin-bottom: 20px;
}

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

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

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

.ffmwp-search-input {
  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: #eee;
  border: none;
  cursor: pointer;
}

.ffmwp-search-btn:hover {
  background-color: #ddd;
}

.ffmwp-files-container {
  background: #fff;
  border: 1px solid #dee2e6;
  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: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 15px 20px;
  margin-bottom: 0;
}

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

.ffmwp-breadcrumb a {
  color: #333;
  text-decoration: none;
}

.ffmwp-breadcrumb a:hover {
  color: #000;
  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: #fff;
  border: 1px solid #ccc;
  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: #666;
}

.ffmwp-file-actions {
  display: flex;
  justify-content: space-between; /* Change the value to space-between */
  align-items: center;
  /*background-color: #f2f2f2;*/
}

.ffmwp-file-actions a {
  color: #fdfafa;
  text-decoration: none;
  font-size: 14px;
  flex-basis: calc(50% - 10px);
  text-align: center;
  padding: 5px;
  background-color: #000;
  margin: 1px;
}

.ffmwp-file-actions a:hover {
  color: #000;
  text-decoration: underline;
}

.ffmwp-header {
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  background-color: #eee;
  padding: 10px;
  margin: 10px 0;
}
.ffmwp-subheader {
  font-weight: bold;
  font-size: 20px;
  background-color: #eee;
  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 {
  display: block;
  width: 100%;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #ccc;
  font-size: 14px;
  line-height: 1.5;
}

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

.ffmwp-textarea {
  height: 150px;
}

.ffmwp-select {
  display: block;
  width: 100%;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #ccc;
  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;
}

/** ======== 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;*/
/*}*/

.ffmwp-search-input {
  margin-left: auto;
}

.file-preview-wrapper{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  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 #dee2e6;
}

.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 #ccc;
  padding: 10px;
  text-align: left;
}

.ffmwp-table th {
  background-color: #eee;
  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;
}



