/* Import Inter font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
}
body {
  background-color: whitesmoke;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
  height: 95vh;
}

/*=====================Login Page===================*/
.log-container {
  background-color: #025eab78;
  padding: 50px;
  margin: 0 auto;
  margin-top: 9%;
  max-width: 400px;
  max-height: 800px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}
h2 {
  text-align: center;
  color: #ffffff;
  font-size: 22px;
}
.log-container form {
  padding-top: 50px;
  width: 100%;
  text-align: center;
}
.log-container form label {
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #ffffff;
  text-align: left;
  width: 100%;
}
.log-container form input {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 30px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}
form input:focus {
  border-color: #191970;
  outline: none;
}
form input::placeholder {
  color: #aaa;
}
.button-container {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  padding-right: 10px;
}

.button-container button {
  background-color: whitesmoke;
  color: #191970;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
}

.button-container button:hover {
  transform: translateY(-5px);
  text-decoration: underline;
  font-weight: bolder;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between; /* Add space between items */
  align-items: center;
  padding: 15px 20px;
  background-color: #003a6b;
  border-bottom: 2px solid #ddd;
}

.header img {
  margin-right: 15px; /* Optional: If you want extra spacing between the logo and text */
}

.header h2 {
  margin: 0; /* Remove any default margin from the heading */
}

.header-left {
  display: flex;
  align-items: center;
}

/* File Manager Container */
.file-manager-container {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Heading */
h2 {
  text-align: center;
  color: #ffffff;
  font-size: 22px;
}

/* Buttons */
.file-manager-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin: 0px 37px 15px 0px;
}

.file-manager-buttons button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
  font-weight: bold;
}

.file-manager-buttons button:hover {
  background-color: #0056b3;
}

/* Table */
.file-manager-table {
  width: 90%;
  margin-left: 5%;
  border-collapse: collapse;
  background: #fff;
}

.file-manager-table th,
.file-manager-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.file-manager-table th {
  background-color: #007bff;
  color: white;
}

.file-manager-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Folder & File Icons */
.folder-icon {
  margin-right: 5px;
}

/* Actions */
.file-manager-actions a {
  color: red;
  text-decoration: none;
  font-weight: bold;
}

.file-manager-actions a:hover {
  text-decoration: underline;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 300px;
}

.modal input {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
}

.modal button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 100%;
}

.modal button:hover {
  background-color: #218838;
}

/* Close Button */
.close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}

/* Close Button */
.close-btn {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.close-btn:hover {
  color: red;
}

.logout-container {
  text-align: right;
  margin-bottom: 20px;
}

.logout-button {
  background-color: #dc3545;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.logout-button:hover {
  background-color: #c82333;
}

.breadcrumbs {
  margin-left: 225px;
  font-size: 14px;
  padding: 15px 0px 0px 50px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #6b7280;
}

.breadcrumbs strong {
  color: #cbd5e1;
  font-weight: 600;
  margin: 0;
  padding: 0 4px;
}

.breadcrumbs a {
  text-decoration: none;
  color: #6b7280;
  font-weight: 600;
  padding: 0;
  transition: color 0.12s ease, background 0.12s ease,
    text-decoration 0.12s ease;
  display: inline-block;
  white-space: nowrap;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  color: #2563eb;
  text-decoration: underline;
  background: rgba(37, 99, 235, 0.06);
}

.breadcrumbs a:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.breadcrumbs a:last-of-type {
  color: #2563eb !important;
  text-decoration: underline;
  font-weight: 600;
}

/* Smooth collapse helpers */
.crumb-hidden {
  max-width: 0 !important;
  opacity: 0 !important;
  transform: translateX(-6px);
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  transition: max-width 0.18s ease, opacity 0.12s ease, transform 0.18s ease;
}
.crumb-sep-hidden {
  opacity: 0 !important;
  transform: translateX(-3px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

/* Collapse button/menu (small) */
.crumb-collapse {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-weight: 600;
  padding: 0 4px;
  margin: 0;
}
.crumb-collapse:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.crumb-dropdown {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  z-index: 2000;
  min-width: 160px;
}
.crumb-dropdown a {
  display: block;
  color: #111827;
  padding: 6px 12px;
  text-decoration: none;
  white-space: nowrap;
}
.crumb-dropdown a:hover {
  background: #f3f4f6;
  color: #2563eb;
}

.user-table {
  width: calc(100% - 30px);
  background-color: white;
  text-align: center;
  border-collapse: collapse;
}

.user-table th {
  background-color: #007bff;
  color: white;
}

.user-table th,
.user-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.user-table td.lefty {
  text-align: left;
  padding-left: 12px;
}

.user-table td.lefty .file-name,
.user-table td.lefty .folder-name {
  display: inline-block;
  width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  cursor: default;
  user-select: none;
}

.user-table tr:hover {
  background-color: #f0f0f0;
}

.trash-manager {
  margin-left: 225px;
  padding: 25px 25px 20px 25px;
}

.user-body {
  background: url("../asset/plvpic.png") no-repeat center center fixed;
  background-size: cover;
  background-position: 0% 17%; /* Move it slightly */
}

.user-body .header {
  border-bottom: 2px solid #20274d;
}

.footer {
  text-align: center;
  padding: 10px;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 14px;
  color: #ffffff;
}

.manage-contain {
  margin-left: 225px;
  height: calc(100vh - 100px); /* Adjust height dynamically */
  overflow-y: auto; /* Enable vertical scrolling */
  padding: 0px 25px 80px 25px;
}

.user-table thead {
  position: sticky;
  top: 0;
  background: white; /* Ensures visibility */
}

.created-by-admin {
  color: #d9534f;
  font-weight: bold;
  font-style: italic;
  text-align: right;
}

.fold-create {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/*
.user-role {
  font-size: 14px;
  border-radius: 5px;
  font-weight: bold;
  font-style: italic;
  color: #ffffff;
  margin-right: 40px;
}
  */

.FilteringSearch {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-left: 250px;
  margin-bottom: 5px;
  margin-right: 50px;
}

.filterControl {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.filterControl:focus {
  border-color: #007bff;
  outline: none;
}

label {
  font-weight: bold;
  font-size: 14px;
  margin-right: 6px;
}

.status-badge {
  padding: 5px 9px;
  border-radius: 18px;
  color: white;
  font-weight: bold;
  user-select: none;
  font-size: 11px;
}

.status-badge.complete {
  background-color: green;
}

.status-badge.incomplete {
  background-color: rgb(211, 0, 0);
}

.status-label {
  padding: 5px 10px;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  font-size: 10px;
  width: 100%;
  text-align: center;
  display: inline-block;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
  will-change: transform, box-shadow;
}

.status-label:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
