/**
 * HSCode 與 TaitraCode 查詢系統 - 自訂樣式
 * 色系：Pantone 15-1243 TCX Papaya (#FA9A6A)
 * 字體：思源宋體 (Noto Serif TC)
 * 外型：無圓角設計
 */

/* 全域設定 */
* {
    border-radius: 0 !important;
}

body {
    font-family: 'Noto Serif TC', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 按鈕樣式 - 移除圓角 */
button,
input[type="button"],
input[type="submit"] {
    border-radius: 0 !important;
    transition: all 0.2s ease-in-out;
}

/* 輸入框樣式 - 移除圓角 */
input[type="text"],
input[type="search"],
select,
textarea {
    border-radius: 0 !important;
}

/* 分頁按鈕效果 */
.tab-button {
    position: relative;
    transition: all 0.2s ease-in-out;
}

.tab-button:hover {
    background-color: rgba(250, 154, 106, 0.05);
}

/* 表格樣式 */
table {
    border-collapse: collapse;
    width: 100%;
}

table th,
table td {
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
}

table thead tr {
    background-color: #FFE8DC;
}

table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

table tbody tr:hover {
    background-color: #FFF5F0;
}

/* 載入動畫 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF6600;
}

::-webkit-scrollbar-thumb:hover {
    background: #CC5200;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .flex.gap-4 {
        flex-direction: column;
    }
    
    .flex.gap-4 button {
        width: 100%;
    }
    
    .tab-button {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* 焦點樣式 */
input:focus,
button:focus {
    outline: 2px solid #FA9A6A;
    outline-offset: 2px;
}

/* 無障礙設計 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 列印樣式 */
@media print {
    header,
    footer,
    .tab-button,
    button {
        display: none;
    }
    
    .bg-white {
        background: white !important;
    }
    
    table {
        page-break-inside: avoid;
    }
}

/* 過渡效果 */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* 陰影效果 */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 確保所有元素都沒有圓角 */
.rounded-none,
.rounded-0 {
    border-radius: 0 !important;
}

/* 強制移除所有可能的圓角 */
div,
span,
button,
input,
select,
textarea,
table,
th,
td,
header,
footer,
section,
article,
aside,
nav {
    border-radius: 0 !important;
}



