/* ==========================================================================
   Online Villacım - Modern Form & Button Design System
   Pixel-Perfect Global Form Components for Entire Platform
   ========================================================================== */

/* 1. BUTTON SYSTEM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #1d4055 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.38);
    filter: brightness(1.06);
    color: #ffffff !important;
}

.btn-accent,
.btn-auth-submit {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
    border: none !important;
}

.btn-accent:hover,
.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(234, 88, 12, 0.42);
    filter: brightness(1.06);
    color: #ffffff !important;
}

.btn-secondary {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

.btn-inspect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f0f9ff;
    color: #0284c7;
    border: 1.5px solid #bae6fd;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-inspect:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* 2. FORM GRID & FIELDS */
.form-group,
.form-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-field label,
.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
    letter-spacing: -0.2px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 4px;
}

@media (max-width: 680px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* 3. INPUT CONTROLS */
.form-control,
.filter-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14.5px;
    color: #0f172a;
    background-color: #ffffff;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus,
.filter-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12) !important;
    background-color: #ffffff !important;
}

.form-control::placeholder,
.filter-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-control:disabled,
.filter-input:disabled {
    background-color: #f8fafc !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
}

textarea.form-control,
textarea.filter-input {
    height: auto !important;
    padding: 12px 16px !important;
    min-height: 100px;
    line-height: 1.6;
    resize: vertical;
}

/* 4. INPUT WITH ICON (PIXEL-PERFECT POSITIONING) */
.input-with-icon {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box;
}

.input-with-icon .input-icon-left {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    z-index: 3 !important;
    width: 20px !important;
    height: 20px !important;
}

.input-with-icon .input-icon-left svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.input-with-icon .form-control,
.input-with-icon .filter-input,
.input-with-icon input {
    width: 100% !important;
    padding-left: 44px !important;
    padding-right: 44px !important;
    box-sizing: border-box !important;
}

/* Password Toggle Eye Button */
.input-with-icon .btn-toggle-pwd {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 8px !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 4 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.input-with-icon .btn-toggle-pwd:hover {
    color: #0284c7 !important;
    background: #f0f9ff !important;
}

.input-with-icon .btn-toggle-pwd svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

/* 5. CHECKBOXES & RADIOS */
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox-label input[type="checkbox"],
.filter-checkbox-label input[type="radio"] {
    accent-color: #0284c7;
    cursor: pointer;
    width: 18px;
    height: 18px;
    border-radius: 4px;
}
