﻿
/* Custom Inset Input with Animated Label */
.custom-inset-input {
    position: relative;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

    .custom-inset-input input,
    .custom-inset-input select {
        height: 48px;
        width: 100%;
        border: 1px solid #c0c0c0;
        border-radius: 4px;
        box-sizing: border-box;
        padding: 16px 12px 8px 12px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 16px;
        background-color: white;
    }

    .custom-inset-input label {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 12px;
        display: flex;
        align-items: center;
        pointer-events: none;
        margin: 0;
    }

        .custom-inset-input label .text {
            transition: all 0.15s ease-out;
            color: #6c757d;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 16px;
        }

    .custom-inset-input input:focus,
    .custom-inset-input select:focus {
        outline: none;
        border: 2px solid #0d6efd;
        padding: 16px 11px 8px 11px;
    }

        .custom-inset-input input:focus + label .text,
        .custom-inset-input input:not([value=""]):not([type="date"]):not([type="time"]):not([type="number"]):not([type="password"]) + label .text,
        .custom-inset-input input[readonly] + label .text,
        .custom-inset-input select:focus + label .text,
        .custom-inset-input select:not([value=""]) + label .text {
            font-size: 12px;
            transform: translate(0, -150%);
            background-color: white;
            padding-left: 4px;
            padding-right: 4px;
        }

        .custom-inset-input input:focus + label .text,
        .custom-inset-input select:focus + label .text {
            color: #0d6efd;
        }

    /* Validation error styling */
    .custom-inset-input .text-danger {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.875rem;
        line-height: 1.2;
    }

/* Disabled input styling */
.custom-inset-input input:disabled,
.custom-inset-input select:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #adb5bd;
}

    .custom-inset-input input:disabled + label .text,
    .custom-inset-input select:disabled + label .text {
        color: #6c757d;
        background-color: #e9ecef !important;
        line-height: 1;
        padding-top: 2px;
        padding-bottom: 2px;
    }
