/* DsfX unified tool page styling */

:root {
  --container-max: 1200px;
  --radius-lg: 12px;
  --primary-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-card: 0 4px 20px rgba(0,0,0,.08);
}

body { background: #fff; min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 2rem; }
header { text-align: center; margin-bottom: 3rem; padding: 2rem 0; background: var(--primary-grad); color: #fff; border-radius: var(--radius-lg); box-shadow: 0 4px 20px rgba(102,126,234,.3); }
header h1 { font-size: 2.25rem; margin-bottom: .5rem; font-weight: 700; }
header p { font-size: 1.05rem; opacity: .9; font-weight: 300; }

.tool-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); border: 1px solid #e2e8f0; }

.input-section, .settings-section, .output-section { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); margin-bottom: 2rem; border: 1px solid #e2e8f0; }
.input-section { background: #f8f9fa; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.section-header h3 { font-size: 1.25rem; color: #2d3748; margin: 0; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.input-options { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

textarea { width: 100%; min-height: 180px; box-sizing: border-box; padding: 1rem; border: 2px solid #e2e8f0; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; background: #f8fafc; transition: border-color .2s ease; }
textarea:focus { outline: none; border-color: #667eea; background: #fff; box-shadow: 0 0 0 3px rgba(102,126,234,.1); }

/* Common buttons */
.clear-btn, .paste-btn, .copy-btn { border: none; border-radius: 8px; padding: .6rem 1rem; cursor: pointer; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .5rem; transition: transform .2s ease; color: #fff; }
.clear-btn { background: #e53e3e; }
.paste-btn { background: #6c757d; }
.copy-btn { background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%); }
.clear-btn:hover, .paste-btn:hover, .copy-btn:hover { transform: translateY(-2px); }

/* Action buttons grid */
.settings-section .buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-top: .5rem; }
.settings-section .buttons button { padding: .75rem 1rem; border: none; border-radius: var(--radius-lg); background: var(--primary-grad); color: #fff; cursor: pointer; font-weight: 600; }
.settings-section .buttons button:hover { filter: brightness(1.03); transform: translateY(-1px); }
