.centered-field-container{
  display: flex;
  justify-content: center;
}

.big-input-field{
  font-size: 1.5rem;
  /* border: none; */
  color: #797979;
  border: 1px solid #797979;
  /* background-color: #797979; */
  padding: .8rem 0rem;
  width: 100%;
  text-align: center;
}

@media only screen and (min-width: 1200px){
  .big-input-field{
    width: 600px;
  }
}

.big-button{
  font-size: 1.5rem;
  padding: .8rem 2.4rem;
  text-align: center;
  margin-top: .4rem;
  margin-bottom: 2rem;
  width: 600px;
}

.ghost-button{
  background-color: #fafafa;
  padding: .4rem 4rem;
  border-radius: .2rem;

  border: 2px solid var(--primary-color);
  font-family: Roboto;
  font-size: 1rem;
  color: var(--grey-2);
  &:hover{
    background-color: var(--primary-color);
    cursor: pointer;
    color: #ffffff;
  }
}

.primary-shaded{
  background-color: var(--primary-color);
  color: #efefef;
  border: #797979;
  &:hover{
    background-color: #c21057e2;
    cursor: pointer;
  }
}

.qube-button{
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: .5rem;
  color: white;
  font-size: 1rem;
  padding: .5rem 1rem;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  /* &:hover{
   background-color: scale-color($primary-color, $lightness: 10%); 
  }  */
}

.inline-button{
  display: inline;
  color: var(--primary-color);
  background: linear-gradient(to right, var(--primary-color), var(--primary-color)) no-repeat right;
  background-size: 0% auto;

  transition: background-size 0.3s, background-position 0s;

  &:hover {
    background-size: 100% auto;
    background-position: left;
    color: #efefef;
  }
  /* &:hover{
    background-color: #797979;
  } */
}

.inline-button-padding{
  padding: .2rem .4rem;
}

.text-field{
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  width: 100%;
  padding: .5rem;
  margin-bottom: 1rem;
  outline: none;
  border: 1px solid #a4a4a4; 
}

.title-field{
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  width: 100%;
  padding: .5rem;
  margin-bottom: 1rem;
  border: none;
  outline: none;
  border-bottom: 1px solid #a4a4a4;
}

.textarea-field{
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  width: 100%;
  padding: .2rem;
  margin-bottom: 1rem;
  border: 1px solid #a4a4a4; 
}

.large-textarea-field-with-border{
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  width: 100%;
  min-height: 400px;
  padding: .5rem;
  margin-bottom: 1rem;
  border: 1px solid #a4a4a4; 
  outline: none;
}


.large-textarea-field{
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  width: 100%;
  min-height: 400px;
  padding: .5rem;
  margin-bottom: 1rem;
  border: none;
  outline: none;
}

.small-textarea-field-with-border{
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  width: 100%;
  min-height: 200px;
  padding: .5rem;
  margin-bottom: 1rem;
  border: 1px solid #a4a4a4; 
  outline: none;
}

.small-textarea-field{
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  width: 100%;
  min-height: 200px;
  padding: .5rem;
  margin-bottom: 1rem;
  border: none;
  outline: none;
}

.writing-area{
  width: 100%;
  background-color: #ffffff;
  padding: 1rem .5rem .5rem .5rem;
}

.status-bar{
  padding: .2rem .4rem;
  background-color: #cfcfcf;
}

.create-button{
  background-color: #f2f2f2;
  padding: .2rem 1rem;
  border-radius: .1rem;
  border: 1px solid #d0d0d0;
  font-family: Roboto;
  font-size: 1rem;
  color: var(--grey-2);
  &:hover{
    background-color: #e4e4e4;
  }

}

.background-grey{
  background-color: #7e7e7e;
}

.background-blue{
  background-color: #2196F3; /* Example Material Blue */
}

.material-button {
  /* Positioning and Layout */
  position: relative; /* Required for the ripple effect */
  display: inline-block;
  overflow: hidden; /* Clips the ripple effect to the button's bounds */

  /* Box Model */
  padding: 10px 24px;
  border: none;
  border-radius: 4px;

  /* Typography */
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.25px;

  /* Style and Interaction */
  cursor: pointer;
  outline: none;
  
  /* Shadow for elevation effect */
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 
              0 3px 1px -2px rgba(0,0,0,0.12), 
              0 1px 5px 0 rgba(0,0,0,0.2);
  
  /* Smooth transition for hover effects */
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* On hover, increase the elevation */
.material-button:hover {
  box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 
              0 1px 10px 0 rgba(0,0,0,0.12), 
              0 2px 4px -1px rgba(0,0,0,0.2);
}

/* The element that creates the ripple */
.material-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

/* The active state triggers the ripple animation */
.material-button:active::after {
  transform: translate(-50%, -50%) scale(100);
  opacity: 1;
  transition: transform 0s, opacity 0s; /* Reset instantly for next click */
}

/* Ensure the button text appears above the ripple effect */
.material-button span {
  position: relative;
  z-index: 1;
}

/* Container for the text box */
.material-textbox {
  position: relative;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Common styles for both input and textarea */
.material-textbox input,
.material-textbox textarea {
  width: 100%;
  padding: 10px 0 5px 0;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  border: none;
  border-bottom: 1px solid #9e9e9e;
  outline: none;
  background-color: transparent; /* Add this to ensure label isn't hidden */
  position: relative; /* Ensure input is on top of the label initially */
  z-index: 1;
}

.material-textbox textarea {
  resize: vertical;
  min-height: 50px;
}

.material-textbox label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 16px;
  color: #9e9e9e;
  pointer-events: none;
  transition: all 0.2s ease-out;
  z-index: 0; /* Position label behind the input text */
}

.material-textbox .focus-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #2196F3;
  transition: all 0.2s ease-out;
  z-index: 2;
}

/* === Animation States (The Fix is Here) === */

/* When the input is in focus OR is not showing the placeholder, move the label up */
.material-textbox input:focus ~ label,
.material-textbox input:not(:placeholder-shown) ~ label,
.material-textbox textarea:focus ~ label,
.material-textbox textarea:not(:placeholder-shown) ~ label {
  top: -15px;
  font-size: 1rem;
  color: #2196F3;
}

/* When the input/textarea is in focus, expand the focus line */
.material-textbox input:focus ~ .focus-line,
.material-textbox textarea:focus ~ .focus-line {
  width: 100%;
  left: 0;
}

.position-relative{
  position: relative;
}

.absolute-top-right{
  position: absolute;
  top: .5rem;
  right: .5rem;
}

.absolute-bottom-right{
  position: absolute;
  bottom: .5rem;
  right: .5rem;
}

/* -- The main container for the checkbox -- */
.material-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  color: #333;
  /* Prevents text selection on repeated clicks */
  user-select: none; 
}

/* -- Hide the default browser checkbox -- */
.material-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* -- The custom checkbox box -- */
.checkmark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  border: 2px solid #6c757d; /* Grey border for unchecked state */
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* -- Style the checkmark when the input is checked -- */
.material-checkbox input:checked ~ .checkmark {
  background-color: #0d6efd; /* Blue background for checked state */
  border-color: #0d6efd;
}

/* -- Create the checkmark icon using a pseudo-element -- */
.checkmark::after {
  content: "";
  position: absolute;
  display: none; /* Hide by default */
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  /* The "magic" to create a checkmark shape */
  transform: rotate(45deg); 
}

/* -- Show the checkmark icon when the checkbox is checked -- */
.material-checkbox input:checked ~ .checkmark::after {
  display: block;
}

/* == STATES == */

/* -- 1. Hover State -- */
/* Add a subtle background color on hover for better UX */
.material-checkbox:hover .checkmark {
  background-color: rgba(0, 0, 0, 0.05);
}
.material-checkbox input:checked:hover ~ .checkmark {
   background-color: #0b5ed7; /* Darker blue on hover when checked */
}

/* -- 2. Focus State (for accessibility) -- */
/* Add a "focus ring" when the user tabs to the checkbox */
.material-checkbox input:focus-visible ~ .checkmark {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* -- 3. Disabled State -- */
.material-checkbox.disabled {
  cursor: not-allowed;
  color: #adb5bd; /* Muted text color */
}
.material-checkbox.disabled .checkmark {
  border-color: #ced4da;
  background-color: #e9ecef;
}
.material-checkbox.disabled input:checked ~ .checkmark {
  border-color: #ced4da;
  background-color: #ced4da;
}


/* ... keep all your existing styles for forms ... */


/* -- ADD THESE RULES FOR READ-ONLY/SHOW VIEWS -- */

/* Apply checked styles to the box when the parent has .is-checked */
.material-checkbox.is-checked .checkmark {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Show the checkmark icon when the parent has .is-checked */
.material-checkbox.is-checked .checkmark::after {
  display: block;
}