/* LOGIN STYLE V2 */



.form-item {
    margin-top: 10px;
    margin-bottom: 10px;
}
.form-caption {
  font-family: "Mulish", sans-serif;
  font-weight: 300;
  color: var(--text-color);
  font-size: 1.0em;
  margin-top: -5px;
}



label {
  font-family: "Mulish", sans-serif;
  font-weight: 500;
  color: var(--text-color);
  font-size: 1.3em;


}





.form-field-error {
  color: red;
  margin-top: -15px;
  margin-bottom: 20px;
  padding-left: 10px;
  padding-bottom: 15px;
  display: none;
}

.form-warning {
  color: green;
  margin-top: -15px;
  margin-bottom: 20px;
  padding-left: 10px;
  padding-bottom: 15px;
  display: none;
}


.form-container {
  width: 80%;
  /*background-color: var(--form-background);*/
  /*border: 1px solid var(--divider-line);*/
  border-radius: 20px;
  max-width: 1000px;
  z-index: 20;
  font-family: "Mulish", sans-serif;
  position: relative;
  padding-top: 130px; /* Adjust this to make room for the floating image */
  margin: auto auto auto auto;
}



/* Media Query for screens under 700px */
@media screen and (max-width: 700px) {
  .form-container {
    /*width: calc(100% - 33px);
    margin-right: 3px;
    margin-left: 3px;*/
    width: calc(100% - 22px) !important;
    margin-right: 0 !important;
    margin-left: 0 ;
    max-width: 600px;
    padding: 10px;
    position: relative;
    /*padding-top: 105px;*/
    padding-bottom: 20px;
  }
}

#featured_image {
  margin-bottom: 8px;
  margin-top: 8px;
  padding: 5px;
  font-size: 1em;
}

#tmb_featured_image {
  margin-bottom: 8px;
  margin-top: 8px;
  padding: 5px;
  font-size: 1em;
}

/* Centering the form vertically on larger screens */
@media screen and (min-width: 701px) {
  /* #form-submission-box {
    display: flex;
    align-items: center;
    justify-content: center;

  } */

  .form-container {
    padding: 30px;
/*
    padding-top: 140px;
*/

  }
}



.confirm-button {
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: var(--emblem-green);
  font-size: 1.3em;
  margin: auto;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
  display: flex;
}

.confirm-button:hover {
  background: var(--emblem-green-over);


}


/*upload*/

.form-item {
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 10px;
    background-color: #00000015;
}

.form-item label,
.form-item input,
.form-item .form-caption {
    padding: 7px;
}



.form-item .form-caption {
    font-size: 0.9em;


}
.input-container {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 10;
}

#location_address {
    width: 100%;
    padding-right: 30px; /* Make space for the spinner */
}



input[type="text"], input[type="name"], input[type="credential"],  input[type="password"], input[type="number"], input[type="email"], input[type="date"] {
  width: 100%;
  padding: 12px 10px;
  margin: 4px 0;
  font-size: 18px !important;
  box-sizing: border-box;
  border: 3px solid var(--button-2-1);
  border-radius: 10px;
  background-color: var(--top-header) !important;
  color: var(--h1);
   border: 2px solid var(--button-2-1) !important;
}

select {
  width: 100%;
/*
  height: 100%;
*/
  padding: 8px 10px;
  margin: 4px 0;
  font-size: 18px !important;
  box-sizing: border-box;
  border: 3px solid var(--button-2-1);
  border-radius: 5px;
  background-color: var(--top-header) !important;
  color: var(--h1);
   border: 2px solid var(--button-2-1) !important;
}


.cal-toggle-status {
  display: none;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--text-color, #1f2937);
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cal-toggle-status.is-visible {
  display: block;
  opacity: 1;
}


/*Form buttons*/


.submit-button {
    padding: 10px 20px;
    border: none;
    color: white;
    transition: background-color 0.3s, cursor 0.3s;
     padding: 10px 20px;
  border: none;
  border-radius: 6px;
   font-size: 1.3em;
}

/* Styles for the disabled state */
.disabled {
    background-color: #444;
    cursor: not-allowed !important;
}

.cancel {
    background-color: grey;
    cursor: pointer;
    color: var(--text-color);
}

/* Styles for the enabled state */
.enabled {
    background-color: var(--button-2-1);
    cursor: pointer;
    padding-right:20px;
    padding-left:20px;
    color: var(--top-header);
}

.cancel:hover {
    background-color: #666;
    cursor: pointer;
    color: var(--top-header);
}

.delete {
    background-color: darkgray;
    cursor: pointer;
    color: white;
}

.delete:hover {
    background-color: red;
    cursor: pointer;
    color: black;
}

.activate {
    background-color: #05b905;
    cursor: pointer;
    color: white;
}

.activate:hover {
    background-color: green;
    cursor: pointer;
    color: white;
}



/* Hover effect for enabled state */
.enabled:hover {
    background-color: var(--button-2-1-over);
    color: var(--text-color);
}

.buwana-login {
    background-color: green;
    cursor: pointer;
    padding-right:20px;
    padding-left:20px;
    margin-bottom:20px;
}

.buwana-login:hover {
    background-color: darkgreen;
}

.underline-link {
color: var(--text-color);
}

.underline-link:hover {
color: var(--h1);
text-decoration: underline;
}


.top-page-image {
    margin-bottom: 70px;
    z-index:35;
    position: absolute;
    text-align: center;
    width: 100%;

  }



.login-greeting {
    font-family: 'Mulish', Arial, Helvetica, sans-serif;
    color: var(--text-color);
}

#sub-status-message {
  margin-top: 0px;
  margin-bottom:0px;
  font-family: 'Mulish', sans-serif;
  color: var(--subdued-text);
  font-weight: 300;
  padding:10px;
  max-width: 760px;
  margin: auto;
  line-height: 1.5em;
  padding-bottom: 20px;
  }

.splash-title-block {
position: relative;
z-index:5;
}

.landing-page-form {
    display:flex;
    flex-direction: column;
    justify-content: space-between;
}

@media screen and (max-width: 700px) {
	.splash-title-block {
        background-color: var(--top-header);
        filter: none !important;
        min-height: 22vh !important;
        height: 22vh !important;
	}

      .top-page-image {
       height: 115px;
       margin-top:100px;

      }

      .login-greeting {
              font-size: 1.9em;
        line-height: 1.3;
        font-weight: 500;
        margin: 10px 0 5px;
        }

  .landing-page-form {
height:100vh;
padding-top:75px;
}

}


@media screen and (min-width: 700px) {
	.splash-title-block {
        background-color: var(--top-header);
        filter: none !important;
        min-height: 22vh !important;
        height: 22vh !important;
}
  .top-page-image {
   height: 170px;
   margin-top:70px;

  }

  .login-greeting {
          font-size: 3em;
        line-height: 1.3;
        font-weight: 500;
        margin: 10px 0 5px;
        }

  .landing-page-form {
height:100vh;
padding-top:55px;
}

}

/*EYE ON AND OFF*/


.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 30px; /* Adjust this value to make room for the eye icon */
}

.code-wrapper {
position:relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #555; /* Adjust the color as needed */
}






  /*MORE*/

  .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    width: 200px;
}

.dropdown-item {
    padding: 10px;
    cursor: pointer;
}

.dropdown-item.disabled {
    color: #999;
    cursor: not-allowed;
}

.dropdown-item:hover:not(.disabled) {
    background-color: #f0f0f0;
}





/* TOGGLE LOGIN SWITCH */

 .toggle-container {
            position: relative;
            background-color: grey;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
            margin: auto;
            margin-bottom: 10px;
        }

  @media screen and (min-width: 769px) {

   .toggle-container {
            width: 350px;
            height: 45px;
            }
      }

    @media screen and (max-width: 769px) {

   .toggle-container {
            width: 100%;
            height: 45px;
            }

      }

  .toggle-container input[type="radio"] {
            display: none;
        }

        .toggle-button {
            position: absolute;
            top: 0;
            height: 100%;
            line-height: 45px; /* Center text vertically */
            color: white;
            opacity: 0.8;
            transition: width 0.5s ease-in-out, opacity 0.3s ease-in-out;
            z-index: 1;
            font-size: 15px;
            cursor: pointer; /* Change cursor to pointer */
            font-family: 'Mulish',sans-serif;
        }

        .toggle-button.password {
            left: 0%;
            width: 85%; /* Initial width */
            text-align: center;
        }
        .toggle-button.code {
            right: 0%;
            width: 15%; /* Initial width */
            text-align: center;
        }

        .toggle-container .login-slider {
            position: absolute;
            background-color: green;
            border-radius: 25px;
            width: 85%;
            height: 100%;
            transition: all 0.5s ease-in-out;
            z-index: 0;
            box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2),
                        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
                        left: 0%;
        }


        #password:checked ~ .login-slider {
            left: 0%;
        }
        #code:checked ~ .login-slider {
            left: 15%;
        }

        #password:checked ~ .toggle-button.password {
            opacity: 0  ;
            width: 85%; /* Reduced width when selected */
        }
        #password:checked ~ .toggle-button.code {
            opacity: 0.8;
            width: 15%; /* Expanded width when the other option is selected */
        }
        #code:checked ~ .toggle-button.code {
            opacity: 1;
            width: 85%; /* Reduced width when selected */
        }
        #code:checked ~ .toggle-button.password {
            opacity: 0.8;
            width: 15%; /* Expanded width when the other option is selected */
        }

        /* New Button Styles */
        .login-button-75, .code-button-75 {
            position: absolute;
            top: 0;
            height: 100%;
            border: none;
            border-radius: 25px;
            color: white;
            font-size: 15px;
            line-height: 45px;
            text-align: center;
            box-shadow: 0 5px 6px rgba(0, 0, 0, 0.4), inset 0 -2px 1px rgba(0, 0, 0, 0.4);
            transition: opacity 0.5s ease-in-out;
            z-index: 1;
            cursor: pointer;
            font-size: 19px;
            width: 85%;
        }

        .login-button-75 {
            left: 0%;
            background-color: var(--login-green);
        }

        .login-button-75:hover {
        border: 3px var(--login-green-highlight) solid;
        line-height: 35px;
            background-color: green;
        }

        .code-button-75 {
            right: 0%;
            background-color: var(--login-green);
        }

        .code-button-75:hover {
        border: 3px var(--login-green-highlight) solid;
        line-height: 35px;
        }

        .hidden {
            display: none;
        }

















.code-box {
    text-align: center;
    font-family: 'Arvo', serif;

    pointer-events: none; /* Prevent typing initially */
    cursor: not-allowed;
    opacity: 0.3;
    }

.code-box.enabled {
    pointer-events: auto; /* Enable typing */
    background-color: #ffffff; /* Reset background when enabled */
    cursor: auto;
}

@media screen and (min-width: 769px) {
    .code-box {
        font-size: 2.1em;
        max-width: 3.2em;
    }
}

@media screen and (max-width: 769px) {
    .code-box {
        text-align: center;
        font-family: 'Arvo', serif;
        font-size: 1.7em;
        max-width: 2.5em;
    }
}

form input:focus {
/*     border: 2px solid #160E21; */
    box-shadow: 0px 0px 8px 4px #78F4F4;
}



#password-form, #code-form {
    transition: opacity 0.3s ease;
    opacity: 0;
    display: none; /* Initially hidden */
}

#password-form {
    display: block; /* Assuming password form is shown initially */
    opacity: 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake {
  animation: shake 0.4s linear;
}

.form-item {
max-width: 500px;
margin-right: auto;
  margin-left: auto;
}

#logged-in-view .cal-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 16px;
    font-family: 'Mulish', sans-serif;
}

#calendar-selection-form {
    font-family: 'Mulish', sans-serif;
}

.cal-toggle-row {
    background: var(--toggle-row-bg, var(--general-background));
    border-radius: 12px;
    padding: 6px 12px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.08);
}

.cal-toggle-row:hover {
    background: var(--toggle-row-overbg, var(--general-background-highlight));
}


.cal-row-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.cal-row-name {
    flex: 1 1 auto;
    font-weight: 600;
    font-size: 1.0em;
}

.cal-row-emoji::before {
    content: attr(data-emoji);
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.cal-row-icon::before,
.cal-toggle-row:hover .cal-row-icon::before {
    content: '';
}

.cal-row-icon img {
    display: block;
    width: 1.4rem;
    height: 1.4rem;
}

.cal-add-personal-row .cal-row-summary {
    cursor: pointer;
}

.cal-add-personal-row .cal-row-summary:focus-visible {
    outline: 2px solid var(--toggle-bg-active, #4e5255);
    outline-offset: 2px;
}

.cal-add-personal-row .cal-row-emoji::before,
.cal-add-personal-row:hover .cal-row-emoji::before {
    content: attr(data-emoji);
}

.cal-connect-google-row .cal-row-summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.cal-row-action-icon {
    margin-left: auto;

    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background-image: var(--cal-row-add-icon, url('../svgs/add-cal.svg'));
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: background-image 0.2s ease;

    width: 50px;
    border-radius: 20px;
    padding: 3px;
}

.cal-toggle-row:hover .cal-row-action-icon,
.cal-row-summary:hover .cal-row-action-icon,
.cal-row-summary:focus-visible .cal-row-action-icon {
    background-image: var(--cal-row-add-icon-hover, url('../svgs/add-cal-over.svg?v=3'));
    background-color: var(--toggle-bg);
}

.cal-row-toggle {
    margin-left: auto;
}


.cal-row-sync-button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cal-row-actions .cal-row-sync-button {
    font-size: 1.1rem;
}

.cal-row-sync-button:hover,
.cal-row-sync-button:focus-visible {
    transform: rotate(-10deg);
}

.cal-row-sync-button:focus-visible {
    outline: 2px solid var(--toggle-bg-active, #4e5255);
    outline-offset: 2px;
}

.cal-row-sync-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.cal-row-sync-button.is-syncing {
    animation: cal-sync-spin 1s linear infinite;
}

@keyframes cal-sync-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cal-connect-google-row {
    --toggle-row-bg: #d93025;
    --toggle-row-overbg: #c5221f;
}

.cal-connect-google-row .cal-row-summary {
    color: #fff;
}

.cal-connect-google-row .cal-row-name,
.cal-connect-google-row .cal-row-action-icon {
    color: inherit;
}

.cal-connect-apple-row {
    --toggle-row-bg: linear-gradient(135deg, #0a0a0a, #1c1c1e);
    --toggle-row-overbg: linear-gradient(135deg, #1c1c1e, #2c2c2f);
}

.cal-connect-apple-row .cal-row-summary {
    color: #f5f5f7;
}

.cal-connect-apple-row .cal-row-name,
.cal-connect-apple-row .cal-row-action-icon {
    color: inherit;
}

.cal-connect-apple-row .cal-row-summary:focus-visible {
    outline: 2px solid #f5f5f7;
    outline-offset: 2px;
}

.cal-connect-apple-row .cal-row-icon img {
    filter: invert(1);
}

.ec-public-cal-checkbox {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ec-public-cal-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ec-public-cal-checkbox.is-loading {
    opacity: 0.65;
}

.ec-public-cal-checkbox.is-active span {
    color: var(--toggle-bg-active, #4e5255);
}

#logged-in-view .toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

#logged-in-view .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#logged-in-view .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--toggle-bg, #b7bbbd);
    transition: 0.3s ease;
    border-radius: 28px;
}

#logged-in-view .toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--toggle-knob-bg, #fff);
    transition: 0.3s ease;
    border-radius: 50%;
}

#logged-in-view .toggle-switch input:checked + .toggle-slider {
    background-color: var(--toggle-bg-active, #4e5255);
}

#logged-in-view .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(32px);
}

.cal-row-details {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
}

.cal-toggle-row.is-expanded .cal-row-details {
    max-height: 600px;
    opacity: 1;
    margin-top: 12px;
    padding-top: 12px;
    border-top-color: rgba(0, 0, 0, 0.08);
}

.cal-details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px 16px;
    margin: 0;
}

.cal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cal-detail-item dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    margin: 0;
}

.cal-detail-item dd {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.cal-detail-empty {
    opacity: 0.6;
}

.cal-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    vertical-align: middle;
}

.cal-row-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.cal-row-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cal-row-action:hover:not(.cal-row-sync-button),
.cal-row-action:focus-visible:not(.cal-row-sync-button) {
    transform: translateY(-2px);
    opacity: 0.85;
}

.cal-row-action:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .cal-details-list {
        grid-template-columns: 1fr;
    }
}




