@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --cy-primary: #9EA700;
    --cy-primary-dark: #7d8400;
    --cy-text-main: #111111;
    --cy-text-muted: #686B6F;
    --cy-text-light: #505050;
    --cy-border: #e5e7eb;
    --cy-input-bg: #f2f2f2;
    --cy-card-bg: #ffffff;
    --cy-card-radius: 24px;
    --cy-card-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    --cy-font-bold: "Cyllo-Font-Bold", "Cyllo-Bold", sans-serif;
    --cy-font: "Cyllo-Font-Bold", "Cyllo-Bold", 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ─── Page / Body ─────────────────────────────────────────── */

body {
    background-color: #f5f5f5 !important;
    font-family: "Inter", sans-serif;
}

/* ─── Wrapper / Layout ────────────────────────────────────── */

.cy-authentication {
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.cy-authentication .wrapper {
    display: flex;
    flex-direction: column;
    box-shadow: var(--cy-card-shadow);
    border-radius: var(--cy-card-radius);
    overflow: hidden;
}

/* ─── Left Panel (typographic carousel) ──────────────────── */

.cy-authentication .wrapper .items:nth-child(1) {
    background-color: #F7F6EE;
}

.cy-authentication .wrapper .items:nth-child(1) .login_img_wrapper {
    display: flex;
    justify-content: flex-start;
    z-index: 2;
}

.cy-authentication .login_form_left {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding: 40px 36px;
    box-sizing: border-box;
    height: auto;
    background: url(/cyllo_base/static/src/img/cloud-bg.png);
    background-position-y: bottom;
}

.cy-authentication .login_form_left .owl-carousel {
    width: 100%;
    margin: auto 0;
    flex: 1;
    align-self: center;
}

.cy-authentication .login_form_left .owl-stage-outer {
    text-align: left;
}

.cy-authentication .login_form_left .owl-item {
    text-align: left;
}

.cy-authentication .wrapper .login_thumbnail_wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    text-align: left;
}

.cy-authentication .wrapper .login_typographic_content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cy-authentication .wrapper .login_accent_bar {
    width: 3px;
    align-self: stretch;
    background: #A9C23F;
    border-radius: 0;
    margin-top: 6px;
    min-height: 110px;
    flex-shrink: 0;
}

.cy-authentication .wrapper .login_thumb_details {
    text-align: left;
}

.cy-authentication .wrapper .login_thumb_details .login_capability_tag {
    font-size: 13px;
    font-weight: 500;
    color: #7C9A1E;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.cy-authentication .wrapper .login_thumb_details .login_title {
    font-family: var(--cy-font-bold);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    color: #1F2417;
    margin: 0 0 16px;
    max-width: 280px;
}

.cy-authentication .wrapper .login_thumb_details .login_subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #5B5F52;
    margin: 0;
    max-width: 270px;
}

/* ─── Owl Dots — pill style ───────────────────────────────── */

.cy-authentication .login_form_left .owl-theme .owl-dots {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-top: 40px !important;
    padding: 0 !important;
    text-align: left !important;
}

.cy-authentication .login_form_left .owl-theme .owl-dots .owl-dot {
    display: inline-flex !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.cy-authentication .login_form_left .owl-theme .owl-dots .owl-dot span {
    width: 8px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: #D8D6C6 !important;
    margin: 0 !important;
    display: block !important;
    transition: width 0.3s ease, background 0.3s ease;
}

.cy-authentication .login_form_left .owl-theme .owl-dots .owl-dot.active span,
.cy-authentication .login_form_left .owl-theme .owl-dots .owl-dot:hover span {
    width: 24px !important;
    background: #A9C23F !important;
    border-radius: 2px !important;
}

/* ─── Right Panel ─────────────────────────────────────────── */

.cy-authentication .items:nth-child(2) {
    background: #FFFFFF;
}

.cy-authentication .login_form_right {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: start;
}

.cy-authentication .login_form_right .login_form_right_form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cy-authentication .form_heading h4 {
    color: #000000;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600 !important;
    margin: 0;
}

.cy-authentication .login_form_right .login_form_right_form .form_heading p {
    color: #686B6F;
    font-size: 16px;
    padding-top: 10px;
}

.cy-authentication .form-group {
    margin-bottom: 1rem;
}

/* .cy-authentication .login_form_right .login_form_right_form .form-control {
    padding: 10px;
    height: auto;
    border: 1px solid #D0D5DD;
    border-radius: 4px;
    transition: border-color 0.3s ease-in-out;
    font-size: 13px;
} */

.cy-authentication .login_form_right .login_form_right_form .form-control:hover,
.cy-authentication .login_form_right .login_form_right_form .form-control:focus,
.cy-authentication .login_form_right .login_form_right_form .form-control:active {
    border-color: #9EA700;
    outline: none;
    box-shadow: unset;
}

.cy-authentication .login_form_right .login_form_right_form .form-select:focus,
.cy-authentication .login_form_right .login_form_right_form .form-select:active {
    border-color: #9EA700;
    box-shadow: unset;
}

.cy-authentication .login_form_right .login_form_right_form .forgot {
    color: #9EA700;
    font-weight: 600;
    display: block;
}

.cy-authentication .login_form_right .login_form_right_form .forgot:hover {
    text-decoration: none;
    color: #8e9600;
}

.cy-authentication .login_form_right .login_form_right_form .sign_up {
    padding-top: 15px;
    text-align: center;
    color: #000;
}

.cy-authentication .login_form_right .login_form_right_form .sign_up a {
    color: #9EA700;
}

.cy-authentication .login_form_right .login_form_right_form .sign_up a:hover {
    text-decoration: none;
    color: #8e9600;
}

/* ─── Responsive: both panels stack ──────────────────────── */

@media (max-width: 768px) {

    .cy-authentication .items:nth-child(1),
    .cy-authentication .items:nth-child(2) {
        flex-basis: 100%;
    }
}

/* ─── Responsive: typographic text scaling ───────────────── */

@media (max-width: 1200px) or (max-height: 600px) {
    .cy-authentication .wrapper {
        min-height: auto !important;
    }

    .cy-authentication .wrapper .login_thumb_details .login_title {
        font-size: 26px;
    }

    .cy-authentication .wrapper .login_thumb_details .login_subtitle {
        font-size: 14px;
    }
}

@media (max-width: 992px) or (max-height: 500px) {
    .cy-authentication .wrapper .login_thumb_details .login_title {
        font-size: 20px;
    }

    .cy-authentication .wrapper .login_thumb_details .login_subtitle {
        font-size: 12px;
    }
}

.cy-authentication .container {
    max-width: 575px !important;
}

/* ─── Placeholder font size ───────────────────────────────── */

.cy-authentication form .form-control::placeholder {
    font-size: 14px;
}

/* ─── Modals ──────────────────────────────────────────────── */

.cyllo-modal_content {
    border: none;
    padding: 2rem;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
}

.cy-modal_header {
    padding: 0px !Important;
    align-items: flex-start;
    padding-bottom: 0.4rem !important;
    border: none;
}

.cy-modal_footer {
    padding: 0;
    border-top: none;
    justify-content: flex-start;
}

.cy-modal_sub-title {
    font-size: 14px;
    color: #777777;
}

.cy-modal-title {
    font-size: 22px;
    color: #222222;
    font-weight: bold;
}

.cy-modal_body {
    padding: 0 !important;
}

.cy-modal_sub-text {
    font-size: 12px;
    color: #777777;
    line-height: 18px;
    margin-top: 0.4rem;
}

/* ─── Database list & actions ─────────────────────────────── */

.cy-db-list {
    height: 40dvh;
    overflow-y: auto;
    scroll-behavior: smooth;
    border-bottom: 1px solid #DFDFDF;
}

.cy-database-content {
    padding: 16px 16px 16px 38px !important;
    display: flex;
    align-items: center;

    &:not(:nth-child(1)) {
        border-top: 1px solid #DFDFDF;
    }
}

.cy-database-content:hover {
    background-color: #F8F8F8;
}

.cy-database-name {
    font-size: 16px;
    color: #3C4D62;
}

.cy-database-name:hover {
    font-size: 16px;
    color: #9ea700;
    cursor: pointer;
}

.cy-database-button-container {
    border-radius: 8px;
}

.cy-database-button-container a:hover {
    text-decoration: none;
}

.cy-database-button-container i {
    font-size: 16px;
    width: 50px;
}

.cy-database-button-container a i:hover {
    color: #9ea700 !important;
}

.cy-box-upload {
    height: 25px;
    width: 33%;
}

.cy-box-copy {
    height: 25px;
    width: 33%;
    border-left: 1px solid #e4e4e4;
    border-right: 1px solid #e4e4e4;
}

.cy-box-delete {
    height: 25px;
    width: 33%;
}

@media (max-width: 980px) {
    .cy-dashboard-left-side-img-container {
        display: none;
    }

    .cy-database-content {
        display: flex;
        align-items: center;
    }
}

/* ─── Dashboard ───────────────────────────────────────────── */

.cy-dashboard-container {
    background-color: #fff;
    width: 87%;
    min-height: 480px;
}

.cy-dashboard-left-side-img {
    background-image: url(/cyllo_web/static/src/img/cy-dashboard.png);
    height: 100%;
    border-radius: 0.5rem;
    background-repeat: no-repeat;
    position: relative;
    background-size: cover;
    background-position-y: 10%;
}

.cy-dashboard-left-side_manager .cy-dashboard-left-side-img {
    background-size: cover;
    border-radius: 18px;
}

.cy-dashboard-left-side_manager_row {
    width: 50%;
}

.cy-h6-header {
    color: #6F7500;
    font-size: 28px;
    font-weight: 700;
}

.p-cy-section {
    font-size: 16px;
    margin-bottom: 18px;
}

.cy-logo-dashboard-left {
    position: absolute;
    bottom: 10px;
}

.cy-dashboard-container-right .manage-btn {
    border: 1px solid #e4e4e4;
    font-size: 13px;
}

.cy-dashboard-container-right .manage-btn:hover {
    color: #666;
    background-color: #F8F8F8;
}

/* ─── Form inputs (modals) ────────────────────────────────── */

.cy-form_group {
    margin-bottom: .6rem !important;
}

.cy-modal__label {
    font-size: 12px;
    font-weight: 600;
    color: #505050 !important;
    padding: 0.4rem 0;
    min-width: 70px;
    margin: 0;
}

.cy-additional-fields__icon {
    transition: transform 0.3s ease;
}

[aria-expanded="true"]>.cy-additional-fields__icon {
    transform: rotate(180deg);
}

.cy-required {
    color: #FF4B4B;
    font-size: 12px;
    padding: 0 0.2rem;
}

.cy-input_control {
    border-radius: 2px !important;
    border: 1px solid #c3c3c3 !important;
    font-size: 14px !important;
    color: #0C0520 !important;
    height: 35px !important;
    font-weight: 500 !important;
    transition: all 0.3s linear !important;
}

.cy-input_control:focus {
    box-shadow: inset 1px 1px 5px 0 rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s linear !important;
    border: 1px solid #9EA700 !important;
    outline: none !important;
}

.cy-input-container {
    position: relative;
}

.cy-eye {
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 3%;
}

.cy-check_box:focus {
    border: 1px solid #9EA700;
    box-shadow: none;
}

.cy-check_box:checked {
    background-color: #9EA700;
    border: 1px solid #9EA700;
}

.cy-radio_label {
    color: #505050;
    font-size: 12px;
    font-weight: 600;
}

select {
    cursor: pointer;
}

.cy-input-box {
    background: #f2f2f2 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 12px;
    height: 50px;
    font-size: 14px;
}

.cy-input-box[disabled],
.cy-input-box:disabled,
.cy-input-box[readonly] {
    background-color: #d1d4d8 !important;

    &:active,
    &:focus {
        background-color: #d1d4d8 !important;
    }
}

.cy-input-box:active,
.cy-input-box:focus {
    background: #ffffff !important;
    outline: 2px solid #9EA700 !important;
    border: none !important;
    box-shadow: unset !important;
}

select.cy-input-box,
select.cy-input-box:active,
select.cy-input-box:focus {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23505050' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 12px !important;
    padding-right: 36px;
}

/* ─── Primary button (modals) ─────────────────────────────── */

.cy-primary_btn {
    width: 100%;
    margin: 0;
    transition: all 0.3s linear;
    height: 45px;
    border-radius: 12px;
}

/* ─── File button (backup/restore modals) ─────────────────── */

.cy-file_btn {
    display: flex;
    align-items: center;
    color: #686B6F;
    font-size: 13px;
    border-radius: 8px;
    padding: 0 12px;
    height: 42px;
    width: 100%;
    cursor: pointer;
    background: #f2f2f2;
}

.cy-file_btn:hover {
    background: #ededed;
}

.cy-file_btn::file-selector-button {
    color: #111111;
    background-color: transparent;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-right: 1px solid #e2e2e2;
    padding: 0 12px 0 0;
    margin-right: 12px;
    height: 100%;
    cursor: pointer;
}

/* ─── Database Creation Form ────────────────────────────────────────── */
.cy_create_db_form {
    padding: 16px 36px;
}

/* ─── Global links ────────────────────────────────────────── */

a {
    color: #3C4D62 !important;
}

a:hover {
    color: #9ea700 !important;
    text-decoration: underline;
}

/* ─── Bootstrap overrides ─────────────────────────────────── */

.btn-primary {
    background-color: #9ea700 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #8b9200 !important;
}

.btn-secondary {
    background-color: #eaeaea !important;
    color: #505050 !important;
    border: none !important;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #e2e2e2 !important;
}

.btn-warning {
    border: none !important;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}

.cy-authentication .btn-primary:focus {
    box-shadow: unset !important;
    border-color: unset !important;
}

/* ─── Alert box ───────────────────────────────────────────── */

.cy-alert-box-60 {
    max-width: 60vw;
}

/* ─── Custom scrollbar ────────────────────────────────────── */

*::-webkit-scrollbar {
    visibility: hidden;
    width: 5px;
    height: 5px;
}

*:hover::-webkit-scrollbar {
    visibility: visible;
}

*:hover::-webkit-scrollbar-track {
    background: rgba(233, 237, 241, 0.3);
    border-radius: 25px;
}

*:hover::-webkit-scrollbar-thumb {
    background: hsl(213, 22%, 84%);
    border-radius: 25px;
}

*:hover::-webkit-scrollbar-thumb:hover {
    background: hsl(216, 18%, 64%);
}

/* ─── Toggle switch (Demo data) ────────────────────────────
   Same component as cyllo_base's .switch-auto-edit/.slider-auto-edit
   (main.scss) — duplicated here since this is a standalone public page
   with its own <head>, not part of the backend web client asset bundle
   main.scss ships in. */

.switch-auto-edit {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 21px;
    flex-shrink: 0;
}

.switch-auto-edit input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-auto-edit {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background-color: #e1e1e1;
    transition: .4s;
}

.slider-auto-edit:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
}

.switch-auto-edit input:checked+.slider-auto-edit {
    background-color: #9EA700;
}

.switch-auto-edit input:checked+.slider-auto-edit:before {
    transform: translateX(23px);
}

.slider-auto-edit.round {
    border-radius: 34px;
}

.slider-auto-edit.round:before {
    border-radius: 50%;
}