@import "./variable.css";
@import "./responsive.css";

body {
    font-family: "Inter", sans-serif !important;
    height: 100vh;
    background-color: var(--bodyColor);
}

/* Login Page Styles */
.login-img {
    background-image: url("../images/login-bg.jpg");
    width: 100%;
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-img-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    background: radial-gradient(37.16% 50% at 50% 50%, rgba(73, 73, 73, 0.60) 0%, rgba(0, 0, 0, 0.60) 100%);
}

.login-content-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
}

    .login-content-area .logo {
        width: 14rem;
    }

.login-copy-rights {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: absolute;
    width: 100%;
    bottom: 20px;
    padding: 0 2rem;
}

.login-card {
    border: 2px solid #97A5B6;
    background: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(2.5px);
    padding: 1.5rem 2.5rem;
    border-radius: 10px;
}

    .login-card .form-control {
        height: 46px;
        font-size: 1rem !important;
    }

    .login-card h5 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #1d1d1d;
    }

    .login-card .form-control-label {
        font-size: 1rem;
        color: #1d1d1d;
    }

.btn-login {
    background: linear-gradient(90deg, #AF9150 0%, #E9DDB9 50%, #C6AE5F 100%);
    font-size: 1rem !important;
    font-weight: 600;
    border: none !important;
    width: 120px;
}

    .btn-login:hover {
        background: linear-gradient(0deg, #AF9150 0%, #E9DDB9 50%, #C6AE5F 100%);
        transition: 1s;
    }

/* Form Controls */
.form-control-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primaryTextColor);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    font-size: 0.75rem !important;
    border-color: #ffffff !important;
    color: var(--secondaryTextColor) !important;
    min-height: 36px;
    background: #f7f9ff !important;
}

    .form-control:focus {
        border-color: var(--primaryColor);
        box-shadow: 0 0 0 0.1rem rgba(45, 96, 255, 0.25);
    }

/* Button Styles */
.btn-primary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--white) !important;
    background-color: var(--primaryColor) !important;
    font-size: 0.9rem;
    min-width: 80px;
    transition: ease-in-out .2s !important;
}

    .btn-primary:hover {
        background-color: #003ecb !important;
    }

    .btn-primary.disabled, .btn-primary:disabled {
        background-color: #ECECEC !important;
        border: none;
        color: #a3a3a3 !important;
    }

.btn-color-red {
    color: var(--danger);
}

.btn-color-red:hover {
    background-color: rgba(238, 0, 5, 0.1);
}

.icon-mode-change {
    filter: none;
}

.close-img-width {
    width: 20px;
    height: 20px;
}

/* Text Styles */
.heading {
    color: var(--primaryTextColor);
    font-weight: 600;
    font-size: 1.125rem;
}

.content-label {
    font-size: 1rem;
    color: var(--primaryTextColor);
}

.content-sm-dark {
    font-size: .75rem;
    color: var(--primaryTextColor);
}

.sub-heading-dark {
    color: var(--primaryTextColor);
    font-size: 14px;
}

.content-sm-light {
    font-size: .75rem;
    color: var(--secondaryTextColor);
}

.fs-24 {
    font-size: 1.5rem;
}

.fs-2 {
    font-size: 2rem;
}

.fw-400 {
    font-weight: 400 !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.fw-medium, strong {
    font-weight: 600 !important;
}

.primary-text-color {
    color: var(--primaryTextColor) !important;
}

.secondary-text-color {
    color: var(--secondaryTextColor) !important;
}

.primary-color {
    color: var(--primaryColor) !important;
}

/* Validation Styles */
.text-danger {
    color: var(--danger) !important;
    font-size: 0.75rem;
}

.validation-message {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

/* Header Styles */
.custom-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    border-bottom: 1px solid #E3E3E3;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9;
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-area {
    padding-top: 100px;
    padding-bottom: 120px;
}

/* Card Styles */
.detail-card {
    background-color: var(--white);
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    padding: 20px 24px;
}

/* Footer Section Styles */
.footer-section {
    position: fixed;
    bottom: 0;
    padding: 1rem 2rem;
    background: var(--white);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid #E3E3E3;
    z-index: 9;
}


/* Patient Check-in Styles */
.checkin-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.checkin-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.85) 0%, rgba(65, 105, 225, 0.9) 50%, rgba(30, 60, 180, 0.95) 100%), url('../images/checkin-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.checkin-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.profile-image {
    position: absolute;
    top: 40px;
    right: 30px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure logout icon inside profile-image is not affected by the above rule */
.profile-image .logout-icon img {
    width: auto;
    height: auto;
    object-fit: unset;
}

.logo-container {
    background-color: #e7e7e7;
    padding: 10px 26px;
    border-radius: 4px;
    margin-bottom: 30px;
    height: 60px;
    width: 180px;
}

.logo-img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}
.logo-text {
    font-weight: 600;
    font-size: 16px;
    color: var(--primaryTextColor);
}

.logout-icon {
    background: #f7f7f7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primaryColor);
    cursor: pointer;
}

.checkin-title {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 38px;
    color: var(--white);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    background: none;
    outline: none;
}

.checkin-title:focus {
    outline: none;
}

.keypads-container {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.keypad-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.keypad-label {
    font-weight: 600;
    font-size: 20px;
    color: var(--accentColor);
    margin-bottom: 12px;
}

.keypad-card {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.input-display {
    background: var(--white);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 16px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 50px;
}

.input-placeholder {
    font-weight: 500;
    font-size: 24px;
    color: var(--secondaryTextColor);
    letter-spacing: 8px;
    display: flex;
    gap: 4px;
    align-items: flex-end;
    line-height: 1;
}

.input-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 24px;
}

.input-placeholder span:empty {
    width: 16px;
    height: 3px;
    min-height: 3px;
    background-color: var(--secondaryTextColor);
    margin-bottom: 2px;
}

.input-placeholder span:not(:empty) {
    background-color: transparent;
    color: var(--primaryTextColor);
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 84px);
    gap: 18px;
}

.keypad-btn {
    width: 84px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.8) 100%);
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: var(--secondaryTextColor);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1),
                0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.keypad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -4px rgba(0, 0, 0, 0.15),
                0 12px 20px -3px rgba(0, 0, 0, 0.15);
}

.keypad-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.keypad-btn.clear-btn {
    grid-column: span 2;
    width: 100%;
    flex-direction: row;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.keypad-btn.clear-btn svg {
    width: 20px;
    height: 14px;
}

.start-checkin-btn {
    background: radial-gradient(circle at center, #0538FF 0%, #0322A0 100%);
    color: var(--white);
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 24px;
    padding: 24px 80px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(5, 56, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-checkin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 56, 255, 0.5);
}

.start-checkin-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(5, 56, 255, 0.3);
}

/* Password Toggle Styles (Login Page) */
.password-container {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    top: 70%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.password-toggle-btn img {
    width: 22px;
    height: 22px;
    opacity: 0.7;
}

.password-toggle-btn img:hover {
    opacity: 1;
}

/* Subjective Check-in Page Styles */
.subjective-header {
    color: #282828;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(90deg, #CDD9F6 0%, rgba(205, 217, 246, 0.24) 100%);
    border-radius: 6px;
    margin-bottom: 2rem;
}

.header-content h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.header-content p {
    font-size: 14px;
    margin: 0;
    max-width: 600px;
}

.btn-new-complaint {
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--5, linear-gradient(268deg, #70E3F5 -3.8%, #0538FF 104.14%));
}

.btn-new-complaint:hover:not(:disabled) {
    background: var(--5, linear-gradient(90deg, #70E3F5 -3.8%, #0538FF 104.14%));
}

.btn-new-complaint:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.new-complaint-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.max-complaints-message {
    font-size: 12px;
    color: #e53935;
    font-weight: 500;
}

.plus-icon {
    font-size: 18px;
    font-weight: bold;
}

.complaint-section {
    margin-bottom: 34px;
}

.complaint-title {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 16px;
}

.complaint-location {
    font-weight: 600;
}

.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: #2D60FF;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
}

.disabled-section {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.disabled-section .btn-change,
.disabled-section .btn-same {
    background-color: #e0e0e0;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

.disabled-section .btn-change:hover,
.disabled-section .btn-same:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.symptom-card {
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.symptom-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.symptom-details {
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 14px;
}

.detail-label {
    color: #666;
    min-width: 130px;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.worse-activities {
    color: #e53935;
}

.better-activities {
    color: #4CAF50;
}

.symptom-change-section {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
}

.change-question {
    font-size: 14px;
    color: #333;
    margin: 0 0 12px 0;
}

.change-buttons {
    display: flex;
    gap: 12px;
}

.btn-change, .btn-same {
    flex: 1;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-change {
    background: white;
    border: 1px solid #ddd;
    color: #333;
}

.btn-change:hover {
    border-color: #999;
}

    .btn-change.selected {
        background: var(--5, linear-gradient(268deg, #70E3F5 -3.8%, #0538FF 104.14%));
        color: var(--white)
    }

.btn-same {
    background: white;
    border: 1px solid #ddd;
    color: #333;
}

.btn-same:hover {
    border-color: #999;
}

    .btn-same.selected {
        background: var(--no-its-same-color, linear-gradient(60deg, #FF8C21 13.4%, #F5576E 86.6%));
        color: white;
    }

.comments-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.comments-textarea:focus {
    outline: none;
    border-color: #5a4a8a;
}

.submit-section {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding-bottom: 32px;
}

.btn-submit {
    display: flex;
    width: 274px;
    padding: 24px 38px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--3, linear-gradient(60deg, #3D73EB 13.4%, #DE8FFF 86.6%));
    border: 0;
    color: var(--white);
}

.btn-submit:hover:not(:disabled) {
    background-color: #444;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Subjective Body Area Page Styles */
.subjective-body-area-container {
    overflow: auto;
    display: flex;
    justify-content: center;
}

.question-header {
    text-align: center;
    margin-bottom: 25px;
}

.question-text {
    font-weight: 600;
    font-size: 28px;
    color: var(--primaryTextColor);
    margin-bottom: 10px;
}

.question-subtext {
    font-weight: 400;
    font-size: 16px;
    color: var(--secondaryTextColor);
    max-width: 600px;
}

.body-selector-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
    margin-bottom: 25px;
}

.action-buttons {
    position: fixed;
    bottom: 0;
    padding: 1rem;
    background: var(--white);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-cancel-action, .symptom-wizard .k-wizard-buttons .k-wizard-buttons-right .k-button-solid-base {
    display: flex;
    width: 274px;
    padding: 20px 26px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 2px solid #E3E3E3;
    background: #F7F7F7;
    font-size: 1rem;
}

.btn-cancel-action:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-save-action, .symptom-wizard .k-wizard-buttons .k-wizard-buttons-right .k-button-solid-primary {
    display: flex;
    width: 274px;
    padding: 20px 38px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--7, linear-gradient(52deg, #1B6F14 -2.06%, #84FAB0 107.85%));
    border: 0;
    color: var(--white);
    font-size: 1rem;
}

.btn-save-action:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
    box-shadow: none;
}

/* Body Model Selector Styles */
.body-views-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.body-view-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.body-view-badge {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 28px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    background-color: transparent;
    color: var(--primaryColor);
    border: 2px solid var(--primaryColor);
}

.body-view-badge:hover {
    background-color: rgba(45, 96, 255, 0.1);
}

.body-view-badge.active {
    background-color: var(--primaryColor);
    color: var(--white);
    border-color: var(--primaryColor);
}

.body-diagram-container {
    width: 320px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    padding: 1rem;
    border-radius: 6px;
}

.body-diagram-container svg {
    max-width: 100%;
    height: auto;
}

.body-diagram-container.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.summary-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--primaryTextColor);
    margin-bottom: 10px;
}

.selected-areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-area-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primaryTextColor);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: radial-gradient(78.57% 78.57% at 50% 44.29%, #FFF1DB 0%, #FFD595 34.57%, #FF4F4F 100%);
}

.remove-area-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    padding: 0;
    color: var(--primaryTextColor);
}

    .remove-area-btn svg {
        vertical-align: unset;
    }

.symptom-wizard .k-wizard .k-wizard-step{
    padding: 0;
}
.symptom-wizard nav.k-stepper.telerik-blazor {
    padding: 1.5rem 1rem;
    border-radius: 6px;
    background: var(--white);
}

.symptom-wizard .k-slider {
    gap: 12px !important;
    font-size: 16px !important;
}

.symptom-wizard.k-wizard .k-wizard-step {
    padding: 0 !important
}

.symptom-wizard .k-wizard-buttons {
    position: fixed;
    bottom: 0;
    padding: 1rem 1.5rem;
    background: var(--white);
    width: 100%;
    border-top: 1px solid #E3E3E3;
    z-index: 9;
    left: 0;
}

.symptom-wizard .k-wizard-buttons-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.symptom-wizard .k-wizard-buttons-left {
    display: none;
}

.symptom-wizard.k-wizard .k-wizard-buttons-right .k-button:last-of-type {
    margin-right: 0;
    margin-left: auto;
}

.k-slider .k-draghandle {
    background-color: var(--primaryColor) !important;
    border: 2px solid var(--primaryColor);
    border-color: var(--primaryColor) !important;
}

    .k-slider .k-draghandle:hover, .k-slider .k-draghandle.k-hover {
        background-color: var(--primaryColor);
        border-color: var(--primaryColor);
    }

.k-slider .k-slider-selection {
    background: none !important;
}

.k-draghandle {
    width: 20px !important;
    height: 20px !important;
}

.k-slider .k-slider-track {
    background: linear-gradient(270deg, #F00 0%, #F90 27%, #E5A603 52.72%, #28E124 64.47%, #0CAB09 100%);
}

/* Confirmation Modal Styles */
.confirmation-modal {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.confirmation-modal .modal-content {
    border: none !important;
}

.confirmation-modal .modal-footer, .modal-footer {
    padding: 10px 1rem !important;
    border-top: 1px solid #E3E3E3;
    gap: 1rem;
}

.confirmation-modal .modal-body p {
    font-size: .875rem;
    color: var(--primaryTextColor);
}

.confirmation-modal .modal-body.modal-warning {
    border-top: 5px solid #ffc107;
    border-radius: 5px;
}

.btn-primary-green {
    font-size: 0.9rem;
    color: #fff !important;
    background-color: #1B6F14 !important;
    min-width: 80px;
    transition: ease-in-out .2s !important;
}

.btn-primary-green:hover {
    background-color: #19950F !important;
}

.btn-primary-green.disabled, .btn-primary-green:disabled {
    background-color: #808080 !important;
    color: #EFEFEF !important;
}

.btn-cancel {
    background-color: #EFEFEF;
    color: #323232;
}

.btn-cancel:hover {
    background-color: #D1D1D1;
}
