:root {
  --atlassian-blue: #0052cc;
  --brighter-blue: #0065ff;
  --dark-grey: #1a1a1a;
  --google-green: #188038;
  --google-red: #d93025;
  --light-grey: #e1e4e8;
  --middle-grey: #cecece;
  --muted-grey: #6b7280;
  --off-white: #f9f9f9;
  --very-light-blue: #f0f4ff;
}

/* === Base Styles === */
body,
html {
  background-color: var(--off-white);
  color: var(--dark-grey);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  height: 100%;
  margin: 0;
  width: 100%;
}

h1 {
  margin-bottom: 30px;
  margin-top: 12px;
}

h2 {
  margin-bottom: 20px;
}

h3 {
  margin: 0;
}

/* === Input & Button === */
input[type="text"] {
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  font-size: 14px;
  padding: 10px;
}

button {
  align-items: center;
  background-color: var(--atlassian-blue);
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
  height: 33px;
  justify-content: center;
  margin-left: 10px;
  padding: 8px 12px;
  white-space: nowrap;
}

button:disabled {
  background-color: var(--muted-grey);
  cursor: default;
}

button:hover:not(:disabled) {
  background-color: var(--brighter-blue);
}

/* === Sections === */
.section {
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
  padding: 20px;
  min-width: 400px;
}

.section p {
  overflow: visible;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === Layout === */
.container {
  align-items: center;
  display: flex;
  height: 100vh; /* Full viewport height */
  justify-content: center;
}

.layout {
  display: flex;
  height: 100vh;
}

.main-content {
  flex-grow: 1;
  overflow-y: scroll; /* Allows scrolling within the main content area */
  padding: 2rem 5rem;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.row .section {
  flex: 1 1 300px;
}

#results {
  /*max-width: 1100px;*/
  /*margin: 30px auto 0;*/
}

/* === Table === */
table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--light-grey);
  border-radius: 5px;
  font-size: 14px;
  margin-top: 15px;
  overflow: hidden;
  width: 100%;
}

th,
td {
  border: 1px solid var(--light-grey);
  padding: 10px;
  text-align: left;
  word-wrap: break-word;
}

th {
  background-color: var(--middle-grey);
}

/* === Links === */
a {
  color: var(--atlassian-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Error Message === */
.msg_error {
  color: var(--google-red);
}

.msg_success {
  color: var(--google-green);
}

/* === Icon Buttons & Actions === */
.icon-actions {
  display: flex;
  gap: 10px;
  overflow: visible;
}

.icon-btn,
.icon-link {
  background: none;
  border: none;
  color: var(--atlassian-blue);
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  margin-left: 0px;
}

.icon-btn:hover,
.icon-link:hover {
  background: var(--brighter-blue);
  color: white;
}

.icon-btn i,
.icon-link i {
  pointer-events: none;
}

.button-btn,
.button-link {
  /*display: inline-block;*/
  background: var(--atlassian-blue);
  border: none;
  color: white; /*#0066cc;*/
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
}

.button-btn:hover,
.button-link:hover {
  background: var(--brighter-blue);
  color: white;
}

.button-wrapper {
  display: flex;
  gap: 6px;
  margin-left: 15px;
  min-width: 100px; /* Optional: guarantees consistent space */
}

.cell-content {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.text-wrapper {
  flex: 1;
  word-break: break-word;
}

.invisible-placeholder {
  pointer-events: none;
  visibility: hidden;
}

/* === Sidebar === */
.sidebar {
  background-color: var(--middle-grey);
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  color:var(--dark-grey);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  width: 200px;
  min-width: 200px;
}

.sidebar button {
  background-color: transparent;
  border: none;
  color: var(--dark-grey);
  cursor: pointer;
  font-size: 1rem;
  padding: 8px 12px;
  position: relative;
  transition: color 0.3s ease;
}

.sidebar button.active {
  font-weight: 600;
}

.sidebar button.active::after {
  display: none; /* completely disables the underline */
}

.sidebar button:hover {
  background-color: transparent;
}

.sidebar button::after {
  background-color: var(--muted-grey);
  bottom: 1px;
  content: '';
  height: 2px;
  left: 50%;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  transition: width 0.3s ease, opacity 0.3s ease;
  width: 0%;
}

.sidebar button:hover::after {
  opacity: 1;
  width: 80%;
}

.sidebar-spacer {
  flex-grow: 1;
}

.sidebar-title {
  border-bottom: 1px solid var(--dark-grey);
  font-size: 30px;
  padding: 10px;
  padding-bottom: 14px;
  text-align: center;
}

.logout-btn {
  border-top: 1px solid #ccc;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* === Search Bar === */
.search-bar {
  align-items: center;
  display: flex;
  gap: 10px; /* spacing between input and button */
}

.search-input {
  flex: 1; /* take up all available space */
  font-size: 1rem;
  padding: 8px;
}

/* === Sign In === */
.signin-container {
  background-color: white;
  border: 1px solid var(--middle-grey);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  width: 400px;
}

.signin-container iframe {
  height: 100%;
  width: 100%;
}

#feedback {
  display: flex;
  min-height: 21px;
  padding: 10px;
}

#pagination-wrapper {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  min-height: 60px; /* ensures consistent vertical space below table */
}

.description {
  font-size: 12px;
  margin-bottom:1rem;
}

.description p {
  margin: 0;
  line-height: 1.4; /* Optional: keeps it readable without adding too much space */
}

.drive-info p {
  margin: 0;
  line-height: 1.4;
}

.headerLinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.headerLinks .link {
  /*flex: 1 1 22%;*/ /* 4 columns = ~25% each minus gap */
  text-align: center;
}

.headerLinks .link a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--dark-grey);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.headerLinks .link a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0%;
  height: 2px;
  background-color: var(--muted-grey);
  transform: translateX(-50%);
  transition: width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.headerLinks .link a:hover::after {
  width: 90%;
  opacity: 1;
}

.pathToggle {
  cursor:pointer;
  color: var(--brighter-blue);
}

#shared-drives-timestamp {
  font-size: 12px;
  color: var(--muted-grey);
  margin-top: 15px;
  text-align: right;
}