/** Code By Webdevtrick ( https://webdevtrick.com ) **/ body { margin-bottom: -5px; min-height: 100vh; padding-top: 20px; background: #ffffff; /*e8eaed*/ font-family: "Kanit", sans-serif; font-weight: 300; transition: background 0.3s ease; } body.dark-mode { background: #121212; color: #e8eaed; } .info { font-size: 0.9rem; text-align: left; } h1 { font-weight: 500; font-size: 1.2rem; margin: 0; } .title-section { background: #fd9d08; padding: 10px; color: white; display: flex; justify-content: space-between; align-items: center; } .inner-section { padding: 20px; } .wrapper { overflow: hidden; margin: auto; width: 100%; max-width: 1200px; background: white; border-radius: 5px; border: 1px solid #44C4DB; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); display: flex; flex-flow: column wrap; transition: background 0.3s ease, color 0.3s ease; } .wrapper.dark-mode { background: #1e1e1e; color: #e8eaed; } .password-section { position: relative; border: 2px solid lightgray; color: gray; margin-top: 20px; padding: 10px; border-radius: 5px; text-align: left; display: flex; flex-direction: column; } .wrapper.dark-mode .password-section { border-color: #333; color: #ccc; } .pass-field { padding: 10px; border: 1px solid lightgray; border-radius: 5px; margin-bottom: 10px; background-color: #f0f0f0; color: #333; overflow: auto; white-space: pre-wrap; } .wrapper.dark-mode .pass-field { border-color: #333; background-color: #3a3a3a; color: #e8eaed; } .buttons { display: flex; justify-content: space-between; gap: 10px; } .strength-meter { margin-top: 10px; } .bar { height: 5px; border-radius: 5px; background: lightgray; overflow: hidden; } .fill { height: 100%; width: 0; background: green; transition: width 0.3s ease; } .label { margin-top: 5px; font-size: 0.8rem; } .alert { position: absolute; padding: 5px; border-radius: 2px; width: calc(100% - 10px); left: 5px; top: -40px; text-align: center; color: #333; opacity: 0; transition: all 0.5s ease; } .alert.success { background: rgba(29, 161, 242, 0.9); opacity: 1; } .alert.fail { background: rgba(230, 0, 35, 0.9); color: white; opacity: 1; } .copy, .clear { height: 40px; width: 100px; background: #e60023; border: 0; color: white; border-radius: 2px; padding: 8px; cursor: pointer; transition: all 0.3s ease; } .copy:hover, .clear:hover { background: #ff7a00; } .controls { text-align: left; display: flex; flex-flow: column wrap; } .control { padding: 5px; border-bottom: 1px solid lightgray; width: 100%; margin: 2px; } .wrapper.dark-mode .control { border-color: #333; } .generate { width: 100%; border: 0; color: white; background: #fd9d08; border-radius: 10px; padding: 10px; margin-top: 10px; transition: all 0.3s ease; } .generate:hover { background: #ff7a00; } #length-box { width: 100%; position: relative; } #length-box input { width: 100%; } .popup { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); background: #333; color: white; padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } #length-box:hover .popup { opacity: 1; } input[type="checkbox"] { visibility: hidden; } label.check-label { position: relative; padding-left: 25px; cursor: pointer; } label.check-label:before { content: ""; height: 18px; width: 18px; left: 0; top: 0; border: 2px solid lightgray; position: absolute; background: transparent; border-radius: 3px; transition: all 0.3s ease; } .wrapper.dark-mode label.check-label:before { border-color: #666; } input[type="checkbox"]:checked + label.check-label:before { background: #00e676; border-color: #00e676; } input[type="checkbox"]:checked + label.check-label:after { content: ""; position: absolute; left: 5px; top: 2px; width: 7px; height: 12px; border: solid white; border-width: 0 3px 3px 0; transform: rotate(45deg); } .dark-mode-toggle { cursor: pointer; font-size: 1.2rem; user-select: none; } /* Custom moon/sun toggle */ .dark-mode-toggle::before { content: "🌙"; } body.dark-mode .dark-mode-toggle::before { content: "☀️"; }