:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --bg-color: #f9f9f9;
    --border-radius: 12px;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    background: var(--bg-color);
    margin: 0;
    padding: 10px;
}

.container {
    max-width: 800px;
    width: 95%;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 15px;
    margin-bottom: 50px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

.db-status {
    margin-left: 0;
    color: #888;
    font-size: 0.85em;
    margin-top: 5px;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.controls {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detect-btn {
    background: var(--primary-color);
    color: white;
}

.strikethrough-btn {
    background: var(--secondary-color);
    color: white;
}

.sensitive-list {
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
}

.word-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
    gap: 12px;
}

.word-term {
    min-width: 80px;
    width: auto;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}

.replacement-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    max-width: calc(100% - 100px);
    margin: 0 10px;
}

.process-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.process-btn {
    background: #4CAF50;
    color: white;
}

.copy-btn {
    background: #2196F3;
    color: white;
}

.feedback-footer {
    text-align: center;
    background-color: #f0f0f0;
    padding: 15px;
    color: #2196F3;
    font-size: 0.9em;
    border-top: 1px solid #ddd;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.small-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 18px;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.5em;
        margin: 0 0 5px 0;
    }
    
    .word-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .word-term {
        min-width: 60px;
        font-size: 14px;
    }

    .replacement-input {
        font-size: 13px;
        padding: 4px 6px;
        max-width: calc(100% - 80px);
    }
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overscroll-behavior: contain;
}