:root { --bg-dark: #121212; --card-bg: #1e1e1e; --text-light: #f0f0f0; --text-muted: #b0b0b0; --accent-main: #007bff; --accent-secondary: #007bff; --border-color: rgba(255, 255, 255, 0.08); --shadow-color: rgba(0, 0, 0, 0.4); --font-primary: 'Inter', sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-primary); } body { background: var(--bg-dark); color: var(--text-light); min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 20px; padding-top: 70px; /* Space for fixed nav */ line-height: 1.6; font-size: 15px; /* Slightly smaller base font size */ } /* Start Navigation Bar */ nav { position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(18, 18, 18, 0.95); /* Darker, slightly transparent */ backdrop-filter: blur(8px); box-shadow: 0 2px 10px var(--shadow-color); z-index: 1000; padding: 12px 20px; /* Slightly more padding */ display: flex; justify-content: center; align-items: center; } nav ul { list-style: none; display: flex; gap: 25px; /* Slightly less gap */ } nav a { color: var(--text-light); text-decoration: none; font-weight: 500; padding: 6px 0; position: relative; transition: color 0.3s ease; font-size: 0.95em; /* Slightly smaller nav text */ } nav a::after { content: ''; position: absolute; left: 0; bottom: -4px; /* Move underline down */ width: 0; height: 2px; background-color: var(--accent-main); transition: width 0.3s ease; } nav a:hover { color: var(--accent-main); } nav a:hover::after { width: 100%; } .main-container { width: 100%; max-width: 450px; background: var(--card-bg); border-radius: 10px; box-shadow: 0 6px 15px var(--shadow-color); padding: 20px; border: 1px solid var(--border-color); margin-bottom: 25px; } /* End Main Container */ /* Start Header Section */ .header { text-align: center; margin-bottom: 15px; } .logo-container { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 8px; } .logo-title { font-size: 1.5rem; font-weight: 600; color: var(--text-light); background: linear-gradient(45deg, var(--accent-main), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .title { font-size: 1.7rem; font-weight: 600; color: var(--text-light); margin-bottom: 8px; } .description { color: var(--text-muted); font-size: 0.85em; max-width: 380px; margin: 0 auto; } /* End Header Section */ /* Start Password Box */ .password-box { background: #1a1a1a; /* Darker input background */ border-radius: 8px; padding: 10px; margin-bottom: 12px; border: 1px solid rgba(0, 123, 255, 0.3); /* Blue border */ display: flex; align-items: center; justify-content: space-between; min-height: 45px; /* Slightly smaller height */ } #password-output { font-size: 1em; word-break: break-all; color: #ffffff; flex-grow: 1; font-weight: 500; padding-right: 8px; } .copy-btn { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 0.9em; display: flex; align-items: center; gap: 4px; transition: color 0.3s ease; position: relative; } .copy-btn:hover { color: var(--accent-main); } .copy-tooltip { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.7); color: #fff; padding: 4px 8px; border-radius: 4px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; font-size: 0.8em; } .copy-btn:hover .copy-tooltip { opacity: 1; visibility: visible; } .copy-icon, .copy-checkmark { width: 18px; height: 18px; vertical-align: middle; } .copy-checkmark { display: none; color: #28a745; } /* End Password Box */ /* Start Strength Indicator */ .strength-bar { height: 6px; /* Slightly thinner */ background: rgba(255, 0, 0, 0.2); /* Lighter red background */ border-radius: 3px; margin-bottom: 8px; overflow: hidden; } .strength-progress { height: 100%; width: 0; border-radius: 3px; transition: width 0.5s ease, background 0.5s ease; } .strength-text { text-align: left; font-size: 0.85em; color: var(--text-muted); margin-bottom: 18px; } /* End Strength Indicator */ /* Start Settings Section */ .settings { background: #1a1a1a; /* Darker settings background */ border-radius: 10px; padding: 15px; margin-bottom: 20px; border: 1px solid var(--border-color); } .setting-group { margin-bottom: 15px; } .setting-group:last-child { margin-bottom: 0; } .setting-title { font-size: 1em; color: var(--text-light); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; font-weight: 500; } .setting-title i { color: var(--accent-main); } .checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* Slightly smaller min-width */ gap: 8px; } .checkbox-option { display: flex; align-items: center; gap: 6px; padding: 7px 10px; /* Slightly less padding */ background: #252525; /* Darker checkbox background */ border-radius: 6px; transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent; } .checkbox-option:hover { border-color: var(--accent-main); background: #2f2f2f; } .checkbox-option input[type="checkbox"] { appearance: none; width: 16px; /* Slightly smaller checkbox */ height: 16px; border: 2px solid var(--text-muted); border-radius: 3px; position: relative; cursor: pointer; transition: all 0.3s ease; } .checkbox-option input[type="checkbox"]:checked { background-color: var(--accent-main); border-color: var(--accent-main); } .checkbox-option input[type="checkbox"]:checked::before { content: '\f00c'; /* Font Awesome check icon */ font-family: 'Font Awesome 6 Free'; font-weight: 900; color: white; font-size: 10px; /* Smaller checkmark */ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .checkbox-option label { color: var(--text-light); font-size: 0.9em; cursor: pointer; } .length-setting { display: flex; align-items: center; gap: 12px; background: #252525; padding: 8px 12px; border-radius: 6px; border: 1px solid transparent; transition: border-color 0.3s ease; } .length-setting:hover { border-color: var(--accent-main); } .length-setting input[type="range"] { flex-grow: 1; -webkit-appearance: none; appearance: none; height: 6px; background: #4a4a6a; border-radius: 3px; outline: none; cursor: pointer; } .length-setting input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: var(--accent-main); border-radius: 50%; cursor: grab; box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); transition: background 0.3s ease; } .length-setting input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--accent-main); border-radius: 50%; cursor: grab; box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); transition: background 0.3s ease; } .length-setting input[type="range"]::-webkit-slider-thumb:active, .length-setting input[type="range"]::-moz-range-thumb:active { cursor: grabbing; } .length-display { font-size: 1em; font-weight: 500; color: var(--accent-main); min-width: 28px; text-align: center; } .action-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 20px; } .action-buttons button { font-size: 1em; padding: 10px 18px; min-width: 120px; border-radius: 8px; transition: transform 0.3s ease; } @media (min-width: 768px) { .action-buttons button { font-size: 1.1em; padding: 8px 8px; min-width: 140px; } } @media (max-width: 480px) { .action-buttons { justify-content: space-between; } .action-buttons button { flex: 1 1 calc(33.333% - 8px); min-width: unset; font-size: 0.9em; padding: 8px 12px; } } .action-btn { background: linear-gradient(45deg, var(--accent-main), var(--accent-secondary)); color: white; border: none; padding: 10px 15px; /* Slightly less padding */ border-radius: 6px; font-size: 0.95em; font-weight: 500; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); } .action-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3); } .action-btn i { font-size: 1em; } .btn-copy { background: #34495e; /* Darker blue-grey */ } .btn-copy:hover { background: #2c3e50; } .btn-download { background: #27ae60; /* Green */ } .btn-download:hover { background: #229a54; } /* End Action Buttons */ /* Start Security Tips Section */ .tips-section { background: var(--card-bg); border-radius: 10px; padding: 15px; border: 1px solid var(--border-color); } .tips-toggle { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 5px 0; } .tips-toggle h2 { font-size: 1em; color: var(--text-light); display: flex; align-items: center; gap: 6px; font-weight: 500; } .tips-toggle h2 i { color: var(--accent-main); } .tips-arrow { transition: transform 0.3s ease; } .tips-list { margin-top: 15px; border-top: 1px solid var(--border-color); padding-top: 15px; } .tips-list.hidden { display: none; } .tips-list.expanded .tips-arrow { transform: rotate(180deg); } .tip-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; color: var(--text-muted); font-size: 0.85em; } .tip-item i { color: #28a745; margin-top: 2px; } .more-info-toggle { color: var(--accent-main); cursor: pointer; font-size: 0.85em; margin-top: 10px; display: inline-block; transition: color 0.3s ease; } .more-info-toggle:hover { color: #6a93cb; } .more-info { margin-top: 10px; padding: 10px; background: #252525; border-radius: 8px; border: 1px solid var(--border-color); } .more-info.hidden { display: none; } .more-info p { color: var(--text-muted); font-size: 0.8em; margin-bottom: 4px; } .more-info p:last-child { margin-bottom: 0; } /* End Security Tips Section */ /* Start Alerts Section */ .alert { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: #28a745; color: white; padding: 10px 18px; border-radius: 6px; display: flex; align-items: center; gap: 8px; font-size: 0.95em; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 1001; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); } .alert.show { opacity: 1; visibility: visible; } .alert i { font-size: 1.1em; } /* End Alerts Section */ .badge { background-color: #252525; color: var(--text-light); padding: 4px 10px; border-radius: 18px; font-size: 0.7em; border: 1px solid rgba(255, 255, 255, 0.05); } /* End Footer Styles */ /* Start Responsive Adjustments */ @media (max-width: 768px) { body { padding-top: 60px; } nav { padding: 10px 15px; } nav ul { gap: 15px; } nav a { font-size: 0.9em; } .main-container { padding: 15px; } .title { font-size: 1.5rem; } .logo-title { font-size: 1.4rem; } .footer-content { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; text-align: center; } .footer-brand .brand-logo { justify-content: center; } .footer-brand .social-links { justify-content: center; } .footer-bottom { flex-direction: column; text-align: center; } .footer-badges { justify-content: center; } } @media (max-width: 480px) { body { padding: 10px; padding-top: 50px; } nav { padding: 8px 10px; } nav ul { gap: 10px; flex-wrap: wrap; } nav a { font-size: 0.85em; } .main-container { padding: 12px; } .title { font-size: 1.3rem; } .logo-title { font-size: 1.2rem; } .description { font-size: 0.75em; } .password-box { flex-direction: column; align-items: stretch; } #password-output { text-align: center; margin-bottom: 8px; padding-right: 0; } .copy-btn { justify-content: center; } .action-buttons { grid-template-columns: 1fr; } .footer-content { grid-template-columns: 1fr; } .footer-section h3 { text-align: center; } .footer-section h3::after { left: 50%; transform: translateX(-50%); } .footer-links { text-align: center; } }