/* Global Reset */ * { box-sizing: border-box; margin: 0; padding: 0; } /* Body Themes */ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #000; color: #e2e8f0; transition: background 0.3s, color 0.3s; min-height: 100vh; display: flex; justify-content: center; align-items: start; padding: 20px; } body.light { background-color: #f1f5f9; color: #1e293b; } /* Container */ .container { width: 100%; max-width: 720px; background-color: #1e293b; border-radius: 12px; padding: 20px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); } body.light .container { background-color: #ffffff; color: #1e293b; } /* Header */ .app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; } .brand img { height: 42px; } /* Header Controls */ .header-controls { display: flex; gap: 10px; align-items: center; } /* Custom Select */ .custom-select select { padding: 6px 12px; border-radius: 6px; border: none; background-color: #334155; color: #e2e8f0; font-weight: 500; cursor: pointer; } body.light .custom-select select { background-color: #e2e8f0; color: #1e293b; } /* Theme Toggle Switch */ /* Switch base */ .switch { position: relative; display: inline-block; width: 48px; height: 26px; } .switch input { opacity: 0; width: 0; height: 0; } /* Slider */ .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #64748b; transition: 0.4s; border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 3px; background-color: white; transition: 0.4s; border-radius: 50%; } /* When checked */ input:checked + .slider { background-color: #4f46e5; } input:checked + .slider:before { transform: translateX(22px); } .theme-toggle-wrapper { display: flex; align-items: center; gap: 8px; } /* Optional: shrink icons a bit */ .theme-icon { font-size: 18px; } /* Tabs */ .tab-bar { display: flex; gap: 10px; margin: 20px 0; } .tab { flex: 1; padding: 10px; font-weight: 600; text-align: center; border-radius: 8px; background: #334155; color: #e2e8f0; cursor: pointer; border: 2px solid transparent; transition: 0.2s ease-in-out; } .tab.active { background-color: #4f46e5; color: white; border-color: #6366f1; } body.light .tab { background-color: #e2e8f0; color: #1e293b; } body.light .tab.active { background-color: #6366f1; color: white; } /* Main Area */ main { min-height: 300px; } /* Inputs & Textareas */ input[type="text"], input[type="number"], textarea { width: 100%; padding: 10px; margin: 6px 0 12px; border-radius: 6px; border: 1px solid #94a3b8; background: #1e293b; color: white; } body.light input[type="text"], body.light input[type="number"], body.light textarea { background: #f8fafc; color: #1e293b; border-color: #cbd5e1; } /* Buttons */ button { padding: 10px 15px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; transition: 0.2s; } button.primary { background-color: #4f46e5; color: white; } button.primary:hover { background-color: #4338ca; } button.success { background-color: #10b981; color: white; } button.success:hover { background-color: #059669; } button.danger { background-color: #ef4444; color: white; } button.danger:hover { background-color: #dc2626; } /* History Lists */ .history-list { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; } .history-item { display: flex; align-items: center; gap: 10px; } .history-item input { flex: 1; padding: 8px; border-radius: 4px; background: #1e293b; color: white; border: 1px solid #334155; } body.light .history-item input { background: #f8fafc; color: #1e293b; border-color: #cbd5e1; } .copy-history { padding: 6px 10px; font-size: 16px; cursor: pointer; border: none; background-color: #475569; color: white; border-radius: 4px; } .copy-history:hover { background-color: #334155; } /* Footer */ .app-footer { margin-top: 30px; text-align: center; font-size: 13px; color: #94a3b8; } body.light .app-footer { color: #64748b; } /* RTL Support */ html[dir="rtl"] { direction: rtl; } html[dir="rtl"] .tab-bar, html[dir="rtl"] .header-controls, html[dir="rtl"] .history-item { flex-direction: row-reverse; }