@import url("./icons-fonts.css");

@font-face {
  font-family: "EuclidCircularARegular";
  src: local("EuclidCircularARegular"),
    url("../fonts/EuclidCircularARegular.ttf") format("truetype");
  font-weight: normal;
}

@font-face {
  font-family: "EuclidCircularABold";
  src: local("EuclidCircularABold"),
    url("../fonts/EuclidCircularABold.ttf") format("truetype");
  font-weight: bold;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  box-shadow: 0 0 0px 1000px white inset;
  -webkit-text-fill-color: #000;
  /* Text color */
}

body,
body * {
  font-family: "Roboto", sans-serif;
}

::highlight(search) {
  background-color: yellow;
  color: black;
}

.EuclidCircularARegular {
  font-family: "EuclidCircularARegular" !important;
}

.EuclidCircularABold {
  font-family: "EuclidCircularABold" !important;
}

/* Auth layout */
.app-header {
  background-color: #fff !important;
  box-shadow: none !important;
  color: #000 !important;
  justify-content: space-between;
  width: 100%;
}

#app-header-logo {
  aspect-ratio: 5.244;
  clear: both;
  float: left;
  height: 100%;
  max-width: 260px;
  width: 100%;
}

@media screen and (max-width: 1500px) {
  #app-header-logo {
    max-width: 180px;
  }
}

.auth-layout-wrapper {
  margin: 0;
  width: 100vw;
}

.auth-layout-side-picture {
  background-size: cover;
  background-position: top right;
  background-image: url("/images/common/picture-with-phone.png");
  background-repeat: no-repeat;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  left: 0;
  top: 0;
  width: 35%;
}

.auth-layout-content {
  display: flex;
  margin-left: 35%;
  min-height: 100vh;
  width: 65%;
}

.auth-layout-header {
  background-color: #fff;
  position: fixed;
  width: 65%;
  z-index: 100;
}

.auth-layout-language-select.MuiInputBase-root fieldset {
  border: 0 !important;
}

.auth-layout-stepper .auth-layout-inner-content {
  padding-top: 190px;
}

.auth-layout-inner-content {
  flex-grow: 1;
  padding-top: 90px;
  width: 100%;
}

.auth-layout-inner-content.no-header {
  padding-top: 24px;
}

.auth-layout-footer {
  background-color: #fff !important;
  padding: 0 !important;
}

@media screen and (max-width: 1200px) {
  .auth-layout-side-picture {
    display: none;
  }

  .auth-layout-content {
    margin-left: 0;
    width: 100%;
  }

  .auth-layout-header {
    width: 100%;
  }

  .auth-layout-inner-content {
    padding-top: 60px;
    min-height: calc(100vh - 52px);
  }

  .auth-layout-wizzard-steps .MuiStepLabel-label {
    font-size: 0.8rem;
  }
}

/* Pricing plans */
.periodSelector {
  background-color: #622874;
  border-radius: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem;
  margin-bottom: 2.5rem;
}

.periodSelectorItem {
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
}

.periodSelectorItem.active {
  background-color: #fff;
  border-radius: 2rem;
  color: #622874;
}

.pricingPlans {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  flex: 1;
  width: 100%;
}

.pricingPlan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  box-shadow: 0px -1px 5px 2px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 10px;
  margin-right: 1rem;
  position: relative;
}

.pricingPlan.recommended {
  border: 1px solid #8630d1;
}

.pricingPlan:last-child {
  margin-right: 0;
}

.pricingPlanName {
  color: #000;
  font-family: "Roboto";
  font-weight: 700;
  font-size: 2rem;
  line-height: 2rem;
  text-align: center;
  text-transform: uppercase;
  margin: 1rem 0;
}

.pricingPlanTag {
  color: #fff;
  font-family: "Roboto";
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
  background: #8630d1;
  padding: 5px 15px;
  border-radius: 17px;
  position: absolute;
  top: -17px;
}

.pricingPlanSaveAbsolute {
  color: #fff;
  font-family: "Roboto";
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
  background: #ff0f8c;
  padding: 5px 15px;
  border-radius: 5px;
  margin-bottom: 0.5rem;
}

.pricingPlanPrice {
  color: #000;
  font-family: "Roboto";
  font-weight: 700;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.3rem;
  text-align: center;
}

.pricingPlanPriceInfo {
  color: #707070;
  font-size: 0.8rem;
  line-height: 1.2rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.pricingPlanFeatures {
  padding: 0;
  margin: 0;
  color: #000;
  font-size: 0.8rem;
  line-height: 1.5rem;
  text-align: center;
}

.pricingPlanFeatures li {
  text-align: center;
  width: 100%;
}

.pricingPlanButton {
  margin: 1.2rem 0;
}

.pricingPlanDiscountInfo {
  color: #ff0f8c;
  font-size: 0.8rem;
  font-weight: 700;
}

/*
 * === Chonky Grid View Name Truncation ===
 * This CSS targets the file name in grid view to limit it to 2 lines
 * while always keeping the extension visible.
 */

/* 1. Set up the main name container */
[class*="gridFileEntryName-"] {
  /* This is the container for both the base name and the extension span */
  position: relative;
  /* Crucial for positioning the extension inside it */
  display: block;
  /* Make it a block to control its height */

  /* Define the height for exactly two lines */
  line-height: 1.3em;
  /* Adjust if your font-size/line-height differs */
  max-height: 2.6em;
  /* This is the key: line-height * 2 lines */

  overflow: hidden;
  /* Hide any text that flows beyond the max-height */

  /* Helps break very long file names that don't have spaces */
  word-break: break-all;

  /* VERY IMPORTANT: Create space on the right for the extension to live */
  /* You may need to adjust this value based on the longest expected extension */
  padding-right: 45px;
}

/* 2. Position the extension at the end */
[class*="chonky-file-entry-description-title-extension"] {
  position: absolute;
  /* Take the extension out of the normal text flow */
  bottom: 0;
  /* Pin it to the bottom of the container */
  right: 0;
  /* Pin it to the right of the container */

  /* IMPORTANT: Match this to your file entry's background color! */
  /* This creates a clean look by hiding any text that might be under the extension. */
  background-color: white;

  /* Add a little space to the left of the extension */
  padding-left: 2px;
}

/* 3. Add the "..." ellipsis using a pseudo-element */
[class*="gridFileEntryName-"]::after {
  content: "...";
  font-weight: bold;
  position: absolute;
  bottom: 0;

  /* Position the ellipsis right before the extension starts. */
  /* This value should be the same as the parent's padding-right. */
  right: 20px;

  /* Same as above: Match this to your file entry's background color */
  background-color: white;
  padding: 0 4px;
  /* Give it a little horizontal space */
}
