/* Facebook風格清點系統 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    line-height: 1.2;
    padding-top: 60px;
}

/* 頂部工具列 - Facebook藍 */
.search-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4267b2, #365899);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 12px;
    border-bottom: 1px solid #29487d;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-input-container {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-input:focus {
    background: white;
    color: #1c1e21;
    box-shadow: 0 0 0 3px rgba(66, 103, 178, 0.2);
}

.search-input:focus::placeholder {
    color: #65676b;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 18px;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 搜尋歷史面板 */
.search-history-panel {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-height: 300px;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.search-history-container {
    padding: 8px;
}

.search-history-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    margin-bottom: 4px;
}

.search-history-item:hover {
    background: #f0f2f5;
    transform: translateX(4px);
}

.history-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.history-text {
    flex: 1;
    font-size: 14px;
    color: #1c1e21;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-search-history {
    padding: 20px;
    text-align: center;
    color: #65676b;
    font-size: 14px;
}

.toolbar-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 九宮格內的快捷按鍵 */
.warehouse-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 12px 16px;
    border-top: 1px solid #e4e6ea;
    background: #f8f9fa;
    max-height: 120px;
    overflow-y: auto;
}

.warehouse-shortcut-btn {
    height: 40px;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #4267b2;
    border-radius: 6px;
    background: linear-gradient(135deg, #4267b2, #365899);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(66, 103, 178, 0.3);
    min-width: 0;
    max-width: 80px;
}

.warehouse-shortcut-btn:hover {
    background: linear-gradient(135deg, #365899, #2d4373);
    border-color: #365899;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(66, 103, 178, 0.4);
}

.warehouse-shortcut-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(66, 103, 178, 0.3);
}


/* 內嵌篩選 */
.inline-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* 供應商篩選 */
.supplier-filter {
    display: flex;
    align-items: center;
}

.supplier-select {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.supplier-select:focus {
    background: white;
    color: #1c1e21;
    border-color: rgba(255, 255, 255, 0.8);
}

.supplier-select option {
    background: white;
    color: #1c1e21;
    padding: 8px;
}

.filter-radio {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    position: relative;
}

.filter-radio:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-radio input[type="radio"] {
    display: none;
}

.filter-radio input[type="radio"]:checked + .radio-text {
    color: #1c1e21;
    font-weight: 700;
}

.filter-radio:has(input[type="radio"]:checked) {
    background: rgba(255, 255, 255, 0.9);
    color: #1c1e21;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.filter-radio .radio-text {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-count {
    font-size: 11px;
    opacity: 0.8;
    margin-left: 2px;
}

.status-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* 篩選面板 */
.filter-panel {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e4e6ea;
    z-index: 999;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-options {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #65676b;
}

.filter-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4267b2;
}

.filter-apply-btn {
    padding: 8px 16px;
    background: #4267b2;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-apply-btn:hover {
    background: #365899;
}

/* 載入提示 */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 3px solid #e4e6ea;
    border-top: 3px solid #4267b2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 主要內容區域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* 列表樣式 - 改為條列式 */
.inventory-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 清點項目卡片 - 條列式設計 */
.inventory-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #e4e6ea;
    position: relative;
}

.inventory-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #4267b2;
}

.inventory-item.completed {
    border-left: 4px solid #42b883;
    background: linear-gradient(90deg, #f0fff4 0%, white 10%);
}

.inventory-item.short-expiry {
    border-left: 4px solid #ff6b6b;
}

.item-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0px;
    align-items: center;
    min-height: 140px;
}

.item-image {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 12px;
    background: #f0f2f5;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-image:hover {
    transform: scale(1.05);
}

.item-image-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    font-size: 11px;
    color: #65676b;
    text-align: center;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 16px;
    font-weight: 700;
    color: #1c1e21;
    line-height: 1.3;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.item-spec-quantity {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.item-spec {
    font-size: 16px;
    font-weight: 600;
    color: #4267b2;
    background: rgba(66, 103, 178, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.item-quantity-combined {
    font-size: 16px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.item-quantity-combined.quantity-full {
    color: #4267b2;
    background: rgba(66, 103, 178, 0.1);
}

.item-quantity-combined.quantity-zero {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.item-quantity-combined.quantity-partial {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.item-status {
    position: absolute;
    top: -1px;
    right: -1px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 0 12px 0 12px;
    white-space: nowrap;
    z-index: 1;
    border: 1px solid;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.status-completed {
    background: #d4edda;
    color: #155724;
    border-color: #b8dabd;
}

/* 彈出視窗樣式 - 更緊湊 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 85%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: none;
}

.modal-header h3 {
    color: #1c1e21;
    font-size: 17px;
    font-weight: 700;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #dc3545;
    padding: 0;
    width: auto;
    height: auto;
    transition: all 0.2s;
    z-index: 10;
    line-height: 1;
}

.close-btn:hover {
    color: #c82333;
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
}

/* FB風格商品header */
.product-header {
    display: flex;
    align-items: center;
    padding: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px 16px 0 0;
    gap: 16px;
    position: relative;
}

.product-image-container {
    flex-shrink: 0;
}

.product-image {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.no-image-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border: 2px dashed #adb5bd;
    border-radius: 16px;
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.product-basic-info {
    flex: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: #1c1e21;
    margin-bottom: 12px;
    line-height: 1.3;
    padding-right: 40px;
}

.product-details {
    display: flex;
    flex-direction: row;
    gap: 30px; /* 元素間距，可依需求調整 */
    align-items: center; /* 垂直置中 */
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-icon {
    font-size: 14px;
}

.detail-text {
    font-size: 22px;
    font-weight: 700;
    color: ghostwhite;
    background: rgba(54, 88, 153, 0.8);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 22px;
}


/* 狀態切換按鍵控制項 */
.status-controls {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 12px;
    background: #fff;
    justify-content: space-around;
}

.status-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 2px solid #e4e6ea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    flex: 1;
    min-height: 28px;
    outline: none;
    position: relative;
    overflow: hidden;
}

.status-toggle-btn:hover {
    border-color: #4267b2;
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 103, 178, 0.25);
}

.status-toggle-btn[data-active="true"] {
    background: linear-gradient(135deg, #4267b2, #365899);
    border-color: #365899;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(66, 103, 178, 0.4);
}

.status-toggle-btn[data-active="true"]:hover {
    background: linear-gradient(135deg, #365899, #29487d);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(66, 103, 178, 0.5);
}

.status-toggle-btn .btn-icon {
    font-size: 18px;
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.status-toggle-btn[data-active="true"] .btn-icon {
    transform: scale(1.2);
}

.status-toggle-btn .btn-text {
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
    transition: color 0.2s ease;
}

.status-toggle-btn[data-active="true"] .btn-text {
    color: white;
    font-weight: 700;
}

/* 按鍵點擊效果 */
.status-toggle-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.status-toggle-btn[data-active="true"]:active {
    transform: translateY(-1px);
}

/* 日期輸入區域 */
.expiry-input-section {
    padding: 0 20px 6px;
    background: #fff;
}

/* 通用輸入框樣式 */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 18px;
    color: #65676b;
}

.input-icon.notes-icon {
    top: 16px;
    left: 16px;
}

.styled-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e4e6ea;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    transition: all 0.2s;
    outline: none;
    min-height: 50px;
}

.styled-input:focus {
    border-color: #4267b2;
    box-shadow: 0 0 0 3px rgba(66, 103, 178, 0.1);
}

/* 操作區域 */
.action-section {
    padding: 12px 20px;
    background: #fff;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quantity-input-container {
    position: relative;
}

.quantity-input {
    text-align: left;
    font-size: 18px;
    font-weight: 700;
}

.quick-fill-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: #42b883;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(66, 184, 131, 0.3);
}

.quick-fill-btn:hover {
    background: #369870;
    transform: translateY(-50%) scale(1.05);
}

/* 備註區域 */
.notes-section {
    padding: 6px 20px;
    background: #fff;
    border-radius: 0 0 16px 16px;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.notes-title {
    font-weight: 600;
    color: #1c1e21;
    font-size: 16px;
}

.options-btn {
    background: linear-gradient(135deg, #42b883, #369870);
    color: white;
    border: none;
    padding: 8px 17px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(66, 184, 131, 0.3);
}

.options-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 184, 131, 0.4);
    background: linear-gradient(135deg, #369870, #2d7a5b);
}

.options-btn:active {
    transform: translateY(0);
}

/* 備註輸入框容器 */
.notes-input-container {
    position: relative;
}

/* 備註輸入框內的清除按鍵 */
.clear-notes-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.clear-notes-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.4);
}

.clear-notes-btn:active {
    transform: scale(0.95);
}

/* 備註輸入彈出視窗 */
.notespad-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.show .notespad-content {
    transform: scale(1);
}

.notespad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e4e6ea;
    background: linear-gradient(135deg, #4267b2, #365899);
    color: white;
    border-radius: 20px 20px 0 0;
}

.notespad-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.notespad-display {
    padding: 20px 24px;
    background: #f8f9fa;
}

.notes-display {
    width: 100%;
    height: 100px;
    padding: 16px;
    border: 2px solid #e4e6ea;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.notes-display:focus {
    border-color: #4267b2;
}

.notespad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 24px;
    background: #fff;
}

.notes-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e4e6ea;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.notes-shortcut-btn {
    height: 40px;
    font-size: 22px;
    font-weight: 600;
    border: 2px solid #42b883;
    border-radius: 8px;
    background: linear-gradient(135deg, #42b883, #369870);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(66, 184, 131, 0.3);
}

.notes-shortcut-btn:hover {
    background: linear-gradient(135deg, #369870, #2d7a5b);
    border-color: #369870;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(66, 184, 131, 0.4);
}

.notes-shortcut-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(66, 184, 131, 0.3);
}

.notes-input {
    width: 100%;
    min-height: 80px;
    padding: 16px 40px 16px 16px; /* 右側增加空間給清除按鍵 */
    border: 2px solid #e4e6ea;
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    background: #fff;
}

.notes-input:focus {
    border-color: #4267b2;
    box-shadow: 0 0 0 3px rgba(66, 103, 178, 0.1);
}

/* 按鍵區 */
.modal-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px 16px;
    border-top: 1px solid #e4e6ea;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.save-btn {
    background: linear-gradient(135deg, #4267b2, #365899);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 103, 178, 0.3);
}

.cancel-btn {
    background: #65676b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.cancel-btn:hover {
    background: #5a5c61;
    transform: translateY(-1px);
}

/* 九宮格數字輸入器 */
.numberpad-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 350px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.numberpad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
}

/* 年份快捷鍵樣式 */
.year-shortcuts {
    display: flex;
    gap: 8px;
    padding: 15px 20px 10px;
    justify-content: center;
}

.year-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1877f2;
    background: #e7f3ff;
    border: 1px solid #1877f2;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-btn:hover {
    background: #1877f2;
    color: white;
}

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

/* 倉位歷史記錄樣式 */
.warehouse-history {
    padding: 12px 20px 8px;
    background: #f8f9fa;
    border-top: 1px solid #e4e6ea;
    border-bottom: 1px solid #e4e6ea;
}

.warehouse-history-title {
    font-size: 12px;
    color: #65676b;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.warehouse-history-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.warehouse-history-btn {
    flex: 1;
    max-width: 100px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1877f2;
    background: white;
    border: 2px solid #1877f2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.warehouse-history-btn:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

.warehouse-history-btn:active {
    transform: scale(0.95);
}

.numberpad-display {
    padding: 20px;
    text-align: center;
}

.number-display {
    width: 100%;
    padding: 12px;
    font-size: 20px;
    text-align: center;
    border: 2px solid #e4e6ea;
    border-radius: 8px;
    background: #f8f9fa;
    outline: none;
}

.numberpad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
}

.num-btn {
    height: 55px;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e4e6ea;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.num-btn:hover {
    background: #f0f2f5;
    transform: scale(1.02);
}

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

.delete-btn {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.delete-btn:hover {
    background: #ff5252;
}

.clear-btn {
    background: #ffa726;
    color: white;
    border-color: #ffa726;
}

.clear-btn:hover {
    background: #ff9800;
}

.confirm-btn {
    background: #42b883;
    color: white;
    border-color: #42b883;
}

.confirm-btn:hover {
    background: #369870;
}

/* 提示訊息 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1e21;
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* 固定右下角按鍵群組 */
.warehouse-float-btn {
    position: fixed;
    bottom: 85px;  /* 在訊息按鈕上方 */
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    transition: all 0.3s ease;
}

.warehouse-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.5);
    background: linear-gradient(135deg, #f57c00, #e65100);
}

.warehouse-float-btn:active {
    transform: scale(0.95);
}

.message-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4267b2, #365899);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(66, 103, 178, 0.4);
    transition: all 0.3s ease;
}

.message-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(66, 103, 178, 0.5);
    background: linear-gradient(135deg, #365899, #2d4373);
}

.message-float-btn:active {
    transform: scale(0.95);
}

/* 訊息輸入彈出視窗 */
.message-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.show .message-modal-content {
    transform: scale(1);
}

.message-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e4e6ea;
    background: linear-gradient(135deg, #4267b2, #365899);
    color: white;
    border-radius: 20px 20px 0 0;
}

.message-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.message-modal-body {
    padding: 24px;
}

.message-input-container {
    width: 100%;
}

.message-input {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e4e6ea;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.message-input:focus {
    border-color: #4267b2;
}

.message-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e4e6ea;
}

.send-message-btn {
    background: linear-gradient(135deg, #42b883, #369870);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(66, 184, 131, 0.3);
}

.send-message-btn:hover {
    background: linear-gradient(135deg, #369870, #2d7a5b);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 184, 131, 0.4);
}

.cancel-message-btn {
    background: #65676b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-message-btn:hover {
    background: #5a5c61;
    transform: translateY(-1px);
}

/* 響應式設計 - 中等手機螢幕 */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .search-toolbar {
        padding: 6px 12px;
    }
    
    .search-container {
        gap: 6px;
        justify-content: center;
    }
    
    .search-input-container {
        min-width: auto;
        max-width: none;
        flex: 1;
        order: 2;
    }
    
    .inline-filters {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        flex-shrink: 0;
        gap: 6px;
    }
    
    .supplier-filter {
        order: 1;
    }
    
    .search-input {
        padding: 6px 30px 6px 10px;
        font-size: 14px;
    }
    
    .toolbar-btn {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 16px;
        width: auto;
        flex-shrink: 0;
    }
    
    .inline-filters {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    .filter-radio .radio-text {
        font-size: 11px;
    }
    
    
    
    .filter-panel {
        top: 80px;
        padding: 12px;
    }
    
    .item-content {
        grid-template-columns: 90px 1fr;
        gap: 0px;
        min-height: 110px;
        padding: 16px;
    }
    
    .item-image,
    .item-image-placeholder {
        width: 105px;
        height: 105px;
    }
    
    .item-name {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .item-spec-quantity {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        margin-top: 6px;
    }
    
    .item-spec {
        font-size: 14px;
        padding: 4px 10px;
        flex-shrink: 0;
    }
    
    .item-quantity-combined {
        font-size: 14px;
        padding: 4px 10px;
        flex-shrink: 0;
    }
    
    .item-status {
        position: absolute;
        top: -1px;
        right: -1px;
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 0 12px 0 12px;
        border: 1px solid;
    }
    
    .product-header {
        flex-direction: row;
        text-align: left;
        gap: 12px;
        padding: 8px;
        align-items: flex-start;
    }
    
    .product-header .product-image {
        width: 100px;
        height: 100px;
    }
    
    .product-basic-info {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 140px);
    }
    
    .product-details {
        flex-direction: column !important;
        gap: 6px;
        align-items: flex-start !important;
        width: 100%;
    }
    
    .detail-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        width: auto;
    }
    
    .detail-text {
        font-size: 16px;
        padding: 5px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        border-radius: 16px;
        background: rgba(54, 88, 153, 0.8);
        color: ghostwhite;
        font-weight: 700;
    }
    
    .detail-icon {
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .product-header .product-image {
        width: 120px;
        height: 120px;
    }
    
    .input-group {
        grid-template-columns: 1fr 1fr; /* 保持並排，但縮小間距 */
        gap: 8px;
    }
    
    .status-controls {
        flex-direction: row;
        gap: 10px;
        padding: 12px;
        justify-content: space-around;
    }
    
    .status-toggle-btn {
        padding: 6px 8px;
        min-height: 28px;
    }
    
    .status-toggle-btn .btn-text {
        font-size: 16px;
    }
    
    .status-toggle-btn .btn-icon {
        font-size: 16px;
        margin-right: 6px;
    }
    
    
    .modal-footer {
        flex-direction: row; /* 保持水平並排 */
        gap: 10px; /* 縮小間距 */
        padding: 6px 12px;
    }
    
    .numberpad-grid {
        gap: 6px;
        padding: 12px;
    }
    
    .num-btn {
        height: 55px;
        font-size: 24px;
    }
}


@media (max-width: 480px) {
    .main-content {
        padding: 16px 12px;
    }

    .item-content {
        padding: 8px 12px;
        gap: 0px;
        min-height: 100px;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
    }
    
    .product-details {
        flex-direction: column !important;
        gap: 4px;
        align-items: flex-start !important;
        width: 100%;
    }
    
    .detail-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 3px;
        width: auto;
    }
    
    .detail-text {
        font-size: 14px;
        padding: 4px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        border-radius: 16px;
        background: rgba(54, 88, 153, 0.8);
        color: ghostwhite;
        font-weight: 700;
    }
    
    .detail-icon {
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .product-header .product-image {
        width: 105px;
        height: 105px;
    }
    
}

/* ====== 選項配對區域樣式 ====== */
.option-mapping-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-top: -3px;
}

/* 搜尋框容器 */
.options-search-container {
    margin-bottom: 15px;
}

.options-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #dadde1;
    border-radius: 20px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: white;
    min-height: 40px;
}

.options-search-input:focus {
    border-color: #4267b2;
    box-shadow: 0 0 0 3px rgba(66, 103, 178, 0.1);
}

/* 選項容器 - 滾動佈局 */
.internal-options-container {
    max-height: 280px; /* 增加高度以容納多行文字 */
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 一列兩組 */
    gap: 12px;
    padding: 8px;
    align-items: start; /* 頂部對齊，避免高度不同時的對齊問題 */
    
    /* 美化滾動條 */
    scrollbar-width: thin;
    scrollbar-color: #4267b2 #f1f1f1;
}

.internal-options-container::-webkit-scrollbar {
    width: 8px;
}

.internal-options-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.internal-options-container::-webkit-scrollbar-thumb {
    background: #4267b2;
    border-radius: 4px;
}

.internal-options-container::-webkit-scrollbar-thumb:hover {
    background: #365899;
}

/* 選項按鈕 - 較大字體 */
.internal-option-btn {
    background: white;
    border: 2px solid #dadde1;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1c1e21;
    text-align: center;
    white-space: normal; /* 允許文字換行 */
    word-wrap: break-word; /* 長單詞自動換行 */
    overflow-wrap: break-word; /* 確保長文字換行 */
    line-height: 1.3; /* 適當的行高 */
    min-height: 38px;
    height: auto; /* 高度自適應內容 */
    display: flex;
    align-items: center;
    justify-content: center;
    hyphens: auto; /* 自動斷字 */
}

.internal-option-btn:hover {
    border-color: #4267b2;
    background: #f0f8ff;
    color: #4267b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 103, 178, 0.2);
}

.internal-option-btn.selected {
    background: linear-gradient(135deg, #4267b2, #365899);
    color: white;
    border-color: #4267b2;
    box-shadow: 0 4px 12px rgba(66, 103, 178, 0.4);
    transform: translateY(-1px);
}

.internal-option-btn.hidden {
    display: none;
}

.internal-option-btn.selected:hover {
    background: linear-gradient(135deg, #365899, #2d4a7a);
    transform: translateY(-1px);
}

.no-options, .no-internal-options {
    color: #65676b;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    font-style: italic;
    background: white;
    grid-column: 1 / -1; /* 跨越兩列 */
    border: 1px solid #dadde1;
    border-radius: 6px;
    width: 100%;
}

/* 切換按鈕樣式 */
.options-toggle-btn {
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    user-select: none;
    transition: all 0.2s ease;
}

.options-toggle-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.options-toggle-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 123, 255, 0.2);
}

/* ====== 響應式設計 ====== */
@media (max-width: 768px) {
    .internal-options-container {
        flex-direction: column;
    }
    
    .internal-option-btn {
        width: 100%;
        min-width: auto;
        text-align: center;
        padding: 6px 10px;
        white-space: normal; /* 允許文字換行 */
        height: auto; /* 高度自適應 */
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .option-mapping-section {
        padding: 8px;
        margin-top: -3px;
    }

    .internal-option-btn {
        font-size: 18px;
        padding: 6px 8px;
        white-space: normal; /* 允許文字換行 */
        height: auto; /* 高度自適應 */
        line-height: 1.3;
    }
}

/* ====== 給倉位功能樣式 ====== */
.warehouse-modal-content {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.show .warehouse-modal-content {
    transform: scale(1);
}

.warehouse-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 2px solid #e4e6ea;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border-radius: 20px 20px 0 0;
}

.warehouse-modal-header h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.warehouse-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.warehouse-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1c1e21;
}

.add-zone-btn {
    background: linear-gradient(135deg, #42b883, #369870);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(66, 184, 131, 0.3);
}

.add-zone-btn:hover {
    background: linear-gradient(135deg, #369870, #2d7a5b);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(66, 184, 131, 0.4);
}

/* 分區列表 */
.zones-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-height: 350px;
    overflow-y: auto;
    padding: 12px;
}

.zone-card {
    background: white;
    border: 3px solid #e4e6ea;
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.zone-card:hover {
    border-color: #ff9800;
    background: #fff8f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.25);
}

.zone-card.selected {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-color: #ff9800;
    color: white;
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.5);
    transform: scale(1.05);
}

.zone-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.zone-count {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 600;
}

/* 商品搜尋 */
.product-search-container {
    flex: 1;
    max-width: 300px;
}

.product-search-input {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid #e4e6ea;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.product-search-input:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.selected-zone-badge {
    background: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
}

/* 批次選擇控制 */
.batch-select-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #e4e6ea;
}

.batch-btn {
    background: white;
    border: 2px solid #4267b2;
    color: #4267b2;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.batch-btn:hover {
    background: #4267b2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 103, 178, 0.3);
}

.selected-count {
    margin-left: auto;
    font-size: 16px;
    color: #495057;
    font-weight: 600;
}

.selected-count strong {
    color: #ff9800;
    font-size: 20px;
    font-weight: 700;
}

/* 商品列表 */
.products-list {
    max-height: 500px;
    overflow-y: auto;
    border: 2px solid #e4e6ea;
    border-radius: 12px;
    background: white;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 16px 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 70px;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.product-item.checked {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.product-checkbox {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    cursor: pointer;
    accent-color: #ff9800;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #1c1e21;
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-spec {
    font-size: 14px;
    color: #65676b;
    line-height: 1.4;
}

.product-warehouse {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
    margin-left: 12px;
}

.product-warehouse.has-warehouse {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 700;
}

.product-warehouse.no-warehouse {
    background: #f5f5f5;
    color: #999;
}

/* 彈出視窗底部按鈕 */
.warehouse-modal-footer {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 2px solid #e4e6ea;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.warehouse-action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assign-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.assign-btn:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}

.remove-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.remove-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.cancel-btn {
    background: #65676b;
    color: white;
}

.cancel-btn:hover {
    background: #5a5c61;
    transform: translateY(-1px);
}