/* ============================ Browser Reset ============================ */
@import "css/font-awesome.min.css";

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

#root, #__next {
  isolation: isolate;
}

/* ============================ Import Fonts ============================ */
@font-face {
  font-family: "tiviti-regular";
  src: url("fonts/open-sans-regular/OpenSans-Regular-webfont.eot");
  src: url("fonts/open-sans-regular/OpenSans-Regular-webfont.eot?#iefix") format("embedded-opentype"),
       url("fonts/open-sans-regular/OpenSans-Regular-webfont.woff") format("woff"),
       url("fonts/open-sans-regular/OpenSans-Regular-webfont.ttf") format("truetype"),
       url("fonts/open-sans-regular/OpenSans-Regular-webfont.svg#open-sans-regular") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "tiviti-bold";
  src: url("fonts/open-sans-bold/OpenSans-Bold-webfont.eot");
  src: url("fonts/open-sans-bold/OpenSans-Bold-webfont.eot?#iefix") format("embedded-opentype"),
       url("fonts/open-sans-bold/OpenSans-Bold-webfont.woff") format("woff"),
       url("fonts/open-sans-bold/OpenSans-Bold-webfont.ttf") format("truetype"),
       url("fonts/open-sans-bold/OpenSans-Bold-webfont.svg#open-sans-regular") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "tiviti-italic";
  src: url("fonts/open-sans-italic/OpenSans-Italic-webfont.eot");
  src: url("fonts/open-sans-italic/OpenSans-Italic-webfont.eot?#iefix") format("embedded-opentype"),
       url("fonts/open-sans-italic/OpenSans-Italic-webfont.woff") format("woff"),
       url("fonts/open-sans-italic/OpenSans-Italic-webfont.ttf") format("truetype"),
       url("fonts/open-sans-italic/OpenSans-Italic-webfont.svg#open-sans-regular") format("svg");
  font-weight: normal;
  font-style: normal;
}

/* ============================ Animations ============================ */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes rotate_pacman_half_up {
  0%, 100% { transform: rotate(270deg); }
  50% { transform: rotate(360deg); }
}

@keyframes rotate_pacman_half_down {
  0%, 100% { transform: rotate(90deg); }
  50% { transform: rotate(0deg); }
}

@keyframes pacman-balls {
  75% { opacity: 0.7; }
  100% { transform: translate(-100px, -6.25px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ============================ Body Elements ============================ */
body {
  font-family: "tiviti-regular";
  font-size: 14px;
  line-height: 22px;
  color: #555;
  background-color: #f6f8fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body a {
  color: #0070b7;
  text-decoration: none;
}

body a:hover {
  color: #000;
}

h1, h2, h3 {
  font-weight: normal;
  font-family: "tiviti-regular";
}

h1 {
  color: #666;
  font-size: 24px;
  margin: 0 0 1.5rem 0;
  line-height: 30px;
}

h2 {
  color: #58595B;
  font-size: 21px;
  margin: 2.5rem 0 1rem 0;
  line-height: 27px;
}

h3 {
  color: #58595B;
  font-size: 18px;
  margin: 2rem 0 0.75rem 0;
  line-height: 23px;
}

p {
  margin-top: 0;
  margin-bottom: 1rem; /* 16px - space between paragraphs */
}


/* ============================ Globals ============================ */
.hidden,
.hide {
  display: none;
}

.clear {
  clear: both;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.padding-medium {
  padding:20px;
}

.margin-bottom-50 {
  margin-bottom:50px;
}

/* ============================ Notifications ============================ */

/* Notification uses existing .half card styling, just needs notification-specific additions */
.notification {
    animation: slideDown 0.3s ease-out;
}

.notification p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Warning/Cancelled notification */
.notification.warning {
    border-left: 4px solid #ffc107;
    background-color: #fffbf0;
}

.notification.warning p::before {
    content: "\f071"; /* warning icon */
    font-family: "FontAwesome";
    margin-right: 10px;
    color: #ffc107;
}

/* Success notification */
.notification.success {
    border-left: 4px solid #28a745;
    background-color: #f0fdf4;
}

.notification.success p::before {
    content: "\f00c"; /* check icon */
    font-family: "FontAwesome";
    margin-right: 10px;
    color: #28a745;
}

/* Error notification */
.notification.error {
    border-left: 4px solid #dc3545;
    background-color: #fef2f2;
}

.notification.error p::before {
    content: "\f00d"; /* times/x icon */
    font-family: "FontAwesome";
    margin-right: 10px;
    color: #dc3545;
}

/* Info notification */
.notification.info {
    border-left: 4px solid #17a2b8;
    background-color: #f0f9ff;
}

.notification.info p::before {
    content: "\f05a"; /* info icon */
    font-family: "FontAwesome";
    margin-right: 10px;
    color: #17a2b8;
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ordered & unordered lists
==================================================================== */
/* Main list styling */
.page-content ul, ol {
    margin: 1em 0;
    padding-left: 2em;
}

/* Main list items - more spacing */
.page-content li {
    margin-bottom: 1em; /* More space between main items */
    line-height: 1.5;
}

/* Nested lists */
.page-content ul ul, ol ul, ul ol, ol ol {
    margin: 0.5em 0; /* Less vertical spacing for nested */
    padding-left: 1.5em; /* Slightly less padding */
}

/* Nested list items - more compact */
.page-content ul ul li,
.page-content ol ul li,
.page-content ul ol li,
.page-content ol ol li {
    margin-bottom: 0.3em; /* Less space between nested items */
    line-height: 1.3;
}

/* For better visual hierarchy */
.page-content li > ul,
.page-content li > ol {
    margin-top: 0.5em; /* Small top margin for nested lists */
}

/* .page-content {
  background: #FFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
} */

/* ============================ Layout ============================ */
.full-width-container {
  width: 100%;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

main .content-wrapper {
  padding: 50px 30px;
}

.full-height {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vertically-centered-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/* ============================ Breadcrumbs ============================ */
.breadcrumbs {
  margin: 0 0 1.5rem 0;
  padding-bottom: 3px;
  border-bottom: 1px solid #dadfe5;
  font-size: 12px;
}

.breadcrumbs ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs ul li {
  display: flex;
  align-items: center;
}

.breadcrumbs ul li:not(:last-child)::after {
  content: "\f105";
  font-family: "FontAwesome";
  margin: 0 7px;
}

/* ============================ Header ============================ */
header#main-header {
  background: #FFF;
  border-bottom: 1px #dadfe5 solid;
}

/* ============================ Navbar ============================ */
.navbar {
  background-color: #FFF;
  position: relative;
  /*z-index: 2001;*/
  z-index: 20;
  padding: 10px 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
}

.navbar-logo {
  color: #0070b7;
  font-size: 1rem;
}

.navbar-logo img#site-logo {
  height: 20px;
  width: auto;
}

.navbar-logo a {
  color: inherit;
  text-decoration: none;
}

.navbar-menu {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a {
  color: #182433;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}

.navbar-menu a:hover {
  color: #000;
}

.navbar-menu ul {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  border: #dadfe5 1px solid;
  border-radius: 5px;
  z-index: 1000;
  list-style-type: none;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-menu ul li {
  width: 100%;
}

.navbar-menu ul a {
  padding: 0.7rem 1rem;
}

@media (min-width: 769px) {
  .navbar-menu li:hover > ul {
    display: block;
  }
}

.navbar-menu li.open > ul {
  display: block;
}

.navbar-menu li > a:only-child::after {
  content: none;
}

.navbar-menu li > a:not(:only-child)::after {
  content: "\f107";
  font-family: "FontAwesome";
  font-size: 0.7em;
  margin-left: 0.5em;
  display: inline-block;
  transition: transform 0.3s ease;
}

.navbar-menu li.open > a:not(:only-child)::after {
  transform: rotate(180deg);
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 2001;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #182433;
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.open span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 1rem;
    overflow-y: auto;
    z-index: 2000;
    margin-top: 53px;
  }

  .navbar-menu.open {
    display: flex;
  }

  .navbar-menu li {
    width: 100%;
  }

  .navbar-menu li:not(:last-child) {
    border-bottom: 1px solid #eee;
  }

  .navbar-menu ul {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: #f8f8f8;
    border: none;
    border-radius: 0;
  }

  .navbar-menu ul a {
    padding-left: 2rem;
  }

  .navbar-menu a {
    padding: 1rem 0;
  }

  .navbar-menu li > a:not(:only-child)::after {
    float: right;
  }
}

/* ============================ Account Verification Message ============================ */
#user-account-verification {
  border-left: 4px solid #ffc107;
  background-color: #fffbf0;
  padding: 0;
}

#user-account-verification > div {
  max-width:1200px;
  margin: auto auto;
  box-sizing: border-box;
}

#user-account-verification > div > p {
  padding:15px 0;
  margin:0;
}

/* ============================ Forms ============================ */
form input[type=text],
form input[type=email],
form input[type=password],
form select,
.input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

form input[type=submit],
.standardBtn,
.standard-button,
input[type="submit"].standard-button,
button.standard-button {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #0070b7;
  color: white;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form input[type=submit]:hover,
.standardBtn:hover,
.standard-button:hover,
input[type="submit"].standard-button:hover,
button.standard-button:hover {
  background-color: #005a94;
}

form input[type=submit]:active,
.standardBtn:active,
.standard-button:active,
input[type="submit"].standard-button:active,
button.standard-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================ Buttons ============================ */
.btn {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  border: none;
}

.btn-primary {
  background-color: #0070b7;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #005a94;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background-color: white;
  color: #0070b7;
  border: 1px solid #0070b7;
}

.btn-secondary:hover {
  background-color: #f0f7fc;
}

.btn-secondary:active {
  transform: translateY(1px);
}

#uploadButton {
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(45deg, #8A2BE2, #1E90FF, #00CED1, #4169E1);
  background-size: 300% 300%;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: gradientShift 5s ease infinite;
}

#uploadButton:disabled {
  background-color: #ddd;
  cursor: not-allowed;
}

/* ============================ File Upload ============================ */
#file-upload {
  max-width: 500px;
  font-family: Arial, sans-serif;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#upload-form {
  background-color: #f8f8f8;
  padding: 20px;
}

#upload-title,
#upload-message,
#email-input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#upload-message {
  resize: vertical;
  min-height: 60px;
}

#upload-options {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

#upload-options #notify-type label {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  margin-bottom: 5px;
}

#upload-options input[type=radio] {
  margin-right: 5px;
}

#upload-options #expires-in {
  display: block;
  margin: 10px 0;
}

#upload-expiry,
#upload-password {
  width: 100%;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#upload-buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#download-link {
  margin-top: 15px;
  padding: 10px;
  background-color: #e6f7ff;
  border-radius: 4px;
  display: none;
}

/* Email Notification Bubbles */
#email-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

#email-list:empty {
  display: none;
}

.email-bubble {
  padding: 5px 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.email-bubble .remove {
  margin-left: 5px;
  cursor: pointer;
  font-weight: bold;
  color: rgb(170, 0, 0);
}

/* ============================ Uploads & Downloads ============================ */
#upload-container,
#file-download {
  max-width: 1200px;
  margin: 0 auto;
}

.upload-info,
.download-info {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.upload-info h1,
.download-info h1 {
  font-size: 1.2rem;
  color: #333;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.download-info h1 {
  font-size: 1.5rem;
  margin: 0 0 10px 0;
}

.upload-info h2 {
  font-size: 1.1rem;
}

.download-message {
  color: #666;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.upload-info .upload-meta,
.download-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  font-size: 0.9rem;
  color: #666;
}

.download-meta {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.upload-info .upload-meta div,
.download-meta div {
  padding: 5px 0;
}

.upload-info .upload-meta div i,
.download-meta div i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.download-controls {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#selected-count {
  margin-left: auto;
  color: #666;
  font-size: 14px;
}

#user-files {
  margin: 0 auto;
}

#user-files h2 {
  font-size: 1.1rem;
  color: #333;
  margin: 0 0 20px 0;
}

/* ============================ Search & Sort ============================ */
#search-sort {
  margin-bottom: 20px;
}

#search-sort > span {
  font-size: 13px;
}

#search-sort .search.input {
  margin-bottom: 20px;
  border-radius: 5px;
}

#search-sort .back-link {
  margin-top: 10px;
}

#search-sort button {
  border: 1px solid #dadfe5;
  border-radius: 5px;
  background: #FFF;
  padding: 3px 7px;
  margin-left: 5px;
  font-size: 13px;
}

#search-sort button.asc {
  border: 1px solid #0070b7;
}

#search-sort button.asc::after {
  content: " \f106";
  font-family: "FontAwesome";
}

#search-sort button.desc {
  border: 1px solid #0070b7;
}

#search-sort button.desc::after {
  content: " \f107";
  font-family: "FontAwesome";
}

/* ============================ File Items ============================ */
.file {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, background-color 0.2s ease;
}

.file:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.file h2,
.file h3 {
  font-size: 1.1rem;
  color: #333;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}

.file .actions div {
  display: inline-block;
  padding: 5px 0;
  margin-top: 7px;
}

.file .actions div:not(:last-child) {
  margin-right: 20px;
}

.file-selectable {
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.file-selectable:hover {
  background-color: #f9fafb;
}

.file-selectable.selected {
  background-color: #e6f2ff;
  box-shadow: 0 2px 5px rgba(0, 112, 183, 0.15);
}

.file-selectable.selected:hover {
  background-color: #d9ebff;
}

.file-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  width: 100%;
  padding: 5px;
  border-radius: 4px;
}

.file-checkbox {
  margin-right: 12px;
  margin-top: 5px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.file-content {
  flex: 1;
}

.file-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
}

.file-meta div {
  padding: 3px 0;
}

.file-meta i {
  margin-right: 6px;
  width: 14px;
  text-align: center;
}

/*
================================ Login ================================ */
#login-container {
  max-width: 450px;
  margin: auto auto;
  text-align: center;
  display: flex;
  align-items: center;
  padding: 30px;
  box-sizing: border-box;
  background-color: #FFF;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#login-container > div {
  flex-basis: 100%;
  flex-wrap: nowrap;
}

#login-container #logo {
  margin-bottom: 50px;
}

#login-container .notification {
  margin: 35px 0;
  padding:20px;
  border-radius: 4px;
}

#login-container #login-page-links {
  margin: 20px 0 0 0;
}

#login-container #login-page-links ul {
  list-style-type: none;
  text-align: left;
  margin:0;
  padding: 0;
}

#login-container #login-page-links ul li {
  margin-bottom: 3px;
}

#login-container form input[type=text],
#login-container form input[type=password],
#login-container form input[type=email] {
  box-sizing: border-box;
  width: 100%;
  background: #f7f9fc;
  border: 1px solid #e4e9f2;
  border-radius: 4px;
  color: #333;
  padding: 15px;
  margin-bottom: 30px;
}

#login-container form input[type=submit] {
  width:100%;
}

#login-container form input[type=text]:focus,
#login-container form input[type=password]:focus,
#login-container form input[type=email]:focus {
  border: 1px solid #0070b7;
}

#login-container form label {
  display: block;
  margin-bottom: 30px;
  text-align: left;
}

#login-container form input::placeholder {
  color: #8C93A2;
}

/* Password reset form */
#login-container.reset form label {
  margin-bottom:0;
}

#login-container.reset .error-label {
  margin-top:-25px;
  margin-bottom: 20px;
}

/* ============================ Lists & Pagination ============================ */
.list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.pagination-container {
  display: flex;
  margin-top: 1rem;
}

.pagination-container ul.pagination {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.pagination-container ul.pagination li a {
  display: block;
  padding: 0.25rem 0.5rem;
  border: 1px solid #dadfe5;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
}

.pagination-container ul.pagination li a:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.pagination-container ul.pagination li.active a {
  color: #0070b7;
}

.pagination-container ul.pagination li.disabled a {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* ============================ Copy to Clipboard ============================ */
.copy-block {
  position: relative;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 50px 10px 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.copy-text {
  margin: 0;
  color: #333;
  line-height: 1.5;
  font-size: 14px;
  word-break: break-word;
}

.copy-button {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-button:hover {
  background: #f0f0f0;
}

.copy-button:active {
  background: #e0e0e0;
}

.copy-icon {
  width: 20px;
  height: 20px;
  color: #666;
}

.copied {
  animation: pulse 0.3s ease;
}

.tooltip {
  position: absolute;
  top: -30px;
  right: 0;
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tooltip.show {
  opacity: 1;
}

/* ============================ Password Form ============================ */
#password-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.password-form-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

.password-form-card h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

.password-form-card label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
}

.password-form-card input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.password-form-card input[type="password"]:focus {
  outline: none;
  border-color: #0070b7;
  box-shadow: 0 0 0 3px rgba(0, 112, 183, 0.1);
}

.error-message {
  background-color: #fee;
  color: #c33;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border-left: 4px solid #c33;
}

/* ============================ Account Settings ============================ */
.sections-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.half {
  flex: 1 1 calc(50% - 1rem);
  min-width: 300px;
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.half h3 {
  margin-bottom: 1.5rem;
  border-bottom: 2fpx solid #0070b7;
  padding-bottom: 0.5rem;
  margin-top:0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

.half label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.half label small {
  color: #777;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.half input[type="text"],
.half input[type="password"],
.half input[type="email"],
.half select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.half input[type="text"]:focus,
.half input[type="password"]:focus,
.half input[type="email"]:focus,
.half select:focus {
  outline: none;
  border-color: #0070b7;
  box-shadow: 0 0 0 3px rgba(0, 112, 183, 0.1);
}

.half select {
  cursor: pointer;
  background-color: white;
}

.half input[type="submit"] {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #0070b7;
  color: white;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.half input[type="submit"]:hover {
  background-color: #005a94;
}

.half input[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-align-center {
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================ Uppy Overrides ============================ */
.uppy-Dashboard .uppy-Dashboard-inner {
  border: none;
  border-radius: 0;
}

.uppy-Dashboard-files {
  padding-bottom: 0 !important;
}

.uppy-Dashboard-filesInner:last-child .uppy-Dashboard-Item {
  border-bottom: none;
}

/* ============================ Homepage ============================= */
/* HERO SECTION */
.hero {

  text-align: center;
  padding: 5rem 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.features {
  text-align: center;
}

.features ul {
  list-style-type: none;
}

/* HOW IT WORKS */
.how-it-works {
  padding: 4rem 2rem;
  text-align: center;
}

.how-it-works .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.how-it-works .step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.how-it-works .step p {
  color: #555;
  font-size: 1rem;
}

/* PRICING PREVIEW */
.pricing-preview {
  padding: 4rem 2rem;
  text-align: center;
}

.pricing-preview h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pricing-preview p {
  color: #555;
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

/* FINAL CTA */
.cta-final {
  padding: 4rem 2rem;
  text-align: center;
}




/* ============================ Pricing ============================= */
.pricing-container {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #222;
  text-align: center;
}

.pricing-header {
  text-align: center;
  margin-bottom: 50px;
}

.pricing-header h1 {
  font-size: 2.2em;
  margin-bottom: 10px;
}

.pricing-header p {
  font-size: 1.1em;
  color: #555;
}

.pricing-box {
  text-align: center;
  border: 2px solid #eee;
  display: inline-block;
  border-radius: 10px;
  padding: 25px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
}

.pricing-box h2 {
  margin: 0;
  font-size: 2em;
}

.pricing-box p {
  margin: 5px 0 0;
  color: #555;
}

.pricing-note {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.calculator-section {
  margin: 60px auto;
  text-align: center;
}

.calculator-section h2 {
  margin-bottom: 20px;
}

.calculator-box {
  max-width: 400px;
  margin: 0 auto;
  background: #fafafa;
  border-radius: 10px;
  padding: 20px 30px;
  border: 1px solid #eee;
}

.calculator-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  text-align: left;
}

.calculator-box input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

.calculator-box button {
  width: 100%;
  background: #0070b7;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
}

.calculator-box button:hover {
  background: #005a94;
}

#result {
  text-align: center;
  font-size: 1.2em;
  margin-top: 20px;
  font-weight: bold;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.feature {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  background: #fafafa;
}

.feature h3 {
  margin-top: 0;
}

.feature p {
  color: #555;
}

.cta-section {
  text-align: center;
  margin-top: 60px;
}

.cta-button {
  display: inline-block;
  background: #0070b7;
  color: #fff;
  padding: 15px 40px;
  font-size: 1.1em;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.cta-button:hover {
  background-color: #005a94;
  color: #FFF;
}

.cta-section p {
  margin-top: 10px;
  color: #666;
}


/* ============================ Loader ============================ */
#loader {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

body.loading #loader {
  overflow: hidden;
  display: block;
}

#loader span {
  font-size: 14px;
  display: block;
  padding: 10px 0 0 0;
  color: #FFF;
}

#loader #loader-container {
  margin: auto auto;
}

.pacman {
  position: relative;
}

.pacman > div:nth-child(2) {
  animation: pacman-balls 1s -0.99s infinite linear;
}

.pacman > div:nth-child(3) {
  animation: pacman-balls 1s -0.66s infinite linear;
}

.pacman > div:nth-child(4) {
  animation: pacman-balls 1s -0.33s infinite linear;
}

.pacman > div:nth-child(5) {
  animation: pacman-balls 1s 0s infinite linear;
}

.pacman > div:first-of-type {
  width: 0px;
  height: 0px;
  border-right: 25px solid transparent;
  border-top: 25px solid #f8c931;
  border-left: 25px solid #f8c931;
  border-bottom: 25px solid #f8c931;
  border-radius: 25px;
  animation: rotate_pacman_half_up 0.5s 0s infinite;
  position: relative;
  left: -30px;
}

.pacman > div:nth-child(2) {
  width: 0px;
  height: 0px;
  border-right: 25px solid transparent;
  border-top: 25px solid #f8c931;
  border-left: 25px solid #f8c931;
  border-bottom: 25px solid #f8c931;
  border-radius: 25px;
  animation: rotate_pacman_half_down 0.5s 0s infinite;
  margin-top: -50px;
  position: relative;
  left: -30px;
}

.pacman > div:nth-child(3),
.pacman > div:nth-child(4),
.pacman > div:nth-child(5),
.pacman > div:nth-child(6) {
  background-color: #f8c931;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  margin: 2px;
  position: absolute;
  transform: translate(0, -6.25px);
  top: 25px;
  left: 70px;
}

/* ============================ Form Containers ============================ */
#form-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#form-container form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Form Field Wrapper */
#form-container .half {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding:0;
  box-shadow: none;
}

#form-container .full-width-field {
  grid-column: 1 / -1;
}

#form-container label {
  font-family: "tiviti-bold", Arial, sans-serif;
  color: #333;
  font-size: 14px;
  margin-bottom: 0.25rem;
}

#form-container input[type="text"],
#form-container input[type="email"],
#form-container input[type="password"],
#form-container input[type="tel"],
#form-container input[type="number"],
#form-container input[type="date"],
#form-container select,
#form-container textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: white;
}

#form-container input[type="text"]:focus,
#form-container input[type="email"]:focus,
#form-container input[type="password"]:focus,
#form-container input[type="tel"]:focus,
#form-container input[type="number"]:focus,
#form-container input[type="date"]:focus,
#form-container select:focus,
#form-container textarea:focus {
  outline: none;
  border-color: #0070b7;
  box-shadow: 0 0 0 3px rgba(0, 112, 183, 0.1);
}

#form-container textarea {
  min-height: 100px;
  resize: vertical;
  font-family: "tiviti-regular", Arial, sans-serif;
}

#form-container select {
  cursor: pointer;
}

/* Form Actions Section */
#form-container .form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

#form-container .g-recaptcha {
  flex: 0 0 auto;
}

#form-container input[type="submit"],
#form-container button[type="submit"] {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #0070b7;
  color: white;
  font-family: "tiviti-regular", Arial, sans-serif;
  font-size: 15px;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#form-container input[type="submit"]:hover,
#form-container button[type="submit"]:hover {
  background-color: #005a94;
}

#form-container input[type="submit"]:active,
#form-container button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#form-container input[type="submit"]:disabled,
#form-container button[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Helper Text */
#form-container .helper-text {
  font-size: 12px;
  color: #777;
  margin-top: 0.25rem;
}

/* Error States */
#form-container .error input[type="text"],
#form-container .error input[type="email"],
#form-container .error input[type="password"],
#form-container .error input[type="tel"],
#form-container .error input[type="number"],
#form-container .error select,
#form-container .error textarea {
  border-color: #dc3545;
}

#form-container .error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 0.25rem;
}

/* Success States */
#form-container .success input[type="text"],
#form-container .success input[type="email"],
#form-container .success input[type="password"],
#form-container .success input[type="tel"],
#form-container .success input[type="number"],
#form-container .success select,
#form-container .success textarea {
  border-color: #28a745;
}

/* Checkbox and Radio Styles */
#form-container .checkbox-group,
#form-container .radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#form-container .checkbox-group label,
#form-container .radio-group label {
  display: flex;
  align-items: center;
  font-family: "tiviti-regular", Arial, sans-serif;
  cursor: pointer;
}

#form-container input[type="checkbox"],
#form-container input[type="radio"] {
  margin-right: 0.5rem;
  cursor: pointer;
  width: 18px;
  height: 18px;
}



/* Form Responsive Design */
@media (max-width: 768px) {
  #form-container {
    padding: 1.5rem;
  }

  #form-container form {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  #form-container .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #form-container .g-recaptcha {
    margin: 0 auto;
  }

  #form-container input[type="submit"],
  #form-container button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #form-container {
    padding: 1rem;
    border-radius: 0;
  }

  #form-container form {
    gap: 1rem;
  }
}

/* =DataTables
-------------------------------------------------------------- */
.dataTables_wrapper {
	margin: 15px 0;
}

.dataTables_wrapper table {
	border: 1px #BCBEC0 solid;
    border-radius: 4px;
    padding:0px;
    box-sizing:border-box;
		max-width: 100%;
}

table.dataTable,
table.dataTable th,
table.dataTable td {
  box-sizing: border-box;
}

.dataTables_wrapper .dataTables_info {
	padding:10px;
	width:50%;
	box-sizing:border-box;
}

.dataTables_wrapper .dataTables_filter {
	margin: 10px 10px 0 0;
}

.dataTables_wrapper .dataTables_paginate {

}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	color:#005b93!important;
	border:1px solid #EEE;
	padding: 0.25rem 0.5rem;
	border-radius:0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous {
	border-top-left-radius: 0.2rem;
	border-bottom-left-radius: 0.2rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.next {
	border-top-right-radius: 0.2rem;
	border-bottom-right-radius: 0.2rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled.next,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled.previous {
	border: 1px solid #EEE;
	cursor: not-allowed;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:active {
	background:#F5F5F5;
	color:#005b93!important;
	border:1px solid #EEE;
}


.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background:#005b93!important;
	color:#FFF!important;
	border:1px solid #EEE;
}

table.dataTable thead th,
table.dataTable tfoot th {
  font-weight:normal;
  font-family:'tiviti-bold';
  font-size:14px;
}

table.dataTable thead th,
table.dataTable thead td {
	border-bottom: 1px solid #BCBEC0;
}

table.dataTable.no-footer {
  border-bottom: 1px solid #BCBEC0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
  padding:10px;
}

.dataTables_wrapper .dataTables_info {
	float:left;
	margin:0;
	clear:none;
	margin:0 0 15px 0;
	width:50%;
	box-sizing:border-box;
	padding:0;
	line-height: 29px;
}

.dataTables_wrapper .dataTables_filter {
	float:right;
	clear:none;
	width:50%;
	margin:0 0 15px 0;
	box-sizing:border-box;
	padding:0;
}

.dataTables_wrapper .dataTables_filter input {
	padding:5px;
}

.dataTables_wrapper .dataTables_length select  {
	padding:2px 3px;
}

table.dataTable thead th,
table.dataTable thead td {
  padding: 10px 18px;
  border-bottom: 1px solid #BCBEC0;
  text-align:left;
}

table.dt tbody .clickable:hover {
	cursor: pointer;
	cursor: hand;
}

/* Form validation
==================================================================   */
/* Validation error styles */
.error-label {
    color: #dc3545;
    font-size: 0.875rem;
    /* margin-top: 0.25rem; */
    display: block;
}

.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.is-valid {
    border-color: #28a745 !important;
}

/* Style for error message with link */
.error-label a {
    color: #dc3545;
    text-decoration: underline;
    font-weight: 600;
}

.error-label a:hover {
    color: #a02622;
}

/* Add some breathing room */
/* .half {
    position: relative;
    margin-bottom: 1.5rem;
} */

/* Optional: Add icons for valid/invalid states */
.is-invalid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.is-valid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2328a745' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

/* ============================ Footer ============================ */
footer {
  background: #ececec;
  border-bottom: 1px #dadfe5 solid;
  padding: 10px 0;
  font-size: 12px;
}

#main-footer .content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  width: 100%;
}

#main-footer .content-wrapper #terms {
  text-align:right;
}

/* ============================ Responsive Design ============================ */
@media (max-width: 768px) {
  .half {
    flex: 1 1 100%;
    padding: 1.5rem;
  }

  .download-controls {
    flex-direction: column;
    align-items: stretch;
  }

  #selected-count {
    margin-left: 0;
    text-align: center;
  }

  .download-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .file-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .sections-container {
    gap: 1rem;
  }

  .half {
    padding: 1rem;
  }

  .half input[type="submit"] {
    width: 100%;
  }

  .password-form-card {
    padding: 1.5rem;
  }
}