/* ========================================
   📝 폼 입력 필드 개선 - 명확한 테두리
   ======================================== */

/* 모든 입력 필드에 명확한 테두리 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* 포커스 시 강조 */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #475569 !important;
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
    outline: none !important;
}

/* Placeholder 스타일 */
input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* 로그인 폼 특별 스타일 */
.login-form {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    font-size: 0.875rem !important;
}

.login-form input[type="text"]:hover,
.login-form input[type="password"]:hover {
    border-color: #94a3b8 !important;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #475569 !important;
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1) !important;
}

/* 검색 그룹 내 입력 필드 */
.search-group input,
.search-group select {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 120px !important;
    min-height: 2rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    padding: 0.5rem 0.75rem !important;
    vertical-align: middle !important;
}

/* Select 요소 글자 잘림 방지 */
.search-group select {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    height: auto !important;
}

.search-group input:focus,
.search-group select:focus {
    outline: none !important;
    box-shadow: none !important;
}

.search-group input::placeholder {
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
}

/* Form Group 레이블 */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

/* 에러 상태 */
input.error,
select.error,
textarea.error {
    border-color: #dc2626 !important;
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* 비활성화 상태 */
input:disabled,
select:disabled,
textarea:disabled {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* 다크 테마 (미래 대비) */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: #64748b !important;
    background: #334155 !important;
}
