﻿/* Field wrapper */
.input-field {
    width: 100%;
    margin-bottom: 12px;
}

/* Label */
.input-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Positioning context for icons */
.input-wrapper {
    position: relative;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Base textbox */
.input-box {
    display: block;
    width: 100%;
    height: 30px;
    padding: 4px 10px; /* base padding */
    font-size: 0.85rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

/* When there is a left icon, add space INSIDE the input */
.input-wrapper.has-left-icon .input-box {
    padding-left: 32px;
}

/* When there is a right icon, add space INSIDE the input */
.input-wrapper.has-right-icon .input-box {
    padding-right: 32px;
}

/* Allow multiline textboxes to size naturally */
textarea.input-box {
    height: auto !important;
    min-height: 80px; /* matches ~4 rows */
    resize: vertical; /* optional: allow manual resizing */
    line-height: 1.4;
}

/* Left icon */
.icon-left {
    position: absolute;
    left: 8px;
    top: 9px;
    font-size: 0.9rem;
    color: var(--card-accent);
    pointer-events: none;
}

/* Right icon */
.icon-right {
    position: absolute;
    right: 8px;
    top: 9px;
    font-size: 0.9rem;
    color: var(--card-accent);
    cursor: pointer;
}