body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #EDEEF0;
    color: #333;
    display: flex;
    justify-content: center;
}

.container {
    width: 896px;
    margin: 0 auto;
    padding-top: 150px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 150px;
}

.box {
    background-color: #FFFFFF;
    border: 1px solid #0288d1;
    border-radius: 8px;
    padding: 0px;
    width: 48%;
    box-shadow: 0px 2px 28px rgba(25, 45, 63, 0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h2 {
    color: #192D3F;
    text-align: center;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #0288d1;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f1f1f1;
}

.logo {
    max-width: 178.32px;
    height: 64px;
    position: absolute;
    top: 20px;
    left: 0px;
    z-index: 1000;
}

#file-contents {
    max-height: 300px;
    overflow: auto;
    white-space: nowrap;
}

/* Login Page Styles */
body.login-background {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("/static/back.jpeg") no-repeat center center fixed;
    background-size: cover;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container img.login-logo {
    width: 222.91px;
    height: 80px;
    margin-bottom: 20px;
}

.login-container h2 {
    margin-bottom: 20px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.login-container button {
    width: 100%;
    height: 50px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #192D3F;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Montserrat', Arial, sans-serif;
}

.login-container button:hover {
    background-color: #1b4b72;
}

/* CSS */
.logout-button {
  appearance: none;
  background-color: #000000;
  border: 2px solid #1A1A1A;
  border-radius: 15px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  margin: 0;
  min-height: 60px;
  min-width: 0;
  outline: none;
  padding: 16px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
  will-change: transform;
}

.logout-button:disabled {
  pointer-events: none;
}

.logout-button:hover {
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
}

.logout-button:active {
  box-shadow: none;
  transform: translateY(0);
}

/* Next Button Styles */
.next-button {
    width: 48px;
    height: 15px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    color: #192D3F;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.top-right p {
    display: inline-block;
    margin-right: 10px;
}

.upload-section, .upload-history, .last-upload-preview, .transform-file, .file-transfer, .transform-history, .sftp-history, .last-file-preview, .processed-files {
    width: 100%;
    padding: 20px;
    padding-top: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    position: relative;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
}

.upload-section h2, .upload-history h2, .last-upload-preview h2, .transform-file h2, .file-transfer h2, .transform-history h2, .sftp-history h2, .last-file-preview h2, .processed-files h2{
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-style: normal;
    font-size: 24px;
    font-weight: 600;
    line-height: 30.62px;
    text-align: center;
    background-color: #EDEEF0;
    padding: 10px 20px;
    border-radius: 8px;
}

table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    font-size: 12px;
}

th, td {
    padding: 3px;
    border: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    background-color: #f2f2f2;
    color: #333;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.file-preview {
    max-width: 100%;
    max-height: 500px;
    overflow: auto;
    border: 1px solid #ddd;
    margin-top: 10px;
    margin-bottom: 10px;
}

.flash-message {
    color: rgb(95, 62, 226);
    margin-bottom: 20px;
}

.progress-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.progress {
    width: 50%;
    border-radius: 5px;
    background-color: #f2f2f2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
}

.progress-bar {
    width: 0%;
    height: 20px;
    border-radius: 5px;
    background-color: #192D3F;
    background-image: linear-gradient(to right, #192D3F, #314E67);
    text-align: center;
    color: white;
    line-height: 20px;
    transition: width 0.3s ease;
}

.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.transfer-file-to-sftp, .transfer-file-to-sftp-transformed, .transform-file-form{
    width: 100%;
    display: flex;
    justify-content: space-between;
}
select{
    padding: 0.5rem;
    width:24rem;
}
label{
    padding: 0.5rem;
    min-width: 9rem;
}

/* CSS */
.primary-button {
  border: 1px solid #222222;
  border-radius: 8px;
  box-sizing: border-box;
  color: #222222;
  cursor: pointer;
  display: inline-block;
  font-family: Circular,-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  outline: none;
  padding: 13px 23px;
  position: relative;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: box-shadow .2s,-ms-transform .1s,-webkit-transform .1s,transform .1s;
  user-select: none;
  -webkit-user-select: none;
  width: auto;
}

.primary-button:focus-visible {
  box-shadow: #222222 0 0 0 2px, rgba(255, 255, 255, 0.8) 0 0 0 4px;
  transition: box-shadow .2s;
}

.primary-button:active {
  background-color: #F7F7F7;
  border-color: #000000;
  transform: scale(.96);
}

.primary-button:disabled {
  border-color: #DDDDDD;
  color: #DDDDDD;
  cursor: not-allowed;
  opacity: 1;
}

.secondary-button {
  background-color: #222;
  border-radius: 4px;
  border-style: none;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: "Farfetch Basis","Helvetica Neue",Arial,sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  max-width: none;
  min-height: 44px;
  min-width: 10px;
  outline: none;
  overflow: hidden;
  padding: 9px 20px 8px;
  position: relative;
  text-align: center;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
}

.secondary-button:hover,
.secondary-button:focus {
  opacity: .75;
}

.upload-section-fixed {
    position:fixed;
    bottom: 0;
    width: 100%;
    background-color: #FFF;
}