/* ============================================================
   P E N E T R O N   F O L D E R   P R O   –   F I N A L  C S S
   ============================================================ */

/* --- General Layout --- */
.single-folder {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1a1a;
  background: #fafafa;
}

.single-folder h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0D4A9A;
  margin-bottom: 16px;
}

/* --- Edit Project Info Button --- */
.pfp-edit-btn {
  display: inline-flex;
  align-items: center;
  background: #f4f7fb;
  color: #0D4A9A;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 500;
  transition: all .2s ease;
  cursor: pointer;
  margin-bottom: 25px;
}
.pfp-edit-btn:hover {
  background: #0D4A9A;
  color: #fff;
}

/* --- Toolbar (Move / Delete / Upload) --- */
.pfp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}
.pfp-toolbar select,
.pfp-toolbar input[type="file"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  min-width: 200px;
}
.pfp-toolbar button {
  background: #0D4A9A;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .2s ease;
  font-weight: 600;
}
.pfp-toolbar button:hover {
  background: #093272;
}

/* --- Create Folder Section --- */
.pfp-create-folder {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f9fafb;
  padding: 16px;
  margin: 20px 0;
}
.pfp-create-folder input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 60%;
}
.pfp-create-folder button {
  margin-left: 8px;
  padding: 8px 14px;
  border: none;
  background: #0D4A9A;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.pfp-create-folder button:hover {
  background: #093272;
}

/* --- GRID LAYOUT (Gallery View) --- */
.pfp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 25px;
  animation: fadeIn 0.3s ease;
}
@media (max-width: 1024px) {
  .pfp-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pfp-gallery { grid-template-columns: 1fr; }
}

/* --- Thumbnail Card --- */
.pfp-thumb {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  padding: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pfp-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px #0D4A9A33, 0 5px 14px rgba(0,0,0,0.1);
}

/* --- Image --- */
.pfp-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* --- Select + Button --- */
.pfp-thumb select,
.pfp-thumb button {
  width: 100%;
  border-radius: 6px;
}
.pfp-thumb select {
  padding: 6px 8px;
  border: 1px solid #ccc;
  background: #f9fafb;
  margin-bottom: 8px;
}
.pfp-thumb button {
  background: #0D4A9A;
  color: #fff;
  border: none;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pfp-thumb button:hover {
  background: #093272;
}

/* --- Checkbox --- */
.pfp-thumb input[type="checkbox"] {
  position: absolute;
  top: 8px;
  left: 8px;
  transform: scale(1.2);
}

/* --- Messages --- */
.pfp-msg {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  display: inline-block;
}
.pfp-ok {
  background: #e7f7ec;
  color: #18763d;
  border: 1px solid #b8e0c1;
}
.pfp-err {
  background: #fef2f2;
  color: #a42424;
  border: 1px solid #f5c2c2;
}

/* --- Smooth Fade-in Animation --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FRONTEND FOLDER LISTING (shortcode [user_folders])
   ============================================================ */

.pfp-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 70px;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1a1a;
  text-align: center;
}

.pfp-section h3 {
  font-size: 26px;
  color: #0D4A9A;
  font-weight: 700;
  margin-bottom: 28px;
  border-bottom: 2px solid #0D4A9A;
  display: inline-block;
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}

/* === Folder Grid === */
.pm-folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center;
}

/* === Folder Card === */
.pm-folder {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 25px 15px 30px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pm-folder:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #0D4A9A;
}

/* === Folder Title === */
.pm-folder h4 {
  font-size: 18px;
  color: #0D4A9A;
  font-weight: 600;
  margin: 0 0 10px 0;
  text-transform: capitalize;
}

/* === Open Button === */
.pm-folder a.pm-open {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid #0D4A9A;
  border-radius: 20px;
  color: #0D4A9A;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.pm-folder a.pm-open:hover {
  background: #0D4A9A;
  color: #fff;
  box-shadow: 0 3px 10px rgba(13,74,154,0.3);
}

/* === Fancy underline on hover === */
.pm-folder::after {
  content: "";
  position: absolute; 
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #0D4A9A;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.pm-folder:hover::after {
  width: 60%;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .pm-folders { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pm-folders { grid-template-columns: 1fr; }
  .pm-folder { padding: 20px 15px; }
}


/* === Ενισχυμένο checkbox για εικόνες === */
.pfp-thumb input[type="checkbox"].pfp-file-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  accent-color: #0D4A9A; /* μπλε Penetron */
  border: 2px solid #0D4A9A;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
  cursor: pointer;
  z-index: 10;
}

/* Όταν είναι ενεργό (checked) */
.pfp-thumb input[type="checkbox"].pfp-file-checkbox:checked {
  background-color: #0D4A9A;
  border-color: #0D4A9A;
  box-shadow: 0 0 5px rgba(13,74,154,0.6);
}

/* Hover εφέ για καλύτερη ορατότητα */
.pfp-thumb input[type="checkbox"].pfp-file-checkbox:hover {
  transform: scale(1.15);
  transition: all 0.2s ease;
}

.deletebutton {background-color:red!important;}