* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; color: #333; background: #f5f5f5; min-height: 100vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
header { background: linear-gradient(135deg, #667eea, #764ba2); padding: 15px 0; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: #fff; text-decoration: none; }
nav a { color: #fff; text-decoration: none; margin-left: 20px; }
.hero { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; padding: 50px 0; text-align: center; }
.hero h1 { font-size: 32px; }
main { padding: 40px 0; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.tool-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.2s; }
.tool-card:hover { transform: translateY(-4px); }
.tool-card h3 { color: #667eea; margin-bottom: 8px; }
.tool-card p { color: #666; font-size: 14px; }
.tool-card a { display: inline-block; margin-top: 10px; padding: 8px 16px; background: #667eea; color: #fff; text-decoration: none; border-radius: 5px; }
footer { background: #333; color: #fff; padding: 25px 0; text-align: center; }
.tool-page { background: #fff; border-radius: 12px; padding: 30px; margin: 20px auto; max-width: 800px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.tool-page h1 { color: #667eea; margin-bottom: 10px; }
.tool-page .desc { color: #666; margin-bottom: 20px; }
.tool-page textarea { width: 100%; height: 200px; padding: 15px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; font-family: monospace; resize: vertical; }
.tool-page textarea:focus { outline: none; border-color: #667eea; }
.tool-page input { width: 100%; padding: 12px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 16px; margin-bottom: 15px; }
.tool-page input:focus { outline: none; border-color: #667eea; }
.tool-page button { padding: 12px 24px; background: #667eea; color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; margin-right: 10px; }
.tool-page button:hover { background: #5a6fd6; }
.tool-page .result { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-top: 20px; white-space: pre-wrap; font-family: monospace; min-height: 100px; }
.tool-page .result.error { background: #fee; color: #c00; }
.back-link { color: #667eea; text-decoration: none; display: inline-block; margin-bottom: 15px; }
.info { background: #f0f4ff; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
