@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Padauk:wght@400;700&display=swap');

body {
    font-family: 'Sarabun', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

h1 { text-align: center; color: #333; margin-bottom: 5px; }
.subtitle { text-align: center; color: #777; margin-bottom: 25px; font-size: 0.9rem; }

/* Form Elements */
input[type="text"], input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Sarabun', sans-serif;
}

input[type="text"]:focus { border-color: #4a90e2; outline: none; }

.btn {
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.btn:hover { background-color: #357abd; }
.btn-secondary { background-color: #6c757d; margin-top: 10px; }

/* Results */
.word-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.th-word { font-weight: bold; color: #333; font-size: 1.1rem; }
.mm-word { font-family: 'Padauk', sans-serif; color: #e67e22; font-size: 1.2rem; }

/* Utilities */
.alert { padding: 10px; border-radius: 5px; margin-bottom: 15px; text-align: center; }
.success { background-color: #d4edda; color: #155724; }
.error { background-color: #f8d7da; color: #721c24; }

.nav-links { margin-top: 30px; text-align: center; border-top: 1px solid #eee; padding-top: 20px; }
.nav-links a { margin: 0 10px; text-decoration: none; color: #4a90e2; }
.nav-links a:hover { text-decoration: underline; }

/* เพิ่มต่อท้ายไฟล์ style.css */

.action-btns {
    display: flex;
    gap: 10px;
    min-width: 80px;
    justify-content: flex-end;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bdc3c7;
    transition: 0.2s;
    font-size: 1.1rem;
    padding: 5px;
}

.icon-btn:hover { color: #4a90e2; transform: scale(1.1); }
.icon-btn.edit:hover { color: #f39c12; }

/* Tooltip เล็กๆ เวลา Copy สำเร็จ */
.copy-feedback {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1000;
}
.copy-feedback.show { opacity: 1; }