/*####################### ADMIN NAVBAR ############################*/
.admin_navbar {
  width: 230px;
  background: #1e3a8a; /* dark blue */
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  border-right: 1px solid #3b5998; /* subtle blue border */
  overflow-x: hidden;
  transition: left 0.3s ease;z-index: 1000;
}

/* Navbar title */
.admin_navbar .admin_h5 {
  color: #f0f0f0;
  text-align: center;
  margin: 18px 0;
  font-weight: 600;
  letter-spacing: 1px;
}

.admin_navbar hr {
  border: none;
  border-top: 1px solid #3b5998;
  margin: 0 12px 8px;
}

/* Menu list */
.admin_navbar #admin_ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin_navbar #admin_li {
  position: relative;
}

/* Menu links */
.admin_navbar #admin_a {
  display: block;
  padding: 14px 22px;
  text-decoration: none;
  font-size: 14px;
  color: #f0f0f0;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Hover */
.admin_navbar #admin_a:hover {
  background: #2546a8; /* slightly lighter blue hover */
  color: #ffffff;
}

/* Active / Parent hover */
.admin_navbar .dropdown:hover > #admin_a {
  background: #2c57c3; /* active menu item */
  font-weight: 500;
}

/* Dropdown */
.admin_navbar .dropdown > #admin_ul {
  display: none;
  background: #1e3a8a;
}

.admin_navbar .dropdown:hover > #admin_ul,
.admin_navbar .dropdown:focus-within > #admin_ul {
  display: block;
}

/* Dropdown links */
.admin_navbar .dropdown #admin_ul #admin_a {
  padding-left: 40px;
  font-size: 13px;
  color: #d1d9f0; /* lighter text for submenu */
}

.admin_navbar .dropdown #admin_ul #admin_a:hover {
  background: #2546a8;
  color: #ffffff;
}

/* Submenu */
.dropdown-menu {
  position: absolute;
  left: 230px;           /* makes it open outside sidebar */
  top: 0;
  min-width: 200px;
  background: #1e3a8a;
  z-index: 2000;
}


/* Hamburger */
.nav-toggle {
  display: none;
  position: absolute;
  top: 16px;
  left: 230px;
  font-size: 24px;
  background: #1e3a8a;
  border: 1px solid #3b5998;
  color: #f0f0f0;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  z-index: 999;
}

.nav-toggle:hover {
  background: #2546a8;
}

/* Responsive */
@media (max-width: 767px) {
  .admin_navbar {
    left: -220px;
  }

  .admin_navbar.active {
    left: 0;
  }

  .nav-toggle {
    display: block;
    left: 20px;
  }

  .main-content {
    margin-left: 0;
    padding-top: 60px;
  }
}

@media (min-width: 900px) {
  .main-content {
    margin-left: 220px;
    padding: 20px;
  }
}

/*###################################### FORM ##########################################*/

.form-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-title {
    font-size: 22px;
    color: #333333;
}

.member-form {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.form-group2 {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #555555;
    font-weight:600;
}

.form-input {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #cccccc;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #1e3a8a;
}

.admin-btn {
    padding: 14px;
    background-color: #1e3a8a;
    color: #ffffff;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.admin-btn:hover {
    background-color:#007bff;
}

.full-width {
    width: 100%;
}

/* Large screens → two columns */
@media (min-width: 768px) {
    .form-group2 {
        width: 48%;
    }

    .full-width {
        width: 100%;
    }
}

/*################################ RIGHT SECTION & TABLE #########################################*/
#right_section{
  margin: 0;
  min-height: 100vh;
  background:#1e3a8a;
}


  .right-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 15px;
  background-color: #f0f0f0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  margin-top:30px;border-radius: 5px;
}

.right-thead {
  background-color: #4f46e5;
  color: #f0f0f0;
}

.right-th ,
.right-td  {
  padding: 12px 15px;
  text-align: left;
}

.right-tbody .right-tr {
  border-bottom: 1px solid #e5e7eb;
}

.right-tbody .right-tr:nth-child(even) {
  background-color: #f9fafb;
}

.right-tbody .right-tr:hover {
  background-color: #eef2ff;
}

..right-th {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.table-delete-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.table-delete-btn:hover {
  color: red;
}

/*########################### MEMBERS LIST ####################################*/

.trust-container {
      max-width: 1000px;
      margin: auto;
      background-color: #ffffff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  /* Heading */
  .trust-title {
      text-align: center;
      color: #1e3a8a;
      margin-bottom: 20px;
  }

  /* Table styles */
  .member-table {
      width: 100%;
      border-collapse: collapse;
  }

  .member-table-head {
    background-color: #1e3a8a;
      /*background-color: #2c3e50;*/
      color: #ffffff;
  }

  .member-table-header,
  .member-table-cell {
      padding: 12px;
      text-align: left;
      border-bottom: 1px solid #dddddd;
  }

  .member-table-row:hover {
      background-color: #f1f1f1;
  }

  .member-role {
      font-weight: bold;
      color: #1a73e8;
  }

  /* Responsive layout */
  @media (max-width: 768px) {
      .member-table,
      .member-table-head,
      .member-table-body,
      .member-table-row,
      .member-table-header,
      .member-table-cell {
          display: block;
      }

      .member-table-head {
          display: none;
      }

      .member-table-row {
          margin-bottom: 15px;
          border: 1px solid #dddddd;
          border-radius: 6px;
          padding: 10px;
      }

      .member-table-cell {
          border: none;
          padding-left: 50%;
          position: relative;
      }

      .member-table-cell::before {
          content: attr(data-label);
          position: absolute;
          left: 10px;
          font-weight: bold;
          color: #555555;
      }
  }

  /*###################################### RREVIEW APPLICATION ##############################*/


.view_body {
  margin: 0;
  background: linear-gradient(135deg, #e0e7ff, #f8fafc);
}

.view_container {
  display: flex;
  min-height: 100vh;
  gap: 15px;
  padding: 15px;
}

/* LEFT SIDEBAR */
.view_sidebar {
  flex: 1;
  background: linear-gradient(180deg, #1e3a8a, #1e40af);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(30, 58, 138, 0.45);
}

.view_sidebar .view_h3 {
  color: #ffffff;
  margin-bottom: 22px;
}

.section_view_btn {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: #e0e7ff;
  text-align: center;
  transition: 0.3s;
}

.section_view_btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(6px);
}

.section_view_btn.active {
  background: linear-gradient(135deg, #ffffff, #dbeafe);
  color: #1e3a8a;
  font-weight: 700;
}

/* CENTER CONTENT */
.view_content {
  flex: 3;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 15px 35px rgba(30, 58, 138, 0.18);
}

.section-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.section-content.active {
  display: block;
}

.section-content .view_h2 {
  color: #1e3a8a;
}

/* DETAILS STYLE */
.detail-group {
  margin-top: 15px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  padding: 20px;
  border-radius: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed #c7d2fe;
}

.detail-row:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
  color: #1e3a8a;
}

.value {
  font-weight: 500;
  border: none;background:none;
}
.area{
  border: none;
  background:none;
  width:100%;
  height:200%;
  overflow: hidden;
  resize: none;  
  font-weight: 500;color: #4A4645;
}
.value.highlight {
  background: rgba(30, 58, 138, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
}

.detail-row.success .value {
  color: #16a34a;
  font-weight: 600;
}

.detail-row.pending .value {
  color: #ca8a04;
  font-weight: 600;
}

/* DOCUMENTS GRID */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.doc-card {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  padding: 10px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.25);
}

.doc-name {
  display: block;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.doc-status {
  display: block;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
}

.doc-card.success .doc-status {
  background: rgba(22, 163, 74, 0.15);
  color: #16a34a;
}

.doc-card.pending .doc-status {
  background: rgba(202, 138, 4, 0.15);
  color: #ca8a04;
}

/* STATUS BOX */
.status-box {
  margin-top: 20px;
  padding: 25px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  text-align: center;
}

/* RIGHT PANEL */
.suggestion {
  flex: 1.5;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 15px 35px rgba(30, 58, 138, 0.18);
}

.suggestion .sugg_h3 {
  color: #1e3a8a;
}

.suggestion .view_area {
  width: 100%;
  height: 400px;
  padding: 14px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  color: #4A4645;
}

.suggestion .save_review {
  margin-top: 18px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .view_container {
    flex-direction: column;
  }
}

/* MEMBER GRID */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.member-card {
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: #1e3a8a;
  transition: transform .2s, box-shadow .2s;border:none;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(30,58,138,.25);
  
}
.review_textarea {
  width: 100%;
  height: 160px;
  margin-top: 20px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
}
/*###################### IFRAME ###############################*/
.doc-card {
  cursor: pointer;
}

.doc-viewer {
  margin-top: 25px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.25);
}

#docFrame {
  width: 100%;
  height: 450px;
  border: none;
}

/*########################################### PDF UPLOAD ####################################################*/

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 10px;
}



.pdf-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.pdf-icon {
  font-size: 50px;
  color: #e53935;
  margin-bottom: 10px;
}

.pdf-name {
  font-size: 14px;
  word-break: break-word;
}
.pdf-card {
  position: relative; /* Important */
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 5px 2px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.delete-btn-pdf {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e53935;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  transition: 0.2s;
}

.delete-btn-pdf:hover {
  background: #c62828;
  transform: scale(1.1);
}
  
  
  

  