/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
@import url("https://fonts.googleapis.com/css2?family=Secular+One&display=swap");
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --success: #10b981;
  --success-dark: #059669;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.linkTrans {
  transition: all 0.3s ease;
}
.linkTrans:hover {
  opacity: 0.8;
}

.header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}
@media screen and (max-width: 767px) {
  .header {
    flex-direction: column;
    padding: 1.5rem 2rem;
  }
}

.header h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 120%;
  transition: all 0.2s ease;
}
.header h1:hover {
  opacity: 0.8;
}
.header h1 a {
  color: inherit;
  text-decoration: none;
}

.logo-container {
  position: absolute;
  top: 1rem;
  left: 2rem;
  transition: all 0.2s ease;
}
@media screen and (max-width: 767px) {
  .logo-container {
    position: relative;
    top: unset;
    left: unset;
  }
}
.logo-container:hover {
  opacity: 0.8;
}

.nycu-logo {
  height: 40px;
}
@media screen and (max-width: 767px) {
  .nycu-logo {
    height: 25px;
    margin-bottom: 5px;
  }
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  width: 90%;
  position: relative;
}

.welcome-text {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.welcome-text.bottom-have-text {
  margin-bottom: 20px !important;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.now-exec-job {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: black;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}
.now-exec-job-name {
  color: rgba(164, 14, 14, 0.857);
  font-size: 1.7rem;
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type=text],
input[type=password],
input[type=number],
input[type=email],
input[type=tel],
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=email]:focus,
input[type=tel]:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  flex: 1;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: var(--danger-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.choice-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.choice-card {
  flex: 1;
  min-width: 200px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  text-decoration: none;
}

.choice-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.ilt-card {
  flex: unset;
  width: calc(50% - 20px);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media screen and (max-width: 767px) {
  .ilt-card {
    width: 100%;
  }
}
.ilt-card .choice-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  width: 150px;
  height: 135px;
}
.ilt-card .choice-icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.ilt-card .choice-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: inherit !important;
  text-decoration: none;
}

.choice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.ilt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.choice-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  text-decoration: none;
}

.section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--secondary);
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-name {
  flex: 1;
  padding: 0.5rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-btn {
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Improved back and action buttons */
.back-btn {
  width: 100px;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.6rem;
  background-color: rgba(0, 0, 0, 0.499);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.back-btn:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.back-icon {
  font-size: 1.2rem;
}

/* Enhanced Jobs button */
.jobs-btn {
  width: 100px;
  justify-content: center;
  display: flex;
  padding: 0.6rem 1.2rem;
  background-color: #ffab00;
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  text-decoration: none;
}

.jobs-btn:hover {
  background-color: rgba(255, 149, 0, 0.6);
}

.jobs-icon {
  font-size: 1.2rem;
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

/* Login page specific styles */
.login-form {
  max-width: 500px;
  margin: 0 auto;
}

.login-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
}

.logout-card {
  background-color: #fee2e2;
  border-color: #fecaca;
}

.logout-card .choice-icon {
  color: var(--danger);
}

.logout-card:hover {
  border-color: var(--danger);
}

/* Acknowledgment section */
.acknowledgment {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nstc-logo {
  max-width: 250px;
  margin-top: 0.5rem;
}

#login-page {
  display: block;
}

/* Set width for spacer to create balanced header */
.header-spacer {
  width: 100px;
}

.siteLang {
  width: 120px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  display: flex;
  position: absolute;
  right: 10px;
  bottom: 10px;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .siteLang {
    transform: scale(0.8);
    right: 0;
    bottom: unset;
    top: 10px;
  }
}
.siteLang-logo {
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  z-index: 2;
  transition: all 0.5s ease;
  transform: rotate(180deg);
}
.siteLang-logo img {
  width: 26.67px !important;
  height: 26.67px !important;
}
.siteLang-logo.active {
  transform: rotate(90deg);
}
.siteLang-line {
  position: absolute;
  width: 50px;
  height: 50px;
  left: -10px;
  top: -7.5px;
  border: 1px solid gray;
  z-index: 1;
  border-radius: 50px;
  background-color: rgb(255, 255, 255);
}
.siteLang-option {
  display: flex;
  color: black;
  font-size: 13px;
  width: 100%;
  padding: 0 5px 0 5px;
  position: relative;
  z-index: 0;
  cursor: pointer;
}
.siteLang-option-name {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1px;
  z-index: 2;
  transition: all 0.3s ease;
}
.siteLang-option-name:hover {
  color: #2563eb;
}
.siteLang-option-bg {
  position: absolute;
  top: 0;
  left: -18px;
  height: 100%;
  width: 62px;
  z-index: 1;
  background-color: rgba(160, 80, 235, 0.4);
  border-radius: 27px;
  transition: all 0.5s ease;
}
.siteLang-option-bg.ToEng {
  width: 44px;
  transform: translateX(57px);
}

.pick-btn {
  font-size: 18px;
  padding: 8px 6px 4px 6px;
  border: 1px solid black;
  display: inline-block;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-top: 10px;
  cursor: pointer;
}
.pick-btn:hover {
  background-color: rgba(128, 128, 128, 0.209);
  color: red;
}

.selectRegionShowBox {
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  padding: 20px;
  justify-content: center;
  align-items: center;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}
.selectRegionShowBox.show {
  opacity: 1;
  pointer-events: auto;
}
.selectRegionShowBox-wrap {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 90%;
  background-color: white;
  border: 2px solid gray;
}
.selectRegionShowBox-closeBtn {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 10px;
  right: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.selectRegionShowBox-closeBtn:hover {
  transform: scale(0.85);
}
.selectRegionShowBox iframe {
  width: 100%;
  height: 100%;
}

.adv-settings {
  width: 100%;
  max-height: 40px;
  transition: all 0.5s ease;
  overflow: hidden;
}

.adv-settings.show {
  max-height: 500px;
}

.adv-settings-title {
  cursor: pointer;
  transition: all 0.2s ease;
}

.adv-settings-title:hover {
  background-color: rgba(128, 128, 128, 0.5);
}

.loading_mask {
  width: 100%;
  position: absolute;
  height: 100%;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}
.loading_mask.active {
  opacity: 1;
  pointer-events: auto;
}
.loading_mask_wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  font-size: 20px;
}
.loading_mask_wd-2 {
  width: 100%;
  max-width: 500px;
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  color: rgba(203, 7, 7, 0.8);
}

.job-table {
  width: 100%;
  border-collapse: collapse;
}
.job-table tr:hover{
  background-color:rgba(224, 221, 255, 0.69) !important;
}
.job-table .errorJob {
  background-color: rgba(242, 42, 42, 0.7) !important;
}
.job-table .errorJob.hide {
  display: none;
}
.job-table .succJob {
  background-color: rgba(0, 128, 0, 0.7) !important;
}


.job-table th,
.job-table td {
  border: 1px solid #a39d9d;
  padding: 8px;
  text-align: left;
}

.job-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.job-table tr{
  transition: all .2s ease;
}

.job-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.job-table tr:nth-child(odd) {
  background-color: rgba(157, 157, 157, 0.0470588235);
}

.job-table a {
  color: rgba(18, 18, 227, 0.765);
  text-decoration: underline;
  transition: all 0.2s ease;
}
.job-table a:hover {
  opacity: 0.8;
}

.prw_result {
  width: 100%;
}
.prw_result .prw_result_wrap {
  width: 100%;
  max-width: 800px;
  background-color: rgba(86, 84, 81, 0.2);
  padding: 20px 20px;
  border: 1px solid black;
}
.prw_result .images_container {
  width: 100%;
}
.prw_result .images_container a {
  cursor: pointer;
}
.prw_result .images_container_row {
  margin-bottom: 30px;
  max-height: 48px;
  overflow: hidden;
  transition: all 0.6s ease;
}
.prw_result .images_container_row.active {
  max-height: 1000px;
}
.prw_result .images_container_row_title {
  font-size: 28px;
  padding: 10px 20px;
  position: relative;
  background-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}
.prw_result .images_container_row_title:hover {
  background-color: rgba(0, 0, 255, 0.1);
  border-radius: 10px;
}
.prw_result .images_container_row_title::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 5px;
  width: 8px;
  height: 8px;
  display: block;
  background-color: red;
}
.prw_result .images_container img {
  width: 100%;
}

.adv-settings{
  width: 100%;
  max-height: 40px;
  transition: all .5s ease;
  overflow: hidden;
}


.adv-settings.show{
  max-height: 700px;
}
.adv-settings-title{
  cursor: pointer;
  transition: all .2s ease;
}
.adv-settings-title:hover{
  background-color: rgba(128, 128, 128, 0.5);
}

.show-delete{
  width: 100%;
  height:100%;
  position: absolute;
  top:0;
  left:0;
  opacity:0;
  pointer-events :none;
  transition: all .3s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 999;
}
.show-delete.show{
  opacity:1;
  pointer-events :auto;
}
.show-delete-inner{
  width:100%;
  max-width: 500px;
  padding:30px;
  background: #eee4e4;
  border-radius: 20px;
  z-index: 999;
}
.show-delete-inner-title{
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid black;
    margin-bottom: 20px;
}
.show-delete-id{
  font-size: 28px;
  color:red;
}
.show-delete-inner-p{
  font-size: 20px;
  line-height: 130%;
}
.show-delete-confirm{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:20px;
}
.show-delete-confirm button{
  padding:5px;
  font-size:18px;
  cursor:pointer;
}
#configs-table th, #configs-table td{
  padding: 10px;
  border: 1px solid gray;
}
.choose_config{
  cursor: pointer;
}
.choose_config_title{
  font-weight: 500;
  margin-bottom: 10px;
  transition: all .2s ease;
  padding: 10px;
}
.choose_config_wrap{
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 0;
  transition: all .3s ease;
  overflow: hidden;
}
.choose_config_item{
  width: 100%;
  padding: 7px;
  border-bottom: 0.1px solid gray;
  transition: all .2s ease;
  cursor: pointer;
}
.choose_config_item:hover{
  background-color: #a39d9dbf;
}
.choose_config:hover .choose_config_wrap{
  max-height: 400px;
}
.choose_config_title:hover {
  background-color: rgba(128, 128, 128, 0.5);
}
