/* AITECH Create Proposal Styles */

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 96px;
  max-width: 1320px;
  margin: 0 auto;
  background: #050505;
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    #000000 0%,
    #4e4e4e 35%,
    #4e4e4e 65%,
    #000000 100%
  );
}

.header-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

#proposal-description-editor {
  width: 100%;
  border: none;
}

.drafts-icon {
  width: 48px;
  height: 48px;
  background: url("../assets/icons/drafts-icon.svg") no-repeat center center;
  background-size: contain;
  cursor: pointer;
}

.back-icon {
  width: 48px;
  height: 48px;
  background: url("../assets/icons/back-icon.svg") no-repeat center center;
  background-size: contain;
  cursor: pointer;
}

.back-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 2px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.title {
  font-family: "Darker Grotesque", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 32px;
  color: #ffffff;
}

.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.voting-choice.disabled {
  cursor: not-allowed;
}

.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.publish-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  gap: 8px;
  background: linear-gradient(90deg, #656565 0%, #323232 100%);
  border-radius: 2px 16px;
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  line-height: 18px;
  cursor: pointer;
}

.publish-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.publish-button-mobile.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 64px;
  width: 100%;
  padding: 64px 0;
  opacity: 0;
  animation: pageFadeIn 0.5s ease-in-out forwards;
  will-change: opacity; /* Optimize animation performance */
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Content Container */
.content-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  gap: 80px;
  width: 1320px;
  max-width: 100%;
}

/* Tabs */
.tabs-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  width: 765px;
  height: 629px;
  background: url("../assets/create-proposal.svg") no-repeat center center;
  background-size: contain;
}

.tabs-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  width: 100%;
  height: 117px;
  position: relative;
}

.tab-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  padding: 0 0 0 48px;
  gap: 24px;
  isolation: isolate;
  width: 179px;
  height: 117px;
  position: relative;
  z-index: 1;
}

.tab-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px 0 0;
  isolation: isolate;
  height: 64px;
  cursor: pointer;
  position: relative;
}

.tab-item-text {
  font-weight: 600;
  font-size: 16px;
  line-height: 18px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  transition: color 0.3s ease-in-out;
}

.tab-item.active .tab-item-text {
  color: #ffffff;
}

.tab-item:not(.active) .tab-item-text {
  color: #828282;
}

.tab-line {
  height: 4px;
  width: 60px;
  background: #ffffff;
  box-shadow: 0px 0px 24px rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  position: absolute;
  bottom: 0px;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.tab-item.active .tab-line {
  opacity: 1;
}

.tab-content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 32px 32px;
  gap: 10px;
  width: 100%;
  border-radius: 0 0 24px 24px;
}

/* Form Fields */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 32px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 16px;
  width: 100%;
  position: relative;
}

.form-label {
  font-family: "Darker Grotesque", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 16px;
  text-transform: uppercase;
  color: #ffffff;
  width: 100%;
}

.form-input {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px;
  gap: 12px;
  width: 100%;
  height: 48px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 16px;
  background: transparent;
  color: #d5d5d5;
  font-size: 12px;
  line-height: 16px;
}

.form-input::placeholder {
  color: #d5d5d5;
  font-family: "Roboto Flex";
  font-weight: 400 !important;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0%;
  opacity: 0.37;
}

.form-input:focus {
  outline: none;
}

.form-textarea {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  gap: 16px;
  width: 100%;
  min-height: 224px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 16px;
  background: transparent;
  color: #d5d5d5;
  font-size: 12px;
  line-height: 16px;
  resize: none;
  max-height: 220px;
}

.form-textarea-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  width: 100%;
  height: 16px;
  padding-left: 4px;
}

.char-count {
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: #bababa;
}

.format-tools {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.format-tool {
  width: 16px;
  height: 16px;
  color: #bababa;
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  gap: 32px;
  width: 475px;
  height: 629px;
  background: radial-gradient(
    53.37% 41.92% at 2.56% 0.84%,
    #202020 0%,
    #121212 100%
  );
  border-radius: 24px;
  position: relative;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(321.85deg, #191919 54.88%, #323232 98.51%);
  border-radius: 24px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 16px;
  width: 100%;
  position: relative;
}

.sidebar-title {
  font-family: "Darker Grotesque", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 16px;
  text-transform: uppercase;
  color: #ffffff;
  width: 100%;
}

.dropdown {
  position: relative;
  width: 100%;
}

.dropdown-input {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: 1px solid #323232;
  border-radius: 16px;
  background: transparent;
  color: #828282;
  cursor: pointer;
}

.dropdown-input.active {
  color: #ffffff;
}

.dropdown-text {
  flex-grow: 1;
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
}

.dropdown-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.dropdown-menu {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px;
  gap: 8px;
  position: absolute;
  width: 100%;
  background: #191919;
  border: 1px solid #202020;
  border-radius: 16px;
  z-index: 10;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
}

.dropdown-item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

.dropdown-item.active {
  background: #323232;
  border: 1px solid #404040;
}

.dropdown-item:not(.active) {
  background: #202020;
  border: 1px solid #262626;
}

.dropdown-item-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 10px;
  width: 100%;
}

.dropdown-item-title {
  flex-grow: 1;
  font-size: 14px;
  line-height: 100%;
}

.dropdown-item.active .dropdown-item-title {
  color: #ffffff;
}

.dropdown-item:not(.active) .dropdown-item-title {
  color: #ababab;
}

.dropdown-item-description {
  width: 100%;
  font-size: 12px;
  line-height: 16px;
}

.dropdown-item.active .dropdown-item-description {
  color: #999999;
}

.dropdown-item:not(.active) .dropdown-item-description {
  color: #656565;
}

.check-icon {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dragndrop-icon {
  width: 18px;
  height: 19px;
  background: url("../assets/icons/dragndrop-icon.svg") no-repeat center center;
  background-size: contain;
  cursor: grab;
}

.dropdown-item.active .check-icon {
  opacity: 1;
}

.dropdown-item:not(.active) .check-icon {
  opacity: 0;
}

.dropdown-item:not(.active):hover {
  background: #212121;
  border: 1px solid #404040;
}

/* Choice Inputs */
.choices-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  width: 100%;
  max-height: 160px;
  min-height: 160px;
  overflow-y: auto;
}

.choices-container::-webkit-scrollbar {
  background: transparent;
  width: 4px;
  margin-left: 4px;
}

.choices-container::-webkit-scrollbar-track {
  background: transparent;
}

.choices-container::-webkit-scrollbar-thumb {
  background: #323232;
}

.choice-input-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 8px;
  width: 100%;
}

.choice-input {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  flex-grow: 1;
  height: 48px;
  border: 1px solid #323232;
  border-radius: 16px;
  background: transparent;
  color: white;
}

.choice-input.active {
  color: #ffffff;
}

.choice-action {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  cursor: pointer;
}

.choice-action.delete {
  border: 1px solid #323232;
}

.choice-action.add {
  background: transparent;
}

/* Toggle */
.toggle-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 8px;
  width: 100%;
  height: 24px;
}

.toggle {
  position: relative;
  width: 39.48px;
  height: 24px;
  cursor: pointer;
}

.toggle-bg {
  position: absolute;
  width: 39.48px;
  height: 24px;
  background: #191919;
  border: 1.5px solid #202020;
  border-radius: 12px;
}

.toggle.active .toggle-bg {
  background: #323232;
  border: 1.5px solid #404040;
}

.toggle-knob {
  position: absolute;
  width: 20.9px;
  height: 20.9px;
  left: 1.5px;
  top: 1.5px;
  background: #ffffff;
  box-shadow: 0px 2.32258px 6.19355px rgba(0, 0, 0, 0.15),
    0px 2.32258px 0.774194px rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  transition: left 0.2s ease;
}

.toggle.active .toggle-knob {
  left: 17px;
}

.toggle-label {
  font-size: 14px;
  line-height: 100%;
  color: #ffffff;
}

.toggle-info {
  width: 16px;
  height: 16px;
  color: #4e4e4e;
  cursor: pointer;
}

/* Date Inputs */
.date-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 8px;
  width: 100%;
  position: relative;
}

.date-input {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  flex-grow: 1;
  height: 48px;
  border: 1px solid #323232;
  border-radius: 16px;
  background: transparent;
  position: relative;
}

.date-label {
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  color: #828282;
}

.date-value {
  flex-grow: 1;
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
  height: 15px;
}

.date-value.active {
  color: #ffffff;
}

.date-value:not(.active) {
  color: #828282;
}

.time-input {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 14px;
  width: 69px;
  height: 48px;
  border: 1px solid #323232;
  border-radius: 16px;
  background: transparent;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
}

.time-input:focus {
  outline: none;
}

.time-input.active {
  color: #ffffff;
}

.time-input:not(.active) {
  color: #828282;
}

/* Calendar */
.calendar {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px;
  position: absolute;
  width: 335px;
  background: #191919;
  border: 1px solid #202020;
  border-radius: 16px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.calendar.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.calendar-header {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  width: 100%;
  background: #202020;
  border: 1px solid #262626;
  border-radius: 8px;
  margin-bottom: 8px;
}

.calendar-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.calendar-title-label {
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  color: #ababab;
}

.calendar-title-value {
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  color: #ffffff;
}

.calendar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 40px;
  margin-bottom: 8px;
}

.calendar-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease-in-out;
}

.calendar-arrow:not([disabled]) {
  opacity: 1;
  cursor: pointer;
}

.calendar-arrow[disabled] {
  cursor: not-allowed;
}

.calendar-arrow:not([disabled]):hover {
  opacity: 0.8;
}

.calendar-month {
  flex-grow: 1;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  color: #ababab;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 100%;
}

.calendar-day {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  line-height: 100%;
  color: #656565;
}

.calendar-date {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  line-height: 100%;
  border-radius: 8px;
  cursor: pointer;
}

.calendar-date:hover:not(.empty):not(.disabled) {
  background: #202020;
  border: 1px solid #262626;
  color: #ababab;
}

.calendar-date.empty {
  visibility: hidden;
}

.calendar-date.normal {
  color: #828282;
}

.calendar-date.selected {
  background: #323232;
  border: 1px solid #404040;
  color: #ffffff;
}

.calendar-date.today {
  background: #202020;
  border: 1px solid #262626;
  color: #ababab;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 40px 60px;
  gap: 32px;
  width: 100%;
  background: #000000;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  gap: 88px;
  width: 100%;
  max-width: 1360px;
}

.footer-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 40px;
  flex-grow: 1;
}

.footer-logo {
  width: 180px;
  height: 51.74px;
}

.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 8px;
}

.social-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid #202020;
  border-radius: 8px;
  cursor: pointer;
}

.social-icon {
  width: 24px;
  height: 24px;
  color: #828282;
}

.footer-powered {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 22px;
}

.powered-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  color: #ffffff;
}

.powered-logo {
  width: 144.45px;
  height: 24px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 24px;
  width: 100%;
  max-width: 1360px;
}

.footer-divider {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: 16px;
  width: 100%;
}

.copyright {
  font-size: 12px;
  line-height: 16px;
  color: #828282;
  opacity: 0.6;
  text-align: center;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 16px;
  margin: 0 auto;
}

.footer-link {
  font-size: 12px;
  line-height: 16px;
  text-decoration-line: underline;
  color: #828282;
}

.description-error {
  top: 255px !important;
}

.error-message {
  position: absolute;
  top: 84px;
  left: 10px;
}

/* Review Mode */
.review-content {
  display: none;
}

.review-content.active {
  display: block;
  width: 100%;
}

.review-section {
  margin-bottom: 16px;
}

.review-heading {
  font-family: "Darker Grotesque", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 32px;
  color: #ffffff;
  margin-bottom: 16px;
}

.review-text {
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
}

.publish-button-mobile {
  display: none;
}

/* Responsive */
@media (max-width: 1400px) {
  .header {
    padding: 0 16px;
  }
  .content-container {
    width: 90%;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .header-actions {
    width: unset !important;
  }

  .tabs-container,
  .sidebar {
    width: 100%;
    max-width: 765px;
  }
}

@media (max-width: 842px) {
  .title {
    font-family: "Darker Grotesque";
    font-weight: 600;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0%;
  }
  .main-content {
    padding: 32px 0;
  }

  .tabs-container {
    background: url("../assets/create-proposal-mobile.svg") no-repeat center
      center;
    background-size: contain;
  }

  .publish-button {
    display: none;
  }

  .publish-button-mobile {
    display: block;
    width: 48px;
    height: 48px;
    background: url("../assets/publish-mobile.svg") no-repeat center center;
    background-size: contain;
    cursor: pointer;
    z-index: 10;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 16px;
  }

  .tabs-container,
  .sidebar {
    max-width: 100%;
  }

  .tab-menu {
    padding-left: 24px;
  }

  .tab-content {
    padding: 0 16px 24px;
  }

  .footer {
    padding: 24px 16px;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .footer-main {
    flex-direction: column;
    gap: 16px;
  }

  .calendar {
    width: calc(100vw - 32px);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }
}

/* Tab Content Animation */
.form-container,
.review-content {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: none;
}

.form-container.active {
  opacity: 1;
  display: flex;
}

.review-content.active {
  opacity: 1;
  display: block;
}

/* Initial state */
.form-container {
  display: flex;
  opacity: 1;
}

/* Position start date calendar */
#start-date-input {
  position: relative;
}

#start-date-calendar {
  position: absolute;
  top: calc(100% - 50px);
  left: 0;
  max-width: 100%;
}

/* Position end date calendar */
#end-date-input {
  position: relative;
}

#end-date-calendar {
  position: absolute;
  top: calc(100% + 14px);
  max-width: 100%;
}

.discussion-error {
  top: 80px !important;
}

.has-error {
  border-color: #ff4d4f !important;
}
