/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 
.rm-wrap {
    max-width: 1500px !important;
    margin: 20px auto !important;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.rm-header { 
    background: #fff; 
    padding: 20px 30px; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    margin-bottom: 25px; 
    border-left: 5px solid #2271b1; 
}

.rm-header h1 { 
    margin: 0 0 10px 0; 
    font-size: 22px; 
    color: #1d2327; 
}

.rm-header p { 
    margin: 0; 
    color: #50575e; 
    font-size: 14px; 
}

.rm-card { 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 1px 4px rgba(0,0,0,0.08); 
    overflow: hidden; 
    margin-bottom: 25px; 
    border: 1px solid #c3c4c7; 
}

.rm-card-header { 
    background: #f6f7f7; 
    padding: 15px 20px; 
    border-bottom: 1px solid #c3c4c7; 
    margin: 0; 
    font-size: 16px; 
    font-weight: 600; 
}

.rm-table { 
    width: 100%; 
    border-collapse: collapse; 
}

.rm-table th { 
    background: #fafafa; 
    border-bottom: 2px solid #dcdcde; 
    padding: 15px 12px; 
    font-weight: 600; 
    color: #1d2327; 
    text-align: left; 
}

.rm-table td { 
    padding: 15px 12px; 
    border-bottom: 1px solid #f0f0f1; 
    vertical-align: top; 
}

.rm-table tr:hover td { 
    background: #fcfcfc; 
}

.rm-badge { 
    display: inline-block; 
    padding: 3px 8px; 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: 600; 
    margin-left: 6px; 
    letter-spacing: 0.3px; 
    vertical-align: middle; 
}

.rm-badge-tp { 
    background: #eef6ee; 
    color: #208720; 
    border: 1px solid #c2e1c2; 
}

.rm-badge-ai { 
    background: #f0f0f1; 
    color: #50575e; 
    border: 1px solid #dcdcde; 
}

.rm-input-group { 
    margin-bottom: 15px; 
}

.rm-input-label { 
    font-weight: 600; 
    color: #1d2327; 
    display: block; 
    margin-bottom: 6px; 
    font-size: 13px; 
}

.rm-input { 
    width: 100%; 
    padding: 6px 10px; 
    border: 1px solid #8c8f94; 
    border-radius: 4px; 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03); 
    transition: border-color 0.15s ease-in-out; 
    box-sizing: border-box;
}

.rm-input:focus { 
    border-color: #2271b1; 
    box-shadow: 0 0 0 1px #2271b1; 
    outline: none; 
}

.rm-original-box { 
    background: #f6f7f7; 
    border-left: 3px solid #646970; 
    padding: 10px 12px; 
    font-size: 12px; 
    color: #3c434a; 
    border-radius: 0 4px 4px 0; 
    margin-top: 8px; 
    line-height: 1.4; 
}

.rm-url-btn { 
    display: inline-flex; 
    align-items: center; 
    padding: 4px 10px; 
    background: #fff; 
    border: 1px solid #c3c4c7; 
    border-radius: 4px; 
    color: #2271b1; 
    text-decoration: none; 
    font-size: 12px; 
    margin-bottom: 6px; 
    font-weight: 500; 
    transition: all 0.2s; 
    white-space: nowrap; 
}

.rm-url-btn:hover { 
    background: #f0f0f1; 
    border-color: #2271b1; 
    color: #0a4b78; 
}

.rm-faq-box { 
    background: #fff; 
    border: 1px solid #e2e4e7; 
    border-left: 4px solid #2271b1; 
    border-radius: 4px; 
    padding: 15px; 
    margin-bottom: 15px; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.03); 
}

.rm-faq-toggle { 
    display: inline-block; 
    background: #fff8e5; 
    padding: 6px 10px; 
    border: 1px solid #cca200; 
    border-radius: 4px; 
    font-weight: 600; 
    font-size: 12px; 
    margin-bottom: 12px; 
    color: #5a4a00; 
    cursor: pointer;
}

/* 浮動儲存列 */
.rm-sticky-footer { 
    position: sticky; 
    bottom: 0; 
    background: rgba(255, 255, 255, 0.95); 
    padding: 15px 40px; 
    border-top: 1px solid #dcdcde; 
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05); 
    backdrop-filter: blur(8px); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 99; 
    margin: 0 -20px -20px -20px; 
}

/* Loading 遮罩 */
#rm-loading-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(255,255,255,0.85); 
    z-index: 99999; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    backdrop-filter: blur(4px); 
}

.rm-spinner { 
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #2271b1; 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    animation: rm-spin 1s linear infinite; 
    margin-bottom: 15px; 
}

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