/* css/common.css */
:root {
    --primary-color: #4579EF;
    --secondary-color: #2ecc71;
    --text-color: #2c3e50;
    --background-color: #f5f6fa;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
}

/* 基础布局 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 20px;
}

/* 容器系统 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px 30px 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 返回按钮系统 */
.back-btn {
    position: absolute;
    left: 30px;
    top: 20px;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.container-back-btn{
    position: absolute;
    left: 30px;
    top: 20px;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #2980b9;
    transform: translateX(-3px);
}


h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

.converter-box {
    display: grid;
    gap: 1.5rem;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 1rem;
    border: 2px solid #4579EF;
    border-radius: 8px;
    resize: vertical;
    font-family: monospace;
    font-size: 16px;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    background: #4579EF;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

button:hover {
    filter: brightness(0.9);
}

#resultArea {
    position: relative;
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #2ecc71;
}

.input-group {
    margin-bottom: 1.5rem;
}


#previewArea {
    margin-top: 2rem;
    display: none;
}

#pdfViewer {
    width: 100%;
    height: 500px;
    border: 2px dashed #ddd;
    border-radius: 6px;
}

.loading {
    display: none;
    text-align: center;
    color: #4579EF;
    margin: 1rem 0;
}

.error {
    color: #e74c3c;
    margin: 1rem 0;
    text-align: center;
    display: none;
}


/* 表格专用样式 */
.data-tools {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#searchInput {
    padding: 0.8rem;
    border: 2px solid #4579EF;
    border-radius: 6px;
    flex: 1;
    max-width: 300px;
}

#typeFilter {
    padding: 0.8rem;
    border: 2px solid #2ecc71;
    border-radius: 6px;
    background: white;
}

.database-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.database-table th,
.database-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.database-table th {
    background: #4579EF;
    color: white;
    position: sticky;
    top: 0;
}

.database-table tr:hover {
    background-color: #f8f9fa;
}

.database-type {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.oracle {
    background: #ffd7b5;
    color: #c25700;
}

.达梦 {
    background: #b3e5fc;
    color: #01579b;
}

.海量 {
    background: #c8e6c9;
    color: #1b5e20;
}

.人大金仓 {
    background: #e1bee7;
    color: #4a148c;
}

/* 在原有样式基础上添加 */
.upload-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.3s;
}

.upload-btn:hover {
    filter: brightness(0.9);
}

.dark {
    --text-color: #f8f8f2;
    --background-color: #2d2d2d;
}

.dark .container {
    background: #1e1e1e;
    box-shadow: 0 3px 15px rgba(255,255,255,0.1);
}