/*Info Section*/
.modal-content h2 {
  font-family: 'dubai', sans-serif;
  font-size: 40px;
  font-weight: 900;
}

.info-section h3 {
  font-family: 'dubai', sans-serif;
  font-size: 25px;
  font-weight: 700;
}

.info-section h4 {
  font-family: 'dubai', sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.info-section input {
  font-family: 'dubai', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--gs-navy);
}

.info-section input::placeholder {
  font-size: 15px;
  font-weight: 400;
  color: #999999;
}


/*Files Section*/
.horizontal-upload {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.horizontal-upload .left-panel,
.horizontal-upload .middle-panel,
.horizontal-upload .right-panel {
  flex: 1;
  min-width: 0;          /* allow shrinking */
  max-width: 33%;
}

.middle-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#filesPreviewContainer img {
  max-width: 100%;
  height: auto;
}

.file-preview-card {
  position: relative;
  border: 1px solid #ddd;
  padding: 10px;
  margin: 10px;
  text-align: center;
  width: 130px;
}

.file-preview-card input {
  margin-top: 8px;
  width: 100%;
}

.remove-file-btn {
  position: absolute;
  top: 2px;
  right: 6px;
  color: red;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
}

.preview-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.left-panel, .right-panel {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center */
  align-items: center;
}

.right-panel select,
.right-panel .upload-btn {
  margin-top: 12px;
  width: 100%;
}

.file-upload-section {
  margin-bottom: 20px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.folder-card {
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.folder-card:hover {
  transform: translateY(-3px);
}

.folder-icon {
  width: 64px;
  margin-bottom: 0.5rem;
}

.folder-name {
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.folder-count {
  font-size: 0.9rem;
  color: gray;
}

.upload-center {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem; /* reduce from 2rem or 1rem */
}

.upload-area.horizontal-upload {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  flex-wrap: nowrap;  /* force side-by-side */
}

.select-folder {
  text-align: center;
}

.upload-action {
  text-align: center;
}

@media (max-width: 600px) {
  .upload-area {
    padding: 1rem;
    width: 100%;
  }
}

.files-container input[type="text"] {
  width: 100%;
  overflow-x: auto;
  padding: 4px;
  box-sizing: border-box;
}

/*Folder Table*/
#filesTable {
  width: 90% !important;
  margin: 20px auto;
}

.file-preview img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.file-name-input, .file-note {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.file-tags-input {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.save-tags-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 6px;
  transition: 0.3s;
}

.save-tags-btn:hover {
  background: #217dbb;
}

/* Hide modal when not active */
.hidden {
  display: none;
}

.modal-content h2 {
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  margin: 10px 0 5px;
}

.modal-content input, .modal-content textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.tabs-container {
  display: flex;
  justify-content: space-between; /* Evenly distribute buttons */
  gap: 10px; /* Adds space between buttons */
  margin-bottom: 15px;
}

.tabs-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.tabs-container .tab-button {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--gs-border);
  border-radius: 5px;
  background-color: #ffffff;
  color: var(--gs-charcoal);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.tabs-container .tab-button:hover {
  background-color: var(--gs-surface, #f5f5f5);
  border-color: var(--gs-charcoal);
  color: var(--gs-charcoal);
}

.tabs-container .tab-button.active {
  background-color: var(--gs-charcoal);
  border-color: var(--gs-charcoal);
  color: #ffffff;
}

.modal-content button:hover {
  background-color: var(--gs-navy);
}

.close {
  color: black;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.close:hover {
  color: red;
}

/*Client Contact Hover*/
.hover-info {
  position: relative;
  cursor: pointer;
}

.hover-details {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  padding: 5px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  left: 100%; /* Adjust placement */
  top: 0;
  z-index: 10;
}

.hover-info:hover .hover-details {
  display: block;
}

@media (max-width: 768px) {
  .modal-content {
      width: 90%;
  }
}

.mention-dropdown {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 9999;
  max-height: 200px;
  overflow-y: auto;
}

.mention-item {
  padding: 5px;
  cursor: pointer;
}

.mention-item:hover {
  background-color: #f0f0f0;
}