:root{--primary-bg: #f4f7f9;--card-bg: #ffffff;--header-bg: #2c3e50;--primary-text: #333;--header-text: #ffffff;--accent-color: #3498db;--accent-hover: #2980b9;--border-color: #e0e0e0;--error-color: #e74c3c;--success-color: #2ecc71;--font-family: "Poppins", sans-serif}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-family);background-color:var(--primary-bg);color:var(--primary-text);line-height:1.6}#root{max-width:900px;margin:0 auto;padding:1rem}.app-container{display:flex;flex-direction:column;gap:1.5rem}header{background-color:var(--header-bg);color:var(--header-text);padding:1.5rem;border-radius:12px;text-align:center;box-shadow:0 4px 15px #0000001a}header h1{font-weight:600;font-size:2rem}.tabs{display:flex;justify-content:center;gap:.5rem;background-color:var(--card-bg);padding:.5rem;border-radius:50px;box-shadow:0 2px 8px #00000014}.tab-button{flex:1;padding:.75rem 1rem;border:none;background-color:transparent;color:var(--primary-text);font-family:var(--font-family);font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease;border-radius:50px;display:flex;align-items:center;justify-content:center;gap:.5rem}.tab-button.active{background-color:var(--accent-color);color:var(--header-text);box-shadow:0 2px 5px #3498db66}.tab-button:not(.active):hover{background-color:#ecf0f1}.tab-content{background-color:var(--card-bg);padding:2rem;border-radius:12px;box-shadow:0 4px 15px #0000000d}.tab-content h2{margin-bottom:1.5rem;text-align:center;font-weight:600;color:var(--header-bg)}.input-group{display:flex;gap:1rem;margin-bottom:1.5rem}input[type=text],textarea{width:100%;padding:.75rem 1rem;border:1px solid var(--border-color);border-radius:8px;font-family:var(--font-family);font-size:1rem;transition:border-color .3s,box-shadow .3s}input[type=text]:focus,textarea:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #3498db33}textarea{resize:vertical;min-height:120px}.btn{padding:.75rem 1.5rem;border:none;border-radius:8px;background-color:var(--accent-color);color:var(--header-text);font-family:var(--font-family);font-size:1rem;font-weight:500;cursor:pointer;transition:background-color .3s,transform .2s;display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.btn:hover{background-color:var(--accent-hover);transform:translateY(-2px)}.btn:disabled{background-color:#bdc3c7;cursor:not-allowed;transform:none}.loader,.error-message,.result-card{margin-top:1.5rem;text-align:center}.loader{border:4px solid #f3f3f3;border-top:4px solid var(--accent-color);border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin-left:auto;margin-right:auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-message{color:var(--error-color);background-color:#fbeae5;padding:1rem;border-radius:8px}.result-card{text-align:left;padding:1.5rem;border:1px solid var(--border-color);border-radius:8px;animation:fadeIn .5s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.result-card h3{color:var(--accent-color);display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.result-card p{margin-bottom:.75rem}.result-card strong{color:var(--header-bg)}.pronounce-btn{background:none;border:none;cursor:pointer;color:var(--accent-color);transition:color .3s}.pronounce-btn:hover{color:var(--accent-hover)}.material-symbols-outlined{vertical-align:middle}.sub-tabs{display:flex;justify-content:center;margin-bottom:1.5rem;border-bottom:1px solid var(--border-color)}.sub-tab-button{padding:.5rem 1rem;border:none;background:none;cursor:pointer;font-size:1rem;font-weight:500;color:#7f8c8d;position:relative;transition:color .3s}.sub-tab-button.active{color:var(--accent-color)}.sub-tab-button.active:after{content:"";position:absolute;bottom:-1px;left:0;width:100%;height:3px;background-color:var(--accent-color);border-radius:3px 3px 0 0}.correction-result ul{list-style:none;padding:0}.correction-result li{background-color:#f8f9f9;padding:1rem;border-radius:8px;margin-bottom:1rem;border-left:4px solid var(--accent-color)}.transcribed-text{font-style:italic;color:#7f8c8d;margin-top:1rem;padding:1rem;background-color:#f8f9f9;border-radius:8px}.vocab-categories{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;margin-bottom:2rem}.vocab-list{list-style:none;padding:0}.vocab-item{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:1rem;padding:1rem;border-bottom:1px solid var(--border-color);transition:background-color .3s}.vocab-item:last-child{border-bottom:none}.vocab-item:hover{background-color:#f8f9f9}@media (max-width: 600px){body{font-size:14px}#root{padding:.5rem}header h1{font-size:1.5rem}.tabs{flex-direction:column;border-radius:12px}.tab-button{border-radius:8px}.input-group{flex-direction:column}.btn{width:100%}.tab-content{padding:1.5rem}.vocab-item{grid-template-columns:1fr;text-align:center}}
