/* Custom Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #764ba2;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}


/* Toast 알림 스타일 (oms- prefix로 Bootstrap 충돌 방지) */
#oms-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.oms-toast {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(450px);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    min-width: 300px;
    max-width: 400px;
}

.oms-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.oms-toast.hide {
    transform: translateX(450px);
    opacity: 0;
}

.oms-toast-success {
    border-left: 4px solid #10b981;
}

.oms-toast-error {
    border-left: 4px solid #ef4444;
}

.oms-toast-warning {
    border-left: 4px solid #f59e0b;
}

.oms-toast-info {
    border-left: 4px solid #3b82f6;
}

.oms-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.oms-toast-content {
    flex: 1;
}

.oms-toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1f2937;
}

.oms-toast-message {
    font-size: 13px;
    color: #6b7280;
    white-space: pre-wrap;
}

.oms-toast-close {
    flex-shrink: 0;
    margin-left: 12px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
}

.oms-toast-close:hover {
    color: #4b5563;
}

/* 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;
}
