/* =========================================================
   Branding Elements
   ========================================================= */

/* Orange bar across top/bottom */
.orange-bar {
  background-color: #FF5C47;
  height: 20px;
  width: 100%;
}

/* =========================================================
   Global Page Styling
   ========================================================= */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  text-align: center;
}

/* Shared container (portal + other pages) */
.container {
  margin: 40px auto;
  width: 80%;
  max-width: 800px;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* =========================================================
   Login Page Styling
   ========================================================= */

.login-container {
  width: 300px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
  text-align: center;
}

button {
  width: 100%;
  box-sizing: border-box;
  background-color: #FF5C47;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

button:hover {
  background-color: #e24a36;
}

.password-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.password-wrapper input {
  width: 100%;
  padding-right: 36px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.toggle-password:hover svg {
  stroke: #333;
}

.error {
  color: red;
  margin-bottom: 10px;
}

/* =========================================================
   Portal Page: File List Table
   ========================================================= */

.file-list {
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
}

.file-list th,
.file-list td {
  border: 1px solid #ddd;
  padding: 8px;
}

.file-list th {
  background-color: #FF5C47;
  color: white;
  text-align: left;
}

/* Updated for Font Awesome 6 */
.file-list td i.fa-folder,
.file-list td i.fa-solid.fa-folder {
  margin-right: 8px;
}

.file-list tr:nth-child(even) {
  background-color: #f9f9f9;
}

.file-list tr:hover {
  background-color: #f1f1f1;
}

.file-list td span {
  font-weight: bold;
}

.file-list td span:hover {
  text-decoration: underline;
}

/* =========================================================
   Links & Buttons
   ========================================================= */

.download-link {
  color: #FF5C47;
  font-weight: bold;
  text-decoration: none;
}

.download-link:hover {
  text-decoration: underline;
}

.logout-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #FF5C47;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.logout-btn:hover {
  background-color: #e24a36;
}

/* =========================================================
   Folder Tree Styling with Connectors
   ========================================================= */

ul {
  list-style-type: none;
  margin: 0;
  padding-left: 20px;
  position: relative;
}

ul::before {
  content: "";
  border-left: 1px solid #ccc;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

ul li {
  position: relative;
  padding-left: 20px;
  margin: 5px 0;
  text-align: left;
}

ul li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 20px;
  border-top: 1px solid #ccc;
}

/* Icons & text spacing */
ul li i {
  margin-right: 6px;
}

ul li span {
  font-weight: bold;
}

ul li span:hover {
  text-decoration: underline;
}

ul li:hover {
  background-color: #f9f9f9;
  border-radius: 4px;
}

/* Add more vertical space between folders */
ul > li {
  margin-bottom: 12px;
}



/* =========================================================
   File Type Icon Hover Effects (Font Awesome 6)
   ========================================================= */

.fa-file-pdf {
  color: #e24a36;
}
.fa-file-pdf:hover {
  color: #ff0000;
}

.fa-file-word {
  color: #2a5699;
}
.fa-file-word:hover {
  color: #3a75c4;
}

.fa-file-excel {
  color: #217346;
}
.fa-file-excel:hover {
  color: #2ebf6b;
}

.fa-file-image {
  color: #6c757d;
}
.fa-file-image:hover {
  color: #343a40;
}

.fa-file-archive {
  color: #f0ad4e;
}
.fa-file-archive:hover {
  color: #ffb84d;
}

.fa-file-lines {
 color: #6c757d;
}
.fa-file-lines:hover {
  color: #343a40;
}

/* =========================================================
   Folder Icons (FA6 Fix)
   ========================================================= */

.fa-folder,
.fa-solid.fa-folder {
  color: #FF5C47;
  margin-right: 6px;
}

/* =========================================================
   Title Row Styling
   ========================================================= */
.title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.title-row .logo {
  height: 50px;
  margin-right: 15px;
}

.title-row h1 {
  margin: 0;
  font-size: 1.8em;
  text-align: left;
}
