/* ===== File Report ===== */
.file-report-form {
    background: #2e2e2e;
    border: 1px solid #ddd;
    padding: 15px;
    color: #fff;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.file-report-form textarea {
    width: 100%;
    min-height: 100px;
    background: #000000;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    color: #ffa10a;
    margin-top: 10px;
    resize: vertical;
    padding-top: 35px; /* vertical center ka effect */
    box-sizing: border-box;
}


.file-report-form button {
    margin-top: 10px;
    background: #3e6cf4;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.file-report-form button:hover {
    background: #c0392b;
}

.report-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-form-header h4 {
    margin: 0;
    font-size: 16px;
}

.close-report-form {
    font-size: 20px;
    font-weight: bold;
    color: #f0f0f1;
    cursor: pointer;
    background: #df2325;
    padding: 3px 6px;
    border-radius: 3px;
}

.close-report-form:hover {
    background: red;
}
.notice, .notice-success{
    text-align: center;
    font-size: 16px;
    color: #1656e5;
    margin-top: 15px;
    font-weight: 500;
}

/* ===== File Details Container ===== */

#topbarfilename {
    text-align: center;
    position: relative;
    z-index: 2;
}

#FirstTxt {
    font-size: 16px;
    color: #555;
    letter-spacing: 0.5px;
}

#filenameheader {
    font-weight: 600;
    color: #0663d5;
    margin-top: 5px;
    display: inline-block;
    word-break: break-word;
}

/* ===== File Info Section ===== */
.file-details-info {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px 20px;
    border: 1px solid #e1e4e8;
    margin-bottom: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.headingzz {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1abc9c;
    text-align: center;
}

.file-details-item {
    display: flex;
    justify-content: space-between; /* label left, value right */
    align-items: center;
    margin: 8px 0;
    display: flex;
    align-items: center;
    color: #444;
    border-bottom: 1px dashed #e0e0e0;
}

.file-details-item img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    opacity: 0.8;
}
.file-details-item span.kdn-badge.fileitems {
    margin-left: auto; /* pushes it to the right */
}
.kdn-badge.fileitems {
    background: #eff2f5;
    color: #13937a;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
        position: relative;
    bottom: 4px;
}

/* ===== Buttons ===== */
.action-buttons {
    margin-top: 25px;
    text-align: center;
}

#startDownloadBtn,
.button-download {
  background: url('/wp-content/plugins/kdn-file-manager-new/assets/file-icons/dl-2.png') no-repeat;
    background-size: contain; 
    background-color: #01875f;
    background-position: 10px center;
  border: none;
  color: white;
  padding: 7px;
	width: 280px;
  text-align: center;
      text-shadow: 0 1px 2px #000;
  text-decoration: none;
  display: inline-block;
  border-radius: 5px;
  cursor: pointer;
	text-transform:inherit!important;
	letter-spacing: 0.5px;
}

.button-download:hover {
  background-color: #fe3336;
  color: white!important;
}

#startDownloadBtn:hover {
  background-color: #fe3336;
  color: white!important;
}

.copy-link-main {
  background: url('/wp-content/plugins/kdn-file-manager-new/assets/file-icons/kdn-copy-link2.png') no-repeat;
    background-size: contain; 
    background-color: #135688;
    background-position: 10px center;
  border: none;
  padding:10px;
  color: white;
	width: 294px;
  text-align: center;
      text-shadow: 0 1px 2px #000;
  text-decoration: none;
  display: inline-block;
  border-radius: 5px;
  cursor: pointer;
	text-transform:inherit!important;
	letter-spacing: 0.5px;
}
.copy-link-main:hover {
  background-color: #fe3336;
}

/* Similar Files Container */
.related-files {
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

/* Title */
.related-files h1 {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 16px; 
    margin-bottom: 20px;
    color: #1abc9c;
}

.file-details-info h1 {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 20px; 
    margin-bottom: 20px;
    color: #1abc9c;
}

/* File list grid */
.related-files ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 12px;
}

/* Each file item */
.related-files li {
    background: #f9f9f9;
    padding: 10px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hover effect */
.related-files li:hover {
    background: #1abc9c;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Link style */
.related-files a {
    color: inherit;
    text-decoration: none;
    flex: 1;
    font-weight: 500;
    transition: color 0.3s ease;
}
.related-files li:hover a {
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 500px) {
    .related-files h1 {
        font-size: 14px;
    }
    .kdn-badge.fileitems, .file-details-item{
        font-size: 11px;
    }
    .related-files li {
        font-size: 13px;
        padding: 8px 10px;
    }
    .related-files ul {
        grid-template-columns: 1fr !important;
    }
.file-details-info {
        padding: 3px 7px!important;
    }
    #filenameheader {
        font-size: 14px;
    }
    #secondFileName, #secondText{
        font-size: 12px!important;
        word-break: break-word;
        word-wrap: break-word;
    }
}  
.file-details-header{
   margin-top: 50px; 
   padding: 10px;
}
.divider{
  border: none;
  height: 1px;
  background: #e5e7eb;           /* light gray */
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  margin: 24px 0;
}