@import url(fonts.css);

/************************variables***********************/

:root {
  /* colors */
  --main-color: #f3f9ff;
  --active-btn: #3b3b3b;
  --deactive-btn: #8d8383;
  --primary-btn: #434a5b;
  --start-btn: #434a5b;
  --primary-red: #c90d0d;
  --text-red: #ff0000;
  --text-gray: #6b6a6a;
  --progress: #29334d;
  --input: #d5d5d5;
  --selected-input: #314c70;
  --white: #ffffff;
  --gray: #f5f5f5;
  --primary-box: #d6dbe1;
  --green: #07dc00;
  --brown: #624141;
  /* fonts */
  --regular-font: "Poppins Regular";
  --bold-font: "Poppins SemiBold";
  --italic-font: "Poppins Italic";
}

/************************styles***********************/

html {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--regular-font);
  font-size: 15px;
  background-color: var(--gray);
  height: auto;
  overflow: hidden;
}
hr{
  width:100%;
  display: none;
}
*,
::after,
::before {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
b {
  font-family: var(--bold-font);
}

h5 {
  display: flex;
  font-size: 14px !important;
}
input[type=number]::-webkit-inner-spin-button {
  opacity: 1; 
}
.borderd-circle {
  width: 15px;
  height: 15px;
  border: 3.5px solid var(--primary-box);
  border-radius: 100%;
  margin-right: 5px;
}

.main {
  margin: 0;
  padding: 0;
  display: flex;
  background-color: var(--main-color);
 /* overflow-x: hidden; /* Prevent horizontal scroll */
  /* width: 100%;
  height: 100vh; */
}

/* sidebar */

.sidebar {
  bottom: 0px;
  top: 0px;
  position: relative; /* Changed from relative to fixed */
  /*width: 230px; /* Added explicit width */
  background-color: var(--white);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 5px 0px 10px -5px #888888;
  z-index: 1;
  padding: 0 1rem;
  display: flex;
  /* flex-flow: column; */
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  max-width: 230px;
}

.content {
  height: 100vh;
  display: flex;
  flex-flow: column;
  flex-grow: 10;
}
.dots-icon {
  width: 15px;
  height: 15px;
  color: #fff;
}
.player {
  background-color: var(--primary-red);
  min-height: 70px;
  font-size: 12px;
  width: calc(100% - 230px); /* Subtract sidebar width */
  bottom: 0;
  position: fixed;
  right: 0;
  left: 230px; /* Match the max-width of sidebar */
  border-top-right-radius: 20px;
  box-shadow: 0px 0px 10px 0px #888888;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem; /* Reduced padding */
  color: #fff;
  transition: left 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  gap: 1rem; /* Add gap between progress bar and button */
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  flex-wrap: nowrap;
  min-width: 400px; /* Ensure minimum usable width */
  max-width: calc(100vw - 230px); /* Prevent overflow beyond viewport */
}

@media only screen and (max-width: 768px) {
  .player {
    left: 0;
    border-radius: 0;
  }
}

@media only screen and (min-width: 1150px) {
  .player {
    font-size: 15px;
  }
}

@media screen and (min-width: 1920px) {
  .player {
    width: calc(100% - 230px);
    padding: 0 2rem;
  }
}

.logo-group {
  margin: 1rem auto;
  font-size: 20px;
}

.logo-group p {
  color: var(--text-gray);
  margin: 0 !important;
  padding-right: 5px;
}

.logo-group span {
  color: var(--text-red);
  font-family: var(--bold-font);
}

.logo-group div {
  display: flex;
  align-items: center;
}

.logo-group img {
  margin-right: 0.5rem;
  width: 68px;
  height: auto;
}

.sidebar-footer {
  color: var(--text-red);
  text-align: center;
}

/* dots */

#titleBar {
  max-width: 100px;
  -webkit-app-region: drag;
  cursor: pointer;
  padding-top: 1rem;
  position: fixed;
  right: 27px;
}

ul.dots {
  display: flex;
  list-style: none;
  -webkit-app-region: drag;
  justify-content: flex-end;
  margin: 0.5rem 0.5rem 0 auto;
  padding: 0;
  z-index: 0  ;
}

ul.dots li {
  width: 15px;
  height: 15px;
  margin: 0.25rem;
  border-radius: 100%;
  -webkit-app-region: no-drag;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: flex;
  padding: 3px;
}

ul.dots li:nth-child(3) {
  background-color: #f05a00;
}

ul.dots li:nth-child(2) {
  background-color: var(--green);
}

ul.dots li:nth-child(1) {
  background-color: #ffa200;
}

/* tabs */

.tabs-container {
      
	  min-height:377px;
  margin: 1rem 2rem 2rem 2rem;
  min-width: 500px; /* Remove fixed min-width */
 
}

.primary-box {
  padding: 14px;
  border-radius: 10px;
  background-color: var(--primary-box);
  max-width: 100%;
  
  height: 85vh;
}
.job-box {
  padding-bottom: 4rem;
}
.addJobModal .primary-box{
  height: fit-content;
  overflow-y: scroll;
}
.addJobModal .jobs{
  height: auto;
}
#tab-regular-settings .primary-box {
  padding: 1px;
  padding-bottom: 1rem;
  overflow-y: auto;
  border-radius: 10px;
  background-color: var(--primary-box);
  max-height: 60%;
}
.primary-box-header {
  background-color: #dce5e6;
  color: #876666;
  border-radius: 30px;
  width: max-content;
  padding: 0.25rem 1.75rem;
  margin: 0.5rem 0.5rem 1rem 2rem;
  box-shadow: 0px 2px 7px -4px #000;
  font-family: var(--bold-font);
  font-size: 13px;
}

.tabs {
  display: none;
}

.tabs.active {
  display: block;
}

.tab-btns {
  list-style: none;
  padding: 0;
}

.tab-btns li {
  border-radius: 20px;
  background-color: var(--deactive-btn);
  color: var(--white);
  margin: 1rem 1rem 1rem 0;
  padding: 0.5rem;
  font-size: 12px;
  width: 200px;
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-btns li .feather {
  opacity: 0.7;
  color: var(--white);
  margin: auto 0.5rem;
  width: 18px;
}

.tab-btns li.active {
  background-color: var(--active-btn);
}

.jobs {
  list-style: none;
  padding: 1rem 10px;
  overflow-y: auto;
  height: 58vh;
  margin: 0rem 1rem 1rem 1rem;
  overflow-wrap: break-word;
  max-width: 100%; /* Changed from 90% */
  overflow-x: hidden;
}

.job {
  border-radius: 30px;
  background-color: #fff;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem 2rem 0.5rem;
  box-shadow: 0px 2px 7px -4px #000;
  font-size: 11px;
}



.job-flat{
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border-radius: 0px;
}

.job a {
  text-decoration: none;
  color: #000;
  overflow-wrap: break-word;
  max-width: 70%;
  display: block;
}

.job-footer span {
  color: var(--deactive-btn);
}

.job .job-footer,
.job-footer > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

 .clock {
  margin: 0 1rem;
  display: flex;
  align-items: center;
  color: var(--deactive-btn);
}

.clock > .feather {
  width: 20px;
  margin-right: 2px;
}

/* job status */

.job-status {
  position: relative;
}

.job-status button {
  border: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  width: 100px;
}

.job-status .feather {
  width: 15px;
  color: var(--text-gray);
  margin-top: 3px;
}

.job-status span {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 100%;
  background-color: var(--deactive-btn);
}

.job-status ul {
  display: none;
  list-style: none;
  border-radius: 10px !important;
  position: absolute;
  left: 8px;
  top: 24px;
  padding: 0;
  background-color: var(--white);
  box-shadow: 0px 0px 5px -3px #000;
  z-index: 10;
}

.job-status ul li {
  padding: 2px 1.5rem 2px 0.5rem;
  display: flex;
  cursor: pointer;
  align-items: center;
}

.job-status ul li:nth-child(2),
.job-status ul li:nth-child(3) {
  border-top: 1px solid #f1f1f1;
}

.job-status ul li .feather {
  color: var(--primary-red);
  margin-right: 5px;
  width: 18px;
 
}

.job-status.active ul {
  display: block;
}

.job-status.running span {
  background-color: var(--green);
}

.card-box {
  background-color: #ffffff;

  margin: 12px 10px 10px 10px;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0px 2px 7px -4px #000;
  font-size: 11px;
}
#IPChangingMode{
  display: none;
}

.card-box h5 {
  font-family: var(--italic-font);
  color: #6a5e5e;
  display: flex;
  align-items: center;
}

.card-box b {
  font-style: normal !important;
  color: var(--brown);
}

.card-box p {
  color: #bfbfbf;
  font-family: var(--italic-font);
  font-size: 13px;
  margin-bottom: 5px;
}

.primary-btn {
  background-color: var(--primary-btn);
  color: #fff;
  font-size: 10px;
  border-radius: 15px;
  border: none;
  padding: 5px 15px;
}

.import-btn {
  color: #fff;
  font-family: var(--bold-font);
  font-size: 10px;
  border-radius: 15px;
  border: none;
  padding: 5px 15px;
  box-shadow: -3px 3px 10px -3px #000;
  width: auto;
  min-width: 110px;
  height: 30px;
  white-space: nowrap;
  margin: -0.5rem 1rem 0.8rem 0.1rem;
}
#add_campaign{
  max-width: 5rem;
}
.btn-red {
  background-color: var(--primary-red);
}

.btn-green{
	background-color: #228c22;
	font-size:13px;
}
.btn-progress {
  background-color: #404040;
}
.btn-main {
  background-color: #7b7461;
}
.player-btn {
  background-color: var(--white);
  color: #000;
  font-size: 12px;
  border-radius: 30px;
  border: none;
  font-family: var(--bold-font);
  padding: 12px 20px;
  box-shadow: -2px 2px 7px 0px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto; /* Changed from fixed width */
  min-width: 180px;
  max-width: 220px;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  position: relative;
  z-index: 101; /* Ensure button stays above other elements */
  position: relative;
  right: 0;
  margin: 0 0 0 auto;
}

.start,
.stop {
  display: none;
}

.stop.active,
.start.active {
  display: flex;
  align-items: center;
}

.player-btn .feather {
  margin-right: 10px;
  width: 20px;
  color: var(--primary-red);
  min-width: 20px;
  margin-right: 8px;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.player-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* radio button */

.radio-container {
  display: block;
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  cursor: pointer;
  font-family: var(--italic-font);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: -2px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 50%;
}

.radio-container:hover input ~ .checkmark {
  background-color: #ccc;
}

.radio-container input:checked ~ .checkmark {
  background-color: var(--active-btn);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.radio-container input:checked ~ .checkmark:after {
  display: block;
}

.radio-container .checkmark:after {
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
}

/* switch button */

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch3 {
  position: relative;
  display: inline-block;
  width: 42px;
  left:430px;
  height: 20px;
}

.switch3 input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sliderz {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.sliderz:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 6px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}


.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 6px;
  bottom: 6px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}


input:checked + .slider {
  background-color: var(--brown);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--brown);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

sliderz.roundz {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
sliderz.roundz:before {
  border-radius: 50%;
}
/* Range Slider */

.range-slider-container {
  width: 100%;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--brown);
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.range-slider:hover {
  opacity: 1;
}

.range-slider::-webkit-slider-thumb {
  border: none;
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: var(--brown);
  cursor: pointer;
  border-radius: 100%;
}

.range-slider::-moz-range-thumb {
  border: none;
  width: 15px;
  height: 15px;
  background: var(--brown);
  cursor: pointer;
  border-radius: 100%;
}

/* radio button btns */

.btn-group {
  border-radius: 30px;
  background-color: transparent;
}

.btn-secondary {
  background-color: var(--input);
}

.btn-secondary:hover {
  background-color: var(--selected-input);
}

.btn-group label:nth-of-type(1) {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  margin-right: -1rem;
}

.btn-group label:nth-of-type(2) {
  border-radius: 30px !important;
  width: 120px;
  display: inline;
  margin-left: -1rem;
  margin-right: -1rem;
}

.btn-group label:nth-of-type(3) {
  border-top-right-radius: 30px !important;
  border-bottom-right-radius: 30px !important;
}

.btn-check:active + .btn-secondary,
.btn-check:checked + .btn-secondary {
  background-color: var(--selected-input);
}

/* radio-panels */

.radio-panel {
  cursor: pointer;
}

.radio-panel .radio-panel-body {
  opacity: 0.4;
  pointer-events: none;
}

.radio-panel.selected .radio-panel-body {
  opacity: 1 !important;
  pointer-events: unset !important;
}

.radio-panel.selected .borderd-circle {
  border-color: var(--selected-input) !important;
}

/*the container must be positioned relative:*/

.custom-select {
  position: relative;
  display: inline-block;
  width:150px;
}

.custom-select-box {
 background-color: white;
    display: flex;
    justify-content: space-between;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    border: 1px solid #cfcfcf;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: inset 4px -5px 13px 0px #e9e9e9;
}
.input-icons i { position: absolute; }
 .input-icons { width: 100%; margin-bottom: 10px; } 
 .icon { padding: 10px; min-width: 40px; }

.custom-select-box span {
  font-family: var(--italic-font);
}

.custom-select-box .feather {
  width: 15px;
  display: flex;
}

.custom-select ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  background-color: var(--input);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border: 1px solid #000;
  position: absolute;
  width: 100%;
  max-height: 102px;
  overflow-y: auto;
  z-index: 999;
}

.custom-select li {
  padding: 0.5rem;
  cursor: pointer;
}

.custom-select li:hover,
.custom-select li.selected {
  background-color: #aaa;
}

.custom-select.open .custom-select-box {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select.open ul {
  display: block;
}

.custom-select.open .icon::before {
  content: "\67" !important;
}

/* progress bar */

.progress-container {
  flex: 1 1 auto;
  width: calc(100% - 240px); /* Account for button width + gap + padding */
  margin: 0;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px; /* Ensure progress bar stays usable */
  max-width: calc(100% - 220px); /* Leave space for button */
}

progress {
  border-radius: 7px;
  border: none;
  width: 100%;
  height: 5px;
  background-color: #5e0202;
  /* margin-left: -11.5%; */
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

progress::-webkit-progress-bar {
  background-color: #5e0202;
  border-radius: 7px;
}

progress::-webkit-progress-value {
  background-color: var(--white);
  border-radius: 7px;
  box-shadow: 1px 1px 5px 3px rgba(0, 0, 0, 0.2);
}

progress::-moz-progress-bar {
  background-color: var(--white);
  border-radius: 7px;
}

progress::-moz-progress-value {
  border-radius: 7px;
}

/* custom checkbox */

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  cursor: pointer;
  font-family: var(--italic-font);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 8px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--active-btn);
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* scroll bar */

/* firefox */

.jobs {
  scrollbar-width: thin !important;
  scrollbar-color: #b8b8b8 transparent !important;
}

:-webkit-scrollbar {
  width: 5px;
  border-radius: 10px;
}

:-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

:-webkit-scrollbar-thumb {
  background-color: #b8b8b8;
  border-radius: 10px;
  border: 3px solid transparent;
}

/* webkit browsers */

::-webkit-scrollbar,
::-webkit-scrollbar-thumb {
  height: 26px;
  border-radius: 13px;
  background-clip: padding-box;
  color: #b8b8b8;
}

::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 0 10px;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8b8b8;
}
#version {
  font-size: 0.8rem;
  font-weight: light;
}
/************************Add Job Modal***********************/
.campagin_actions{
  display:none;
  justify-content:space-between;
}
#addJobModal .primary-box {
  display:none;
}
.addJobModal {
  width: auto; /* Allow modal to be more flexible */
  max-width: min(56rem, calc(100vw - 40px));
  height: auto;
  display: none;
  flex-direction: column;
  position: relative;
  padding-top: 0;
  padding-bottom: 4.5rem;
  overflow-x: hidden;
}
.modal_header {
  background-color: var(--primary-red);
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  width: 100%;
  align-self: center;
  display: flex;
  height: 2rem;
  align-items: center;
  position: relative;
  margin-bottom: 1rem;
  justify-content: center;
}
.modal_header a {
  position: absolute;
  top: 50;
  right: 1rem;
  text-decoration: none;
  color: white;
}
.modal_header p {
  color: white;
  margin-top: 0.8rem;
}
.addJobModal .controls_conteiner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: first baseline;
}
.addJobModal .control_guide_text {
    margin:5px;
}
.addJobModal .custom-select {
  margin: 1rem 0.5rem;
  width:150px;
}
.textInput {
  border-radius: 4px;
  background-color: white;
  padding-left: 1.5rem;
  height: 42px;
  width: 24rem;
  margin: 16px;
  border: solid 1px #c7c7c7;
}

#addJobKeyword {
  width: 15rem;
  display: none;
}
.activerandom{
	float:left;
}

.forbox{
    background-color: #f6f8fa;
    border-radius: 6px;
    font-weight: 600;
    color: #24292f;
    height: auto;
    min-height: 61px;
    border: 1px solid #d0d7de;
    padding: 16px;
    transition: border-color 0.15s ease-in-out;
    margin-bottom: 0;
}

.forbox:has(#aiAgent:checked) {
    border-color: #0969da;
    background: linear-gradient(45deg, #f6f8fa, #f0f6fc);
    animation: subtle-pulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.forbox:has(#aiAgent:checked) .activerandom {
    color: #0969da;
    transition: color 0.3s ease;
}

.forbox + .row3,
.forbox + .row5 {
    margin-top: 2px;
    padding-top: 16px;
    border-radius: 0 0 6px 6px;
    border-top: none;
}

.forbox:has(#randomAct:checked) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid rgba(9, 105, 218, 0.2);
    margin-bottom: 0;
}

.forbox:has(#randomAct:checked) + .row3 {
    display: flex;
    border: 1px solid #d0d7de;
    border-top: none;
    background: #fff;
    margin-bottom: 2px;
}

.row5 {
    border: 1px solid #d0d7de;
    border-top: none;
    background: #fff;
    padding: 16px;
    border-radius: 0 0 6px 6px;
    margin-bottom: 20px;
}

/* Adjust AI Agent spacing */
.forbox:has(#aiAgent) {
    margin-top: 24px;
}

.extra_checkboxes{
  display: inline-block;
      width: 100%;
	 
  justify-content: space-between;
}
.controlpanel{
	    display: flex;
   
}
.row2{
	margin-top:10px;
}
.addJobModal_viewSources {
  display: flex;
      padding: 17px;
    border-radius: 8px;
    box-shadow: inset 20px -8px 16px 1px #fff7f799;
  flex-direction: row;
  width: auto;
  justify-content: unset;
  flex-wrap: wrap;
  min-width: 0;
}
.addJobModal_viewSources label {
  margin-right: 0.5rem;
      margin-left: 12px;
}
.randomActCheckbox {
	
    float: right;
  /* display: block;
  position: absolute; */
  /* bottom: 102px;
  right: 81px; */
}
.randomActCheckbox_Bottom {
  bottom: 70px;
}
.addJobModal .plus,
.addJobModal .minus {
  border: 1px solid var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding: 0.6rem 1.2rem;
}
.addJobModal .minus {
  border: 1px solid var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding: 0.6rem 1.2rem;
}
.addJobModal .row3 {
  display: none;
  flex-direction: column;
  justify-content: center;
}
.row5 {
  display: none;
}
.addJobModal .row4 {
  display: flex;
      margin-left: 10px;
  justify-content: center;
  align-items: center;

}
.addJobModal .row3 span {
  font-weight: bold;
}

.addJobModal .row3 div {
  display: flex;
  border: 1px solid #f7f7f761;
    box-shadow: -7px 5px 13px 1px #dddddd42;
    border-radius: 5px;
    padding: 9px;

	margin-bottom:8px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.addJobModal .row3 #addJobKeyword {
  width: 20rem;
  display: block;
  margin-left: -10rem;
}
.addJobModal .row3 label {
  margin-top: 1rem;
  margin-left: 1rem;
}
.spin_Guide {
  font-size: 0.8rem;
  font-weight: 100;
  letter-spacing: 1.5px;
}

.wan-spinner {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  border:none!important;
  
}

.wan-spinner.agent-timeout-spinner button {
    border: 1px solid #d0d7de;
    background-color: #f6f8fa;
    color: #24292f;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 14px;
    line-height: 20px;
    transition: background-color 0.15s ease-in-out;
}

.wan-spinner.agent-timeout-spinner button:hover {
    background-color: #eaeef2;
}

.wan-spinner.agent-timeout-spinner button:active {
    background-color: #dfe5eb;
}

#duration_To{
	width: 115px!important;
    border-radius: 5px;
    height: 41px;
    border: 1px solid #d9d9d9;
    margin-left: 15px;
}
#duration_From{
	width: 110px!important;
    border-radius: 5px;
    height: 41px;
    border: 1px solid #d9d9d9;
    margin-left: 15px;
}
#chance{
	width: 110px!important;
    border-radius: 5px;
    height: 41px;
    border: 1px solid #d9d9d9;
    margin-left: 5px;
    margin-top : -2px;
}
#jobCount{
width: 115px!important;
    border-radius: 5px;
    height: 41px;
    border: 1px solid #d9d9d9;
    margin-left: 15px;
}
.job_index{
  margin-left:1rem;
}
#addJobModal .modal_footer {
  position: relative;
  bottom: -3.5rem;
  background-color: white!important;
    width: 100%;
    border-radius: 10px;
    height: 90px;
    box-shadow: -2px 0px 20px 6px #e3e3e3;
}
.modal_footer {
  position: relative;
  bottom: -3.5rem;
  background-color: white!important;
    width: 100%;
    border-radius: 10px;
    height: 81px;
    box-shadow: -2px 0px 20px 6px #e3e3e3;
}
#fileImport {

  left: 0;
}
#addJob {
position: relative;
    float: left;
    top: 34px;
	box-shadow: 0px 0px 0px 0px white;
    height: 41px;
	width: 145px;
		font-size:13px;
    border-radius: 6px;
    right: -20px;
    cursor: pointer;
}
.addJobModal .import-btn {
position: relative;
    float: right;
	box-shadow: 0px 0px 0px 0px white;
    top: 34px;

    height: 41px;
	width: 155px;
    border-radius: 6px;
    right: -1px;
}
#addJobModal .row1,#addJobModal .row2{
  display: flex;
  align-items: baseline;
  flex-direction: column;
}

#addCommentsModal .import-btn,
#addAccountsModal .import-btn {
	position: relative;
    float: left;
    top: 34px;
    box-shadow: 0px 0px 0px 0px white;
    height: 41px;
    width: 145px;
    font-size: 13px;
    border-radius: 6px;
    right: -20px;

}

#addCommentsModal,
#addAccountsModal {
  padding-top: 0;
  width: 48rem;
  height: 29.5rem;
  display: none;
  align-self: center;
  max-width: none;
}
#addAccountsModal {
  height: 31rem;
}
#addAccountsModal .controls_conteiner{
  width: 370%;
}

#addCommentsModal .row1,
#addAccountsModal .row1 {
  display: flex;
  flex-direction: row;
}
#addCommentsModal #Comments,
#addAccountsModal #Accounts {
  /* padding: 0.6rem; */
  width: 70%;
}
.comment_box_shadow {
  -webkit-box-shadow: 0px 3px 8px -1px rgba(0, 0, 0, 0.23);
  -moz-box-shadow: 0px 3px 8px -1px rgba(0, 0, 0, 0.23);
  box-shadow: 0px 3px 8px -1px rgba(0, 0, 0, 0.23);
  border: none;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
}
.comment_list_name {
  width: 100%;
  padding: 12px;
  margin-top: 1rem;
}
.comment_list_container {
  display: flex;
  width: 29%;
  height: 12rem;
  align-items: flex-start;
  padding-top: 0.5rem;
  overflow: scroll;
  scrollbar-width: thin !important;
  scrollbar-color: #b8b8b8 transparent !important;
  margin-left: 0.5rem;
}
.account_list_container {
  display: flex;
  width: 120%;
  height: 18rem;
  align-items: flex-start;

  padding-top: 0.5rem;
  overflow: scroll;
  scrollbar-width: thin !important;
  scrollbar-color: #b8b8b8 transparent !important;
  margin-left: 0.5rem;
}
#account_list{
  width:95%;
}

.comment_list_container ul {
  width: 100%;
  height:100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem;
}
.comment_list_container ul li {
  list-style-type: none;
  display: flex;
  font-size: 14px;
  color: gray;
  font-weight: normal;
  justify-content: space-between;
}
.account_list_item {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: 1rem;
  background-color: rgb(207, 206, 206);
  width: 100%;
}
.account_list_item_container {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.account_list_item_container div {
   margin-top: -1rem;
  margin-left: 1rem;
}

.trash_icon {
      color: #f64747;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  
}
#commentFileImport {
  position: absolute;
  right: 33.5rem;
}
#addComment,
#addAccount {
  position: absolute;
  right: -1rem;
}
.header_container {
  align-items: center;
  vertical-align: middle;
}
#loopJobsUI {
  vertical-align: middle;
  margin-bottom: 1.2rem;
}
#loopJobsUI svg {
  margin-left: 0.4rem;
}
#tab-ip-switching {
 top:0px;
  
    /* padding: 1px; */
  display:block;
    bottom: 100px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}


input.toggle {
  visibility: hidden;
}
input.toggle + label {
  width: 4rem;
  border-radius: 4rem;
  visibility: visible;
}
input.toggle + label:hover {
  cursor: pointer;
}
input.toggle:disabled + label:before {
  background-color: rgba(0, 0, 0, 0.1);
}
input.toggle:disabled + label:before.dark, .dark input.toggle:disabled + label:before {
  background-color: rgba(255, 255, 255, 0.075);
}
input.toggle:disabled + label:after {
  background-color: #F5F5F5;
  box-shadow: 0 0.1rem 0.1rem 0rem rgba(0, 0, 0, 0.2);
}
input.toggle:disabled + label:after.dark, .dark input.toggle:disabled + label:after {
  background-color: #464646;
}

input.toggle + label:before,
input.toggle + label:after {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  content: "";
}

input.toggle + label:before {
  right: 1rem;
  left: 0.5rem;
  top: 0.8rem;
  bottom: 1.8rem;
  border-radius: 5rem;
  transition: background 0.3s;
  background-color: rgba(0, 0, 0, 0.2);
}
input.toggle + label:before.dark, .dark input.toggle + label:before {
  background-color: rgba(255, 255, 255, 0.2);
}

input.toggle + label:after {
    width: 34px;
    height: 34px;
    top: 6px;
  left: 0.3rem;
  background-color: #fff;
  border-radius: 100%;
  box-shadow: 0 0.1rem 0.25rem 0rem rgba(0, 0, 0, 0.3);
  -webkit-transition: all 0.3s cubic-bezier(0.915, 0.01, 0.075, 0.995);
  -moz-transition: all 0.3s cubic-bezier(0.915, 0.01, 0.075, 0.995);
  -o-transition: all 0.3s cubic-bezier(0.915, 0.01, 0.075, 0.995);
  transition: all 0.3s cubic-bezier(0.915, 0.01, 0.075, 0.995);
}
input.toggle + label:after.dark, .dark input.toggle + label:after {
  background-color: #b4b4b4;
}

input.toggle:checked + label:before {
  background-color: #4abc90;
  opacity: 0.5;
}

input.toggle:checked + label:after {
  background-color: #4abc90;
  margin-left: 3rem;
  box-shadow: none;
}

input.checkbox,
input.radio {
  display: none;
}

input.checkbox + label,
input.radio + label {
  display: inline-block;
  line-height: 1.7;
  position: relative;
  padding: calc(1.8rem - 1.8rem * 0.54) 0 0.5rem calc(1.8rem + 1rem);
  min-height: 1.8rem;
}
input.checkbox + label:hover,
input.radio + label:hover {
  cursor: pointer;
}

input.checkbox + label:before,
input.radio + label:before {
  content: "";
  height: 1.8rem;
  width: 1.8rem;
  position: absolute;
  left: 0.2rem;
  top: 0.7rem;
  background-repeat: no-repeat;
}

input.radio[disabled] + label:before,
input.checkbox[disabled] + label:before {
  opacity: 0.5;
}

input.radio[disabled] + label,
input.checkbox[disabled] + label {
  color: rgba(0, 0, 0, 0.3);
}

input.checkbox:checked + label:before {
  background: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzRBQkI4RiIgZD0iTTIwLDI0SDRjLTIuMiwwLTQtMS44LTQtNFY0YzAtMi4yLDEuOC00LDQtNGgxNmMyLjIsMCw0LDEuOCw0LDR2MTZDMjQsMjIuMiwyMi4yLDI0LDIwLDI0eiIvPgo8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMjAuNiw1LjdjLTAuNS0wLjUtMS4zLTAuNS0xLjgsMEw5LDE1LjVsLTIuNC0zLjJjLTAuNC0wLjYtMS4zLTAuNy0xLjgtMC4yaDBjLTAuNiwwLjQtMC43LDEuMy0wLjIsMS44CglsMy4zLDQuM2MwLjEsMC4yLDAuMywwLjMsMC41LDAuNGMwLDAsMCwwLDAsMGMwLjEsMCwwLjEsMCwwLjIsMC4xYzAsMCwwLDAsMC4xLDBjMCwwLDAuMSwwLDAuMSwwYzAsMCwwLjEsMCwwLjEsMGMwLDAsMC4xLDAsMC4xLDAKCWMwLjEsMCwwLjEsMCwwLjIsMGMwLDAsMCwwLDAuMSwwYzAuMSwwLDAuMSwwLDAuMi0wLjFjMCwwLDAsMCwwLDBjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjJMMjAuNiw3LjVDMjEuMSw3LDIxLjEsNi4yLDIwLjYsNS43eiIvPgo8L3N2Zz4=);
}

input.checkbox + label:before {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8ZyBvcGFjaXR5PSIwLjQ4Ij4KCQk8cGF0aCBmaWxsPSIjQkJCREJGIiBkPSJNMjAsMEg0QzEuOCwwLDAsMS44LDAsNHYxNmMwLDIuMiwxLjgsNCw0LDRoMTZjMi4yLDAsNC0xLjgsNC00VjRDMjQsMS44LDIyLjIsMCwyMCwweiBNMjEsMTkKCQkJYzAsMS4xLTAuOSwyLTIsMkg1Yy0xLjEsMC0yLTAuOS0yLTJWNWMwLTEuMSwwLjktMiwyLTJoMTRjMS4xLDAsMiwwLjksMiwyVjE5eiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPg==);
}

input.radio:checked + label:before {
  background: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8cGF0aCBvcGFjaXR5PSIwLjQ4IiBmaWxsPSIjMkE5OTc3IiBkPSJNMTIsMEM1LjQsMCwwLDUuNCwwLDEyYzAsNi42LDUuNCwxMiwxMiwxMnMxMi01LjQsMTItMTJDMjQsNS40LDE4LjYsMCwxMiwweiBNMTIsMjIKCQlDNi41LDIyLDIsMTcuNSwyLDEyQzIsNi41LDYuNSwyLDEyLDJzMTAsNC41LDEwLDEwQzIyLDE3LjUsMTcuNSwyMiwxMiwyMnoiLz4KPC9nPgo8Y2lyY2xlIGZpbGw9IiM0QUJCOEYiIGN4PSIxMiIgY3k9IjEyIiByPSI4Ii8+Cjwvc3ZnPg==);
}

input.radio + label:before {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGNpcmNsZSBvcGFjaXR5PSIwLjQ4IiBmaWxsPSIjQkJCREJGIiBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiLz4KPC9zdmc+);
}



.accordion {
  width: 95%;
  max-width: 1000px;
  margin: 2rem auto;
}
.accordion-item {
     background-color: white;
  color: #111;
  margin: 1rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.25);
}
.accordion-item-header {
  padding: 0.5rem 3rem 0.5rem 1rem;
  height: 2rem;
  line-height: 1.25rem;
  font-weight: bold;
  display: flex;
  position: relative;
  cursor: pointer;
}
.accordion-item-header::after {
  content: "\002B";
  font-size: 2rem;
  display:none;
  position: absolute;
  right: 1rem;
}
.accordion-item-header.active::after {
  content: "\2212";
}
.accordion-item-body {
  max-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  transition: max-height 0.2s ease-out;
}
.accordion-item-body-content {
  padding: 1rem;
  line-height: 1.5rem;
  border-top: 1px solid;
  border-image: linear-gradient(to right, transparent, #34495e, transparent) 1;
}

.btn-danger{
	border-radius:5px!important;
	color:#ccc!important;
	background:none!important;
	    box-shadow: none!important;
		    margin-left: 344px;
	
}

.fa-trash{
	font-size:20px;
}
.controls_guide_text{
	text-align:center;
}
.alert {

  width: 100%;
  border-radius: 4px;
  background: #ccc;
  border: 1px solid #777;
  display: flex;
  margin-bottom: 20px;
}
.alert:before {
  content: "";
  width: 144px;
  position: relative;
  z-index: 999;
  background-color: #777;
  background-repeat: no-repeat;
  background-position: center 16px;
  background-size: 30px;
}

.alert-content {
  padding-left: 15px;
}

.alert-title {
  margin: 0;
  margin-bottom: 3px;
  font-size: 14.5px;
  padding: 0;
}

.alert-body p {
     margin-top: 4px;
    font-size: 13.5px;
}

.alert-warning {
  background-color: #fff9f0;
  border-color: #ffc848;
}
.alert-warning:before {
	background-size: contain;
    background-position: unset;
 background-color: #fff9f0;
    background-image: url(../download.svg);
      background-position: center;
}
.alert-warning .alert-title {
  color: #d19c20;
}


@media(max-width:767px) {
  html {
    font-size: 14px;
  }
}
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.uppercase {
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  background: transparent;
  color: inherit;
  font: inherit;
  border: 0;
  outline: 0;
  padding: 0;
  transition: all 200ms ease-in;
  cursor: pointer;
}
.btn--primary {
	    float: left;
  background: #c90d0d;
      margin-right: -33px;
  color: #fff;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 9px 32px;
    margin-top: 10px;
}
.btn--primary:hover {
  background: #6c7ff2;
}
.btn--primary:active {
  background: #7f8ff4;
  box-shadow: inset 0 0 10px 2px rgba(0, 0, 0, 0.2);
}
.btn--inside {
	    position: relative;
}

.form__field {
  width: 360px;
  background: rgb(240, 236, 236);
  color: #525252;
  border-radius: 0.4rem;
  font: inherit;
  /* box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.1); */
  border: 0;
  outline: 0;
  padding: 0.7rem;
}
.btn:hover{
color:white!important;	
}

#campaignName{
  padding: 0.5rem;
  font-size:0.7rem;
  margin-left: 1.3rem;
}

#notifictionModal{
  display: none;
  margin: 0;
  padding: 0;
  overflow-y: scroll;
  min-width: auto; /* Remove fixed min-width */
  max-width: calc(100vw - 280px);
  margin-top: 10px;
 text-align: center;
}
#notification_content_wrapper{
  padding: 1rem;
  height: auto;
  text-align: center;
}
#notification_content_wrapper img{
  width: 100%;
  height: auto;
}

#btnExternalBrowser{
  margin-top: 0.5rem;
}
#UIVersion{
 font-size: 0.8rem;
 font-weight: lighter;
  
}
/************************responsive***********************/

@media only screen and (min-width: 1150px) {
  h5,
  .card-box h5 {
    font-size: 20px !important;
  }
  .primary-btn,
  .tab-btns li,
  .player,
  .jobs li.job a,
  .custom-select-box {
    font-size: 15px;
  }
  .player {
    width: 100%;
  }
}

/* Enhanced AI Agent Styles with better transitions */
.ai-agent-controls {
    padding: 24px;
    background: linear-gradient(to bottom right, #f6f8fa, #ffffff);
    border: 1px solid #d0d7de;
    border-radius: 8px;
    margin-top: 15px;
    width: 100%;
    color: #24292f;
    transform-origin: top;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
}

.ai-agent-controls.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.ai-agent-controls textarea {
    background-color: #ffffff;
    color: #24292f;
    font-size: 14px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    box-shadow: 
        0 1px 2px rgba(31, 35, 40, 0.075),
        0 0 0 1px rgba(9, 105, 218, 0) inset;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
    line-height: 1.5;
    min-height: 120px;
    width: calc(100% - 2px);
    margin: 8px 0 16px 0;
    resize: vertical;
}

.ai-agent-controls textarea:focus {
    border-color: transparent;
    outline: none;
    box-shadow: 
        0 0 0 1px rgba(9, 105, 218, 0.3),
        0 0 0 3px rgba(9, 105, 218, 0.1),
        0 0 15px rgba(9, 105, 218, 0.1) inset;
    animation: ai-glow 2s infinite ease-in-out;
}

.ai-agent-controls.focused {
    border-color: #0969da;
    background: linear-gradient(to bottom right, #f6f8fa, #ffffff);
    box-shadow: 0 3px 10px rgba(9, 105, 218, 0.1);
    background: linear-gradient(135deg, #f6f8fa, #ffffff, #f0f6fc);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes subtle-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(9, 105, 218, 0.1);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(9, 105, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(9, 105, 218, 0);
    }
}

.forbox:has(#aiAgent:checked) {
    border-color: #0969da;
    background: linear-gradient(45deg, #f6f8fa, #f0f6fc);
    animation: subtle-pulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.forbox:has(#aiAgent:checked) + .ai-agent-controls {
    opacity: 1;
    max-height: 500px;
}

/* Additional AI Agent refinements */
.ai-agent-controls.focused {
    border-color: #0969da;
    background: linear-gradient(to bottom right, #f6f8fa, #ffffff);
    box-shadow: 0 3px 10px rgba(9, 105, 218, 0.1);
}

.ai-agent-controls .agent-timeout-spinner {
    background: #ffffff;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(31, 35, 40, 0.05);
}

.ai-agent-controls .agent-timeout-spinner input:focus {
    box-shadow: 
        0 0 0 1px rgba(9, 105, 218, 0.3),
        0 0 0 3px rgba(9, 105, 218, 0.1);
    border-color: #0969da;
}

.ai-agent-controls .controls_guide_text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #24292f;
    font-size: 13px;
}

.ai-agent-controls .controls_guide_text::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #0969da;
    border-radius: 50%;
}

/* Smooth hover states */
.forbox:hover {
    border-color: #0969da;
    transition: all 0.2s ease;
}

.forbox .activerandom {
    transition: color 0.2s ease;
}

.forbox:hover .activerandom {
    color: #0969da;
}

/* Modern scrollbar for textarea */
.ai-agent-controls textarea::-webkit-scrollbar {
    width: 8px;
}

.ai-agent-controls textarea::-webkit-scrollbar-track {
    background: #f6f8fa;
    border-radius: 4px;
}

.ai-agent-controls textarea::-webkit-scrollbar-thumb {
    background: #d0d7de;
    border-radius: 4px;
    border: 2px solid #f6f8fa;
}

.ai-agent-controls textarea::-webkit-scrollbar-thumb:hover {
    background: #afb8c1;
}

/* Timeout spinner animation */
@keyframes spinner-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(9, 105, 218, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 4px rgba(9, 105, 218, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(9, 105, 218, 0);
    }
}

.agent-timeout-spinner.value-changed {
    animation: spinner-pulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-agent-controls .agent-timeout-spinner {
    position: relative;
}

.ai-agent-controls .agent-timeout-spinner::after {
    content: "s";
    position: absolute;
    right: -20px;
    color: #57606a;
    font-weight: 500;
    opacity: 0.8;
}

@keyframes ai-glow {
    0% {
        box-shadow: 
            0 0 0 1px rgba(9, 105, 218, 0.3),
            0 0 0 3px rgba(9, 105, 218, 0.1),
            0 0 15px rgba(9, 105, 218, 0.1) inset;
    }
    50% {
        box-shadow: 
            0 0 0 1px rgba(9, 105, 218, 0.3),
            0 0 0 3px rgba(9, 105, 218, 0.1),
            0 0 25px rgba(52, 168, 239, 0.15) inset;
    }
    100% {
        box-shadow: 
            0 0 0 1px rgba(9, 105, 218, 0.3),
            0 0 0 3px rgba(9, 105, 218, 0.1),
            0 0 15px rgba(9, 105, 218, 0.1) inset;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.ai-agent-controls .wan-spinner button {
    border: 1px solid #d0d7de;
    background: linear-gradient(to bottom, #f6f8fa, #f3f6fa);
    color: #0969da;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.ai-agent-controls .wan-spinner button:hover {
    background: linear-gradient(to bottom, #f3f6fa, #e7eef7);
    border-color: #0969da;
}

.ai-agent-controls .wan-spinner button:active {
    background: #e7eef7;
    transform: scale(0.97);
}

.ai-agent-controls .wan-spinner input {
    margin: 0 8px;
    text-align: center;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.ai-agent-controls .wan-spinner {
    padding: 4px;
    border-radius: 8px;
    background: rgba(9, 105, 218, 0.03);
    display: inline-flex;
    align-items: center;
}

/* Add visual separation between Random Act and AI Agent sections */
.forbox:has(#aiAgent) {
    margin-top: 32px;
    position: relative;
}

.forbox:has(#aiAgent)::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(208, 215, 222, 0.7) 20%, 
        rgba(208, 215, 222, 0.7) 80%, 
        transparent
    );
}

/* Improve transitions for random act sections */
.row3:not(.ai-agent-controls),
.row5 {
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.row3:not(.ai-agent-controls).visible,
.row5.visible {
    opacity: 1;
    transform: translateY(0);
}

/* agent timing radio controls */
.agent-timing-controls {
    display: flex;
    gap: 16px;
}

.agent-timing-controls .radio-container {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    color: #24292f;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.agent-timing-controls .radio-container:hover {
    color: #0969da;
}

.agent-timing-controls .radio-container input:checked ~ .checkmark {
    background-color: #0969da;
    border-color: #0969da;
}

.agent-timing-controls .radio-container input:checked ~ .checkmark:after {
    background: #fff;
}

.player .progress-container + .player-btn {
  margin-left: auto;
  min-width: 200px; /* Ensure minimum width for the button */
  flex-shrink: 0; /* Prevent button from shrinking */
}


/* Update modal styles */
#updateModal {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  background: white;
  padding: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 632px;
  position: relative;
}

#updateModal .modal-header {
  background-color: var(--primary-red);
  color: white;
  padding: 15px 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

#updateModal .modal-header h3 {
  margin: 0;
  font-size: 18px;
}

#updateModal .close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

#updateModal .modal-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

#updateModal .modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: white;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  flex-shrink: 0;
}

.btn-cancel {
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
  margin-right: 10px;
}

.btn-cancel:hover {
  background-color: #5a6268;
}

.update-instructions {
  margin-bottom: 15px;
}

.update-instructions p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.update-list-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fff;
}

#update_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.update-divider {
  height: 1px;
  background: #eee;
  margin: 0;
  list-style: none;
}

.select-all-item {
  background-color: #f8f9fa;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.update-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.update-item:hover {
  background-color: #f9f9f9;
}

.update-item:last-child {
  border-bottom: none;
}

.update-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.update-header input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.update-header label {
  font-weight: bold;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  margin-bottom: 0;
}

.update-details p {
  margin: 5px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
  font-size: 12px;
  color: #888;
}

.update-progress-container {
  margin-top: 15px;
  display: none;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12px;
  color: #333;
}

.progress-bar {
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-red) 0%, #ff8c8c 100%);
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s ease;
}

#downloadUpdate {
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

#downloadUpdate:hover {
  background-color: #a30a0a;
}

#downloadUpdate:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#checkForUpdates {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#checkForUpdates svg {
  width: 16px;
  height: 16px;
}

/* Responsive adjustments for update modal */
@media (max-width: 600px) {
  #updateModal {
    width: 95%;
    max-width: none;
  }
  
  .update-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  #updateModal .modal-content {
    padding: 15px;
    max-height: 60vh;
  }
  
  .update-header label {
    font-size: 14px;
  }
  
  .update-details p {
    font-size: 13px;
  }
}

/* Update modal installed items styling */
.update-item.installed {
  background-color: #f8f9fa;
  opacity: 0.85;
}

.update-item.installed .update-header label {
  color: #6c757d;
}

.installation-status {
  color: #28a745;
  font-size: 13px;
  margin-left: 8px;
}

.installed-date {
  color: #28a745;
  font-weight: 500;
}

.update-item.installed .update-details p {
  color: #6c757d;
}

.update-item.installed input[type="checkbox"] {
  opacity: 0.5;
}

/* Update the Select All UI to be more clear */
.select-all-item label strong {
  margin-right: 8px;
}

/* Adding proper transitions to installed items */
.update-item {
  transition: opacity 0.2s ease, background-color 0.2s ease;
}


