/* Personal Information Page Styles */

/* Page Home Background */
.page-Home-bg {
    background: #fff !important;
}

/* Upload Image */
.upload-image[data-v-46db5ef4] {
    position: relative;
    min-height: 120px;
}

.select-picture[data-v-46db5ef4] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
}

.select-picture input[data-v-46db5ef4] {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
}

/* Signature Pad */
.signature-pad[data-v-dca3da41] {
    position: relative;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    width: 100%;
    height: 200px;
    z-index: 10000;
}

.signature-canvas[data-v-dca3da41] {
    width: 100%;
    height: 100%;
}

.signature-actions[data-v-dca3da41] {
    position: absolute;
    top: 0;
    right: 0;
}

/* Information Item */
.information-item[data-v-108626d4] {
    margin: 16px;
    padding: 16px;
    background-color: #0f52ba;
    color: #fff;
    border-radius: 16px;
}

.info-box[data-v-108626d4] {
    display: flex;
    flex-wrap: nowrap;
}

.form-data[data-v-108626d4] {
    max-width: 480px;
    margin: 0 auto;
}

.upload-field[data-v-108626d4] {
    padding-bottom: 30px;
}

.upload-field[data-v-108626d4] .q-field__control-container {
    padding-top: 32px;
    padding-bottom: 20px;
}

[data-v-108626d4] .q-field__native {
    color: #c6c6c6 !important;
}

.form-data-container[data-v-108626d4] {
    height: 80vh;
}

/* Card body */
.card-body {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Signature preview image */
#sign_preview {
    width: 300px !important;
    height: auto;
    border: 2px dashed #999;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* Signature pad box */
.signature-pad {
    width: 100%;
    max-width: 500px;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background: #f5f5f5;
    margin: 0 auto 15px auto;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Signature canvas */
#signature-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* Clear button */
.btn-clear {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 1px solid #dc3545;
    color: #dc3545;
}

.btn-clear:hover {
    background: #c82333 !important;
    color: #fff;
}

/* Existing signature display */
.card-body img {
    max-width: 300px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.language-dropdown .lang-btn img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.language-dropdown .lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: none;
    z-index: 100;
}

.language-dropdown .lang-menu li {
    padding: 6px 12px;
}

.language-dropdown .lang-menu li + li {
    margin-top: 4px;
}

.language-dropdown .lang-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    width: 100%;
    transition: all 0.3s ease;
}

.language-dropdown .lang-menu li.active {
    background: #f5f5f5;
}

.q-timeline h6 {
    font-size: 1rem !important;
}

/* Floating label behavior */
.q-field .q-field__control-container {
    position: relative;
}

.q-field .q-field__label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left top;
    transition: top .16s ease, transform .16s ease, font-size .16s ease, opacity .16s ease;
    pointer-events: none;
    opacity: .7;
}

.q-field.is-focused .q-field__label,
.q-field.has-value .q-field__label {
    top: 6px;
    transform: none;
    font-size: 12px;
    opacity: 1;
}

.q-field .q-field__native::placeholder {
    color: transparent;
}

/* Dropdown */
.q-btn-dropdown__arrow {
    transition: transform 0.3s ease;
}

.q-btn-dropdown__arrow.open {
    transform: rotate(180deg);
}

#q-portal--menu--14 .q-menu {
    left: auto !important;
    right: 0 !important;
}

@media (max-width: 1022px) {
    #q-portal--menu--14 .q-menu {
        display: none !important;
    }
}

/* SweetAlert2 z-index override */
.swal2-container {
    z-index: 99999 !important;
}
