/* 英文金额大写转换工具样式 */

/* 全局样式补充 */
body {
    background-color: #f9fafb;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tool-container {
    max-width: 896px; /* max-w-4xl */
    margin: 0 auto;
    padding: 32px 16px;
}

/* 头部区域 */
.tool-header {
    text-align: center;
    margin-bottom: 32px;
}

.tool-title {
    font-size: 30px; /* text-3xl */
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.tool-description {
    margin-top: 8px;
    font-size: 14px;
    color: #4b5563;
}

/* 卡片样式 */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e5e7eb;
}

/* 表单元素 */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.input-field,
.select-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #9ca3af; /* border-gray-400 */
    border-radius: 6px;
    font-size: 16px;
    background-color: #f9fafb;
    color: #111827;
    transition: all 0.2s;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.input-field::placeholder {
    color: #6b7280;
}

.input-field:focus,
.select-field:focus {
    outline: none;
    border-color: #3b82f6;
    ring: 1px solid #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
    background-color: #ffffff;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-wrapper input[type="checkbox"] {
    height: 16px;
    width: 16px;
    color: #2563eb;
    border-radius: 4px;
    border-color: #d1d5db;
    cursor: pointer;
}

.checkbox-wrapper label {
    margin-left: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 16px;
}

.btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.btn:focus {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(59, 130, 246, 0.5);
}

.btn-primary {
    background-color: #2563eb; /* blue-600 */
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8; /* blue-700 */
}

.btn-secondary {
    background-color: #4b5563; /* gray-600 */
    color: white;
}

.btn-secondary:hover {
    background-color: #374151; /* gray-700 */
}

.btn-success {
    background-color: #16a34a; /* green-600 */
    color: white;
}

.btn-success:hover {
    background-color: #15803d; /* green-700 */
}

.btn-success.copied {
    background-color: #166534; /* green-800 */
}

/* 结果显示区域 */
.result-container {
    margin-bottom: 32px;
}

/* Success Result */
.result-success {
    background-color: #f0fdf4; /* green-50 */
    border: 1px solid #bbf7d0; /* green-200 */
    border-radius: 8px;
    padding: 24px;
}

.result-success h3 {
    font-size: 18px;
    font-weight: 600;
    color: #166534; /* green-800 */
    margin: 0 0 8px 0;
}

.result-box-inner {
    background-color: #ffffff;
    border: 1px solid #86efac; /* green-300 */
    border-radius: 6px;
    padding: 16px;
}

.result-text-content {
    color: #111827; /* gray-900 */
    font-family: monospace;
    font-size: 14px;
    line-height: 1.625;
    word-break: break-all;
    margin: 0;
}

.result-meta {
    margin-top: 12px;
    font-size: 14px;
    color: #15803d; /* green-700 */
}

.result-meta p {
    margin: 4px 0;
}

/* Error Result */
.result-error {
    background-color: #fef2f2; /* red-50 */
    border: 1px solid #fecaca; /* red-200 */
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
}

.error-icon {
    width: 20px;
    height: 20px;
    color: #f87171; /* red-400 */
    margin-right: 8px;
    flex-shrink: 0;
}

.error-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: #991b1b; /* red-800 */
    margin: 0;
}

.error-content p {
    font-size: 14px;
    color: #b91c1c; /* red-700 */
    margin: 4px 0 0 0;
}


/* 常用示例 */
.examples-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    margin-top: 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .examples-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.example-btn {
    padding: 8px 16px;
    background-color: #f3f4f6; /* gray-100 */
    color: #374151; /* gray-700 */
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.example-btn:hover {
    background-color: #e5e7eb; /* gray-200 */
}

/* 使用说明 */
.instructions-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0;
}

.instructions-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.instructions-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: #1f2937; /* gray-800 */
    margin: 0 0 4px 0;
}

.instructions-content p {
    color: #4b5563; /* gray-600 */
    margin: 0;
    line-height: 1.5;
}

.instructions-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #4b5563;
}

.instructions-content li {
    margin-bottom: 4px;
}

.currency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    color: #4b5563;
}

@media (min-width: 768px) {
    .currency-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Icons */
.icon-svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
