/* Custom Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* Apply Pretendard font to body */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Force all input backgrounds to white - override all browser defaults */
input:not([readonly]):not([disabled]) {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Override all possible input states */
input:focus:not([readonly]):not([disabled]),
input:active:not([readonly]):not([disabled]),
input:hover:not([readonly]):not([disabled]),
input:valid:not([readonly]):not([disabled]),
input:invalid:not([readonly]):not([disabled]) {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Remove autofill background colors */
input:-webkit-autofill:not([readonly]):not([disabled]),
input:-webkit-autofill:hover:not([readonly]):not([disabled]),
input:-webkit-autofill:focus:not([readonly]):not([disabled]),
input:-webkit-autofill:active:not([readonly]):not([disabled]) {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #000000 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Ensure readonly/disabled inputs keep their specific background */
input[readonly], 
input:disabled {
    background-color: #F9FAFB !important;
    background: #F9FAFB !important;
}

/* Password toggle button positioning fix - aligned with text */
.password-toggle {
    position: absolute !important;
    top: 10px !important;
    right: 0.75rem !important;
    z-index: 10 !important;
    transform: none !important;
}

/* Complete removal of all default select arrows - override Tailwind */
select,
select.appearance-none,
select.block {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    background: white !important;
}

/* Force remove IE/Edge arrow */
select::-ms-expand {
    display: none !important;
}

/* Remove any pseudo-element arrows */
select::after,
select::before {
    display: none !important;
    content: none !important;
}

/* Only add ONE custom arrow to specific selects */
#manager-email-domain-select,
#billing-email-domain-select, 
#tax-invoice-email-domain-select,
#departure-country {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    background-color: white !important;
    padding-right: 2.5rem !important;
}

/* 통관고유부호 활성화 시 배경색 흰색으로 변경 */
#customs-code:not(:disabled) {
    background-color: #ffffff !important;
    cursor: text !important;
}

/* 통관고유부호 활성화 시 플레이스홀더 배경색도 흰색으로 변경 */
#customs-code:not(:disabled)::placeholder {
    background-color: #ffffff !important;
}



/* Password error message positioning - just below input with small gap */
#password-error {
    position: absolute !important;
    top: 46px !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 0 !important;
}

/* Password confirm container - just enough space for error message */
.password-confirm-container {
    min-height: 68px !important;
    margin-bottom: 0 !important;
}

/* File Input Custom Styling */
.file-input {
    display: none;
}

.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drop-zone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.drop-zone.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Readonly and Disabled Fields - 강제 적용 */
input[readonly], 
input:disabled,
#zip-code,
#address-main,
#customs-code {
    background-color: #F9FAFB !important;
    cursor: not-allowed;
}

/* Placeholder text background for readonly/disabled inputs - 투명으로 설정 */
input[readonly]::placeholder,
input:disabled::placeholder {
    background-color: transparent;
}

/* Button area background for address search and duplicate check */
#search-address-btn,
#check-id-btn {
    background-color: #F9FAFB !important;
}

/* Modal Scrollbar Styling */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Policy Modal Table Styling */
.policy-modal table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.policy-modal th,
.policy-modal td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

.policy-modal th {
    background-color: #f8fafc;
    font-weight: 600;
}

/* Custom point color for replacing indigo-600 */
.text-point-color {
    color: #3855C7 !important;
}
.bg-point-color {
    background-color: #3855C7 !important;
}
.border-point-color {
    border-color: #3855C7 !important;
}
.ring-point-color {
    --tw-ring-color: #3855C7 !important;
}
.hover\:bg-point-color:hover {
    background-color: #3855C7 !important;
}
.hover\:text-point-color:hover {
    color: #3855C7 !important;
}
.focus\:ring-point-color:focus {
    --tw-ring-color: #3855C7 !important;
}
.focus-within\:ring-point-color:focus-within {
    --tw-ring-color: #3855C7 !important;
}
