@import "common.css";

@font-face {
  font-family: 'EuclidCircular';
  src: url('../fonts/EuclidCircularB-Medium.otf')
}

/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */
/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  overflow-y: auto;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */
.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
* {
  box-sizing: border-box;
}

html,
body {
  font-family: 'EuclidCircular' !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  overflow-x: hidden;
  height: 100%; /* Added this to contain everything within the viewport */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  font-family: 'EuclidCircular' !important;
  margin-top: 0;
}

a {
  text-decoration: none;
  transition: .27s ease-in-out;
}

a:hover {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  background: none;
  border: none;
}

main {
  flex: 1; /* Make main element take up all available space */
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  display: flex;
  min-height: 100vh; /* Keep this as 100vh to ensure full viewport height */
  overflow: hidden;
}

/* Forms */
label {
  color: #fff;
  display: block;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 12px;
}

label i {
  display: inline-block;
  background: url("../img/arrow-down-color.svg") no-repeat;
  background-size: 100% 100%;
  width: 10px;
  height: 10px;
  margin-left: 5px;
  position: relative;
  top: 0;
}

input {
  border: 1px solid #353D4F;
  color: #fff;
  background: #252C3D;
  font-family: 'EuclidCircular' !important;
  height: 45px;
  border-radius: 5px;
  padding: 0 10px;
  font-size: 16px;
  width: 100%;
  display: block;
  /* box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); */
  box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.6);
  transition: all .25s ease-in-out;
}

input:focus,
input:active {
  border: 1px solid #10D5A6;
  outline: none;
}

textarea {
  font-family: 'Courier New';
  border-radius: 5px;
  border: 1px solid #353D4F;
  color: #fff;
  background: #252C3D;
  display: block;
  box-shadow: 0px 0px 3px 2px rgba(0, 0, 0, 0.40);
  min-height: 400px;
  width: 100%;
  resize: none;
  padding: 10px 15px 0 10px;
}

.btn-dashboard {
  display: block;
  color: #fff;
  background: #10D5A6;
  font-size: 18px;
  border: none;
  font-weight: 500;
  height: 43px;
  width: 170px;
  text-align: center;
  border-radius: 5px;
  transition: .25s ease-in-out;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.btn-dashboard:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(16, 213, 166, 0.45);
}

.btn-dashboard--fullwidth {
  width: 100%;
}

.form-group {
  position: relative;
  margin-bottom: 31px;
}

.form-buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.form-buttons button {
  margin: 0 12px;
}

@media (max-width: 1440px) {

  label,
  .btn-dashboard {
    font-size: 16px;
  }

  .btn-dashboard {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .form-buttons {
    flex-wrap: wrap;
  }

  .form-buttons button {
    margin-bottom: 15px;
  }
}

/* Dasboard */
.page-left-side {
  background: #2a2e3f;
  flex-basis: 100%;
  padding-right: 30px;
  display: flex; /* Added to enable flex layout */
  flex-direction: column; /* Stack children vertically */
}

/*------------- HEADER --------------*/
.page-header {
  padding: 12px 0 12px 32px;
  width: 100%;
  z-index: 1000;
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header__logo {
  max-width: 44px;
}

.page-header__logo img {
  width: 100%;
}

.page-header__content {
  display: flex;
  align-items: center;
}

.page-header .buttons {
  display: flex;
  align-items: center;
  margin-left: 22px;
}

.page-header .logout-link {
  color: #E1E1E1;
  margin-left: 2vw;
  line-height: 1;
  font-size: 18px;
  font-weight: 500;
  position: relative;
  top: -1px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.85)
}

.page-header .logout-link:hover {
  color: #10D5A6;
}

.page-header .header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'EuclidCircular' !important;
  color: #32374D;
  padding: 0 20px;
  font-size: 19px;
  height: 35px;
  white-space: nowrap;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(221, 221, 221, 1) 100%);
  border-radius: 22px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.35);
}

.page-header .header-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(16, 213, 166, 0.45);
}

.page-header .discord-link {
  margin-left: 2vw;
  max-width: 120px;
  margin-top: 3px;
}

.page-header .discord-link img {
  width: 100%;
}

.page-header .discord-link_hover {
  opacity: 0.7;
}

@media (max-width: 1440px) {

  .page-header .logout-link,
  .page-header .header-btn {
    font-size: 16px;
  }
}

@media (max-width: 990px) {
  .page-header {
    padding: 12px 32px 12px 32px;
  }

  .page-header .logout-link {
    margin-left: 3.5vw;
  }

  .page-header .discord-link {
    margin-left: 3.5vw;
  }
}

@media (max-width: 480px) {
  .page-header .logout-link {
    display: block;
    margin-left: 0;
    margin-top: 10px;
  }

  .page-header .header-btn {
    font-size: 15px;
  }

  .page-header .discord-link {
    margin-left: 20px;
    max-width: 100px;
  }

  .page-header {
    height: auto;
    padding: 10px 0;
    margin-bottom: 0;
  }

  .page-header__inner {
    flex-wrap: wrap;
  }

  .page-header .buttons {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-left: 0;
  }

  .page-header__logo {
    display: block;
    max-width: 50px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 10px;
  }

  .page-header__content {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
  }
}

/* Main section */
.page-left-side .content-wrapper {
  background: linear-gradient(to bottom, rgba(34, 40, 57, 1) 0%, rgba(33, 39, 55, 1) 100%);
  border-top-right-radius: 30px;
  flex: 1; /* Make content wrapper expand to fill available space */
  display: flex;
  flex-direction: column;
  padding: 30px 36px 44px 0;
}

.page-left-side .content-badge {
  background: #10D5A6;
  color: #222839;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  width: auto;
  display: inline-block;
  padding: 8px 18px 8px 32px;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  margin-bottom: 12px;
}

.page-left-side .content {
  padding: 25px 0 0 32px;
  display: flex;
}

.page-left-side .content__left {
  padding-right: 27px;
  flex: 1 0 22vw;
  min-width: 200px;
}

.page-left-side .content__right {
  flex-basis: 100%;
}

@media (max-width: 1440px) {
  .page-left-side .content-badge {
    font-size: 20px;
  }
}

@media (max-width: 990px) {
  .page-left-side .content__left {
    flex: 1 0 260px;
  }
}

@media (max-width: 767px) {
  .page-left-side .content {
    flex-flow: wrap;
  }

  .page-left-side .content__left {
    flex: 1 0 100%;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-left-side .content__left {
    flex: 1 0 100%;
    min-width: unset;
  }

  .page-left-side .content {
    padding-left: 15px;
  }

  .page-left-side .content-badge {
    font-size: 16px;
    padding-left: 15px;
  }
}

/* Sidebar */
.page-right-side {
  border-left: 2px solid rgba(0, 0, 0, 0.06);
  /* background: #222839; */
  background: #161a28;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  width: 40vw;
  min-width: 250px;
}

.page-right-side h3 {
  font-size: 22px;
  color: #8A90A1;
  font-weight: 500;
  margin-bottom: 0;
  padding: 27px 0 27px 0;
  line-height: 1;
  text-align: center;
}

.page-right-side .plan-select {
  background: #10D5A6;
  width: 100%;
  padding: 25px 5px 56px 5px;
  border-top-left-radius: 20px;
}

.page-right-side .plan-select__btn {
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  background: #222839;
  border-radius: 20px;
  width: 100%;
  height: 50px;
  display: inline-flex;
  line-height: 1;
  align-items: center;
  padding-left: 25px;
  justify-content: flex-start;
  transition: all .3s ease-in-out;
  position: relative;
  z-index: 3000;
}

.plan-select__btn.is-toggle i {
  transform: rotate(-90deg);
}

.plan-select__dropdown {
  position: relative;
}

.plan-select .dropdown-list {
  display: none;
  background: #313748;
  position: relative;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.45);
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 20px;
  width: 100%;
  padding: 45px 15px 20px 25px;
  z-index: 2000;
  top: -30px;
  margin-bottom: -20px;
}

.plan-select .dropdown-list .dropdown-item {
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  border-radius: 5px;
  margin-bottom: 5px;
}

select.item-select {
  height: 45px;
  width: 100%;
}

.plan-select .dropdown-list .dropdown-item:hover {
  background: #10D5A6;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.35);
}

.page-right-side .plan-select__btn:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
}

.page-right-side .plan-select__btn span {
  position: relative;
  top: -1px;
}

.page-right-side .plan-select__btn i {
  background: url("../img/arrow-down-color.svg") no-repeat;
  background-size: 100% 100%;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 15px;
  transition: transform .25s ease-in-out;
}

@media (max-width: 1440px) {
  .page-right-side {
    width: 35vw;
  }

  .page-right-side .plan-select__btn {
    font-size: 18px;
  }

  .page-right-side .plan-select__btn i {
    margin-right: 13px;
  }

  .page-right-side h3 {
    font-size: 18px;
  }
}

/* Plan Navigation Styles */
.page-right-side .plan-nav {
  background: #10D5A6;
  width: 100%;
  padding: 25px 5px 56px 5px;
  border-top-left-radius: 20px;
}

.plan-nav__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-nav__link {
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  background: #222839;
  border-radius: 15px;
  width: 100%;
  height: 45px;
  display: inline-flex;
  line-height: 1;
  align-items: center;
  padding-left: 25px;
  justify-content: flex-start;
  transition: all .3s ease-in-out;
  text-decoration: none;
  cursor: pointer;
}

.plan-nav__link:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
}

.plan-nav__link--current {
  background: #1a8f6e;
  cursor: default;
  opacity: 0.8;
}

.plan-nav__link--current:hover {
  transform: none;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1440px) {
  .plan-nav__link {
    font-size: 14px;
    height: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 1200px) {
  .plan-nav__link {
    font-size: 13px;
    height: 38px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

.plan-info {
  background: linear-gradient(to bottom, rgba(54, 60, 79, 1) 0%, rgba(22, 26, 40, 1) 100%);
  padding: 25px 2px 44px 25px;
  border-top-left-radius: 30px;
  position: relative;
  z-index: 100;
  color: #fff;
  margin-top: -30px;
  box-shadow: -4px 0 4px rgba(0, 0, 0, 0.1);
  min-height: auto; /* Changed from 'calc(100vh - 100px)' to 'auto' */
}

.plan-info__title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 22px;
}

.plan-info .data-limit {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 18px;
  padding-right: 25px;
}

.data-limit__label {
  margin-bottom: 10px;
}

.data-limit__bar span {
  display: block;
  float: left;
  margin-right: 10px;
}

.data-limit__bar .progress {
  background: #1E2333;
  margin-top: 5px;
  border-radius: 5px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.data-limit__bar .progress-bar {
  background: #10D5A6;
  border-radius: 5px;
}

.status-field {
  min-height: 70px;
}

.status-location {
  border-bottom: 2px solid #393d4e;
  margin-bottom: 2px;
  min-height: 85px;
}

.status-field h5 {
  font-weight: 500;
  font-size: 18px;
  padding-top: 10px;
}

@media (max-width: 1440px) {
  .plan-info .data-limit {
    margin-bottom: 27px;
  }

  .plan-info__title {
    font-size: 20px;
  }

  .status-field {
    min-height: 84px;
  }

  .status-field h5 {
    font-size: 16px;
  }
}

@media (max-width: 990px) {
  .plan-info {
    min-height: unset;
  }
}

@media (max-width: 480px) {
  .plan-info {
    padding-left: 15px;
  }
}

.data-status__date {
  display: flex;
  border-top: 2px solid #393d4e;
  border-bottom: 2px solid #393d4e;
}

.data-status__date .status-field {
  width: 50%;
}

.data-status__date .start {
  border-right: 2px solid #393d4e;
  width: 30%;
}

.data-status__date .end {
  /* text-align: center; */
  padding-left: 4px;
  width: 70%;
}

.data-status__date .end span {
  padding: 0px 1px;
  font-size: 12px;
  letter-spacing: -1px;
  font-weight: 400;
}

.status-text {
  border-bottom: 2px solid #393d4e;
  margin-bottom: 7px;
}

.status-field--no-border {
  border-bottom: 0;
}

.renew, .requestChange {
  padding-right: 13px;
}

.renew h5, .requestChange h5 {
  margin-bottom: 3%;
}

.renew input, .requestChange input {
  background: #313748;
  border: none;
  height: 38px;
}

.renew button, .requestChange button {
  margin: 15px auto 0 auto;
}

@media (max-width: 990px) {
  .page-wrapper {
    flex-wrap: wrap;
  }

  .page-left-side {
    padding-right: 0;
  }

  .page-right-side {
    min-width: 100%;
  }

  .page-left-side .content-wrapper {
    min-height: unset;
    border-top-right-radius: 0;
  }
}

@media (max-width: 480px) {
  .page-left-side .content-wrapper {
    padding-right: 15px;
    padding-bottom: 20px;
  }
}

/* custom select formats */
.item-select-wrapper .select2-container--default .select2-selection--single {
  background: #252C3D;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #353D4F;
  font-family: 'EuclidCircular' !important;
  box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.6);
  height: 45px;
}

.item-select-wrapper .select2-container {
  width: 100% !important;
}

.item-select-wrapper span.select2-selection.select2-selection--single {
  outline: none;
}

.item-select-wrapper .select2-container--open .select2-selection--single {
  border: 1px solid #18D9AA;
}

.item-select-wrapper .select2-selection__arrow {
  display: none;
}

.item-select-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff;
  padding-right: 10px;
  line-height: 45px;
}

.select2-dropdown.dashboard {
  background: #252C3D;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  text-align: left;
  border: 1px solid #353D4F;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.45);
}

.select2-container--default .select2-dropdown.dashboard .select2-results__option[aria-selected=true] {
  background: #18D9AA
}

.select2-container--default .select2-dropdown.dashboard .select2-results__option--highlighted[aria-selected] {
  background: #18D9AA
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

/*
 * Hide visually and from screen readers
 */
.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/
.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/
.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/
.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {

  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " ("attr(href) ")";
  }

  abbr[title]:after {
    content: " ("attr(title) ")";
  }

  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
