        :root {/* linear-gradient(135deg, #ff895b 0%, #371a03 100%) */

            /* Primary Colors */
            --primary: #ffffff;
            --primary-light: #e2e6ff;

            /* Background & Surface Colors */
            --panel-bg: white;
            --panel-bg2: #413e3e;
            --card-bg: #f8f9fa;
            --input-bg: white;

            /* Text Colors */
            --text-primary: #333;
            --text-secondary: #555;
            --text-tertiary: #6c757d;
            --text-light: white;
            --text-titles: #005ea6;

            /* Status Colors */
            --success: #28a745;
            --success-light: #e8f5e8;
            --warning: #ffc107;
            --error: #dc3545;
            --info: #17a2b8;

            /* UI Colors */
            --border: #e1e5e9;
            --border-dark: #dee2e6;
            --shadow: rgba(0, 0, 0, 0.1);
            /* --box-shadow: 18px 19px 20px 4px rgba(0, 0, 0, 0.1); */
            --box-shadow: 8px 20px 20px 12px rgba(0, 0, 0, 0.1);
            --overlay: rgba(0, 0, 0, 0.5);

            /* Strength Meter Colors */
            --strength-weak: #dc3545;
            --strength-fair: #fd7e14;
            --strength-good: #ffc107;
            --strength-strong: #28a745;
            --strength-excellent: #20c997;
            --strength-bg: #e1e5e9;
            --strength-text: #585858;

            /* Button Colors */
            --btn-secondary: #28a745;
            --btn-dnload: #555;
            --btn-danger: #dc3545;
            --btn-info-bg: rgba(102, 126, 234, 0.1);
            --btn-info-border: rgba(0, 3, 15, 0.2);

            /* Special Colors */
            --security-badge-bg: #e8f5e8;
            --security-badge-text: #2d5a2d;
            --security-badge-border: #c3e6c3;
            --tech-specs-bg: #f1f3f4;
        }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { 
    margin: 0; 
    padding: 0; 
    background: var(--panel-bg); 
    min-height: 100vh; 
    touch-action: pan-y; 
    -webkit-overflow-scrolling: touch;
    
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: var(--panel-bg);
}

.page-container { width: 80%; margin: 0 auto; padding: 20px;}

/* Simple Header */
.simple-header { margin-bottom: 1rem; margin-top: 10px; max-width: 1200px; display: contents;}

.headerlogo {display: flex; align-items: flex-start; justify-content: center; gap: 15px; margin-bottom: 20px;}

/* header image */
.banner-image { width: 100%; max-height: 200px; object-fit: contain; border-radius: 8px; margin: 0; padding: 6px;}

.coyote-regular {
  font-family: "Coyote BC", system-ui;
  font-weight: 800;
  font-style: bold;
  -webkit-text-stroke-width: 1.5px;
  -webkit-text-stroke-color: #71A4F3;
  color:#0829FE;
  font-size: clamp(24px, 7vw, 56px);
}
.tagline {font-family: 'Coyote BC', system-ui; font-size: 1.2rem; font-style: italic; color: #1b417e; font-weight: 600; margin-top: 5px; text-transform: uppercase; margin: 5px 0 0 0;}
.header-logo { width: 150px; height: 150px; object-fit: contain; border-radius: 8px;}
.main-container { max-width: 1200px; margin: 0 auto; display: block; align-items: start; }
.panel { background: var(--panel-bg); border-radius: 12px; padding: 24px; box-shadow: var(--box-shadow); backdrop-filter: blur(10px); }
.panel h1, .panel h2 { margin-top: 0; color: var(--text-titles); text-align: center; }

/* Simple Footer */
.simple-footer { background: var(--panel-bg); text-align: center; padding: 2rem 0; margin-top: 2rem; margin-left: auto; margin-right: auto; max-width: 1200px; border-radius: 12px; border-top: 1px solid var(--border); box-shadow: var(--box-shadow);}
.footer-links { margin-bottom: 1rem;}
.footer-links a { color: var(--text-tertiary); text-decoration: none; margin: 0 0.1rem; font-weight: 500;}
.footer-links a:hover { text-decoration: underline;}
.footer-copyright { color: var(--text-tertiary); font-size: 0.9rem;}
.footer-copyright a:hover {text-decoration: underline;}
.footer-copyright a { color: var(--text-tertiary); text-decoration: none; margin: 0; font-weight: 500;}
.input-group { display: flex; margin-bottom: 16px; min-height: 44px; }
.input-group label { font-weight: 500; color: var(--text-secondary); flex: 1; user-select: none; padding: 10px 10px}
input[type="range"] {width: 100%; margin: 8px 0; touch-action: manipulation; }
input[type="checkbox"] {color: #371a03; width: 20px; height: 20px; cursor: pointer; touch-action: manipulation; }
input[type="text"], input[type="number"], select, textarea { padding: 12px; border: 2px solid var(--border); border-radius: 8px; font-size: 16px; transition: border-color 0.3s; flex: 0 0 auto; touch-action: manipulation; }
input[type="text"]:focus, input[type="number"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
select { cursor: pointer; background: var(--input-bg); }
button { background: linear-gradient(135deg, #fffff2 0%, #000000 100%); color: var(--text-light); border: 1; border-color: #838383; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: transform 0.2s, box-shadow 0.2s; width: 100%; margin: 8px 0; min-height: 44px; touch-action: manipulation; user-select: none; }
button:hover { transform: translateY(-2px); box-shadow: 8 4px 12px rgba(var(--primary), 0.3); }
button:active { transform: translateY(0); }
.secondary-btn { background: var(--btn-dnload); margin: 4px; width: auto; padding: 8px 16px; font-size: 12px; }
.dnload-btn { background: var(--btn-dnload); box-shadow: var(--box-shadow); margin: 4px; width: auto; padding: 8px 16px; font-size: 12px; }
.danger-btn { background: var(--btn-danger); width:94%}
textarea { width: calc(100% - 90px); height: 60px; resize: vertical; font-family: 'Courier New', monospace; font-size: 16px; height: auto }
.strength-container { margin: 16px 0;}
.strength-bar { height: 8px; background: var(--strength-bg); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.strength-fill { height: 100%; transition: width 0.3s, background-color 0.3s; border-radius: 4px; }
.strength-weak { background: var(--strength-weak); }
.strength-fair { background: var(--strength-fair); }
.strength-good { background: var(--strength-good); }
.strength-strong { background: var(--btn-secondary); }
.strength-excellent { background: var(--strength-excellent); }
.password-display { position: relative; margin: 16px 0; }
.copy-btn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); background: var(--text-secondary); padding: 8px 12px; font-size: 12px; width: auto; margin: 0; }
.copy-btn:hover {transform: translateY(-45%) !important; box-shadow: var(--box-shadow);}
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; gap: 4px;}
.tab { padding: 12px 16px; background: none; border: none; cursor: pointer; font-weight: 500; color: var(--text-tertiary); width: auto; margin: 0; border-radius: 0; transition: color 0.3s; touch-action: manipulation; user-select: none; font-size: 14px;}
.tab.active {border-radius: 63%; color: #076dd3; border-left: 5px solid #076dd3; outline: none;}
.tab.active:focus, .tab.active:active {border-left: 5px solid #076dd3; border-right: none; border-top: none; border-bottom: none; outline: none;}
.tab:focus, .tab:active {outline: none; border: none;}
.tab:focus.active, .tab:active.active {border-left: 5px solid #076dd3 !important; border-right: none !important; border-top: none !important; border-bottom: none !important;}
.tab-content { display: none; }
.tab-content.active { display: block; }
.history-item { background: var(--card-bg); padding: 12px; margin: 8px 0; border-radius: 8px; border-left: 4px solid var(--primary); display: flex; justify-content: space-between; align-items: center; font-family: 'Courier New', monospace; font-size: 14px; align-items: baseline; }
.history-actions { display: flex; gap: 4px; }
.bulk-actions { background: var(--card-bg); padding: 16px; border-radius: 8px; margin: 16px 0; }
.bulk-actions h3 { margin-top: 0; color: var(--text-secondary); }
.bulk-inputs { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-bottom: 12px; }
.popup-notification { position: fixed; top: 20px; right: 20px; background: var(--success); color: var(--text-light); padding: 16px 24px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); font-size: 14px; font-weight: 500; z-index: 1000; opacity: 0; transform: translateX(100%); transition: all 0.3s ease-in-out; display: flex; align-items: center; gap: 8px; max-width: 300px; }
.popup-notification.show { opacity: 1; transform: translateX(0); }
.popup-notification.success { background: var(--success); }
.popup-notification.error { background: var(--error); }
.popup-notification.info { background: var(--info); }
.popup-notification .close-btn { margin-left: auto; background: none; border: none; color: var(--text-light); font-size: 18px; cursor: pointer; padding: 0; width: auto; opacity: 0.7; }
.popup-notification .close-btn:hover { opacity: 1; }
.password-display {height: auto; position: relative; margin: 16px 0;}
.confirmation-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay); display: flex; align-items: center; justify-content: center; z-index: 1001; opacity: 0; transition: opacity 0.3s ease-in-out; }
.confirmation-popup.show { opacity: 1; }
.confirmation-content { background: var(--panel-bg); border-radius: 12px; padding: 32px; box-shadow: var(--box-shadow); text-align: center; max-width: 400px; width: 90%; transform: scale(0.9); transition: transform 0.3s ease-in-out; }
.confirmation-popup.show .confirmation-content { transform: scale(1); }
.confirmation-icon { font-size: 48px; margin-bottom: 16px; }
.confirmation-message { font-size: 16px; color: var(--text-primary); margin-bottom: 24px; line-height: 1.5; }
.confirmation-buttons { display: flex; gap: 12px; justify-content: center; }
.confirm-btn, .cancel-btn { padding: 12px 24px; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; width: auto; margin: 0; }
.confirm-btn { background: var(--btn-secondary); color: var(--text-light); }
.confirm-btn:hover { transform: translateY(-2px); box-shadow: var(--box-shadow); }
.cancel-btn { background: var(--btn-danger); color: var(--text-light); }
.cancel-btn:hover { transform: translateY(-2px); box-shadow: var(--box-shadow); }
.info-btn { background: var(--btn-info-bg); color: var(--primary); border: 2px solid var(--btn-info-border); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; margin: 0; }
.info-btn:hover { background: var(--btn-info-bg); border-color: var(--primary); transform: scale(1.05); }
.info-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay); display: flex; align-items: center; justify-content: center; z-index: 1002; opacity: 0; transition: opacity 0.3s ease-in-out; backdrop-filter: blur(5px); }
.info-modal.show { opacity: 1; }
.info-content { background: var(--panel-bg); border-radius: 16px; padding: 0; box-shadow: var(--box-shadow); max-width: 800px; width: 95%; max-height: 90vh; overflow-y: auto; transform: scale(0.9); transition: transform 0.3s ease-in-out; margin-top: -30px; }
.info-modal.show .info-content { transform: scale(1); }
.info-header {display: flex; flex-direction: column; align-items: center; color: var(--text-light); padding: 24px; border-radius: 16px 16px 0 0; position: relative; }
.info-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--text-light); font-size: 28px; cursor: pointer; width: auto; margin: 0; padding: 4px; opacity: 0.8; transition: opacity 0.3s; }
.info-close:hover { opacity: 1; transform: none; }
.info-body { padding: 32px; }
.info-section { margin-bottom: 32px; }
.info-section h3 { color: var(--text-primary); margin-bottom: 16px; font-size: 1.4rem; display: flex; align-items: center; gap: 8px; }
.info-section p, .info-section li { color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.info-section ul { padding-left: 20px; }
.security-badge { display: inline-flex; align-items: center; background: var(--security-badge-bg); color: var(--security-badge-text); padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 500; margin: 4px 8px 4px 0; border: 1px solid var(--security-badge-border); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 16px 0; }
.feature-card { background: var(--card-bg); padding: 16px; border-radius: 8px; border-left: 4px solid var(--primary); }
.feature-card h4 { margin: 0 0 8px 0; color: var(--text-primary); font-size: 1rem; }
.feature-card p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.tech-specs { background: var(--tech-specs-bg); padding: 16px; border-radius: 8px; font-family: 'Courier New', monospace; font-size: 14px; margin: 16px 0; }
.trust-indicators { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--success); font-weight: 500; }
.advanced-options { color: var(--text-primary); background: var(--card-bg); padding: 16px; border-radius: 8px; margin: 16px 0;}
.custom-charset { width: calc(100% - 0px); height: 45px; font-family: 'Courier New', monospace; }
.entropy-info { font-size: 12px; color: var(--text-tertiary); text-align: center; margin-top: 8px; }
.word-count { flex: 0 0 80px; }
.analysis-section { background: var(--card-bg); padding: 16px; border-radius: 8px; margin: 8px 0; }
.analysis-section h4 { margin: 0 0 8px 0; color: var(--text-primary); }
.analysis-item { display: flex; justify-content: space-between; margin: 4px 0; font-size: 14px; }
.feedback-list { list-style-type: none; padding: 0; }
.feedback-list li { padding: 4px 0; font-size: 14px; }
.feedback-list .good { color: var(--success); }
.feedback-list .warning { color: var(--warning); }
.feedback-list .error { color: var(--error); }
.password-note { font-size: 14px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; width: 100%; margin-bottom: 8px; }
.password-note:focus { outline: none; border-color: var(--primary); box-shadow: var(--box-shadow); }
#unlock-password.error { border-color: var(--error); box-shadow: 0 0 0 2px rgba(var(--error), 0.25); }
@keyframes spin { to { transform: rotate(360deg); } }
input[type="password"] { padding: 12px; border: 2px solid var(--border); border-radius: 8px; font-size: 16px; transition: border-color 0.3s; }
input[type="password"]:focus { outline: none; border-color: var(--primary); }
.import-method-btn { flex: 1; padding: 10px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; color: black; }
.import-method-btn.active { background: var(--primary-light); border-color: var(--primary); font-weight: 500; }
#preview-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
#preview-content th { text-align: left; padding: 8px; background: var(--tech-specs-bg); border-bottom: 2px solid var(--border-dark); }
#preview-content td { padding: 8px; border-bottom: 1px solid #eee; }
.import-stat { display: inline-block; background: var(--primary-light); padding: 3px 8px; border-radius: 12px; font-size: 12px; margin-right: 8px; }
/* .csv-import-panel { background: var(--panel-bg2); border-radius: 12px; padding: 24px; max-width: 600px; width: 90%; max-height: 90vh; overflow: auto; margin-top: 950px; } */
#unlock-password:focus { box-shadow: 0 0 0 2px rgba(var(--primary), 0.5); border-color: var(--primary); }
#generate {width: 100%;}
.bulk-results, .bulk-results * { color: var(--text-primary);}
#bulk-results { background: var(--card-bg); padding: 12px; border-radius: 8px; border: 1px solid var(--border); min-height: 100px; overflow-y: auto; font-family: 'Courier New', monospace;}
.bulk-options { margin: 16px 0;}

#bulk-password-type {color: var(--text-primary)}
.breach-status {display: none; margin-top: 8px; font-size: 12px; text-align: center;}

.settings-select { padding: 8px; border-radius: 4px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text-primary); margin-left: 8px; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: -90px; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; width:inherit}
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }

input:checked + .slider { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
input:checked + .slider:before { transform: translateX(26px); }
input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; touch-action: manipulation; appearance: none; border: 2px solid #080808; border-radius: 3px; background-color: white; position: relative;}
input[type="checkbox"]:checked { background-color: #05050500; border-color: #020202;}
input[type="checkbox"]:checked::after { content: '✓'; position: absolute; color: rgb(20, 20, 20); font-size: 14px; top: -2px; left: 2px;}
input:checked + .slider,
.switch input:checked + .slider,
.switch input:checked + .slider { background: #363637  !important; background-color: 363637  !important; background-image: none !important;}

/* PWA styles  */
.install-btn { position: fixed; bottom: 20px; right: 20px; padding: 10px 15px; background: #667eea; color: white; border: none; border-radius: 50px; cursor: pointer; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); z-index: 1000; transition: all 0.3s ease; }
.install-btn:hover { background: #5a67d8; transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); }
.install-btn svg { width: 20px; height: 20px; }

/* Drag n Drop List Organizer */
.history-item { cursor: grab; transition: transform 0.2s, box-shadow 0.2s; position: relative; padding-left: 30px; }
.history-item.dragging { cursor: grabbing; opacity: 0.8; transform: scale(1.02); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);}
/* .drag-handle { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); cursor: grab; padding: 8px 4px; user-select: none;}
.drag-handle:active { cursor: grabbing;} */
#strength-text {color: var(--text-primary);}
#strength-indicator-text {color: var(--strength-text); text-align: center;}

#bulk-results .history-item { display: block !important; padding: 12px !important; word-wrap: break-word !important; white-space: normal !important;}
#bulk-results .history-item span { display: block !important; width: 100% !important; word-break: break-all !important; font-family: 'Courier New', monospace !important;}
.danger-btn { background-color: var(--error) !important; color: white !important;}
.danger-btn:hover { background-color: #c82333 !important;}

/* Content Navigation Styles */
.content-nav { background: var(--panel-bg); border-radius: 12px; padding: 20px; margin: 20px auto; max-width: 1200px; box-shadow: var(--box-shadow); width: 100%; }  
.content-nav h2 { text-align: center; margin-bottom: 20px; color: var(--text-primary); }  
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }  
.nav-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; color: var(--text-primary); }  
.nav-item:hover { transform: translateY(-2px); box-shadow: var(--box-shadow); background: var(--primary-light); }  
.nav-item h3 { margin: 0 0 8px 0; color: var(--text-primary); font-size: 1.1rem; }  
.nav-item p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.4; }  
.nav-item .icon { font-size: 1.5rem; margin-right: 8px; }  
.content-header { background: linear-gradient(135deg, var(--primary) 0%, var(--text-secondary) 100%); color: var(--text-light); padding: 24px; border-radius: 16px 16px 0 0; position: relative; }  
.content-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--text-light); font-size: 28px; cursor: pointer; width: auto; margin: 0; padding: 4px; opacity: 0.8; transition: opacity 0.3s; }  
.content-close:hover { opacity: 1; transform: none; }  
.content-body { padding: 32px; line-height: 1.6; box-shadow: var(--box-shadow);}  
.content-body h1, .content-body h2, .content-body h3 { color: var(--text-primary); margin-top: 24px; margin-bottom: 16px; }  
.content-body h1 { font-size: 2rem; margin-top: 0; }  
.content-body p { color: var(--text-secondary); margin-bottom: 16px; }  
.content-body ul, .content-body ol { color: var(--text-secondary); margin-bottom: 16px; padding-left: 24px; }  
.content-body li { margin-bottom: 8px; }  
.content-body blockquote { background: var(--card-bg); border-left: 4px solid var(--primary); padding: 16px 20px; margin: 20px 0; font-style: italic; }  
.highlight-box { background: var(--success-light); border: 1px solid var(--success); border-radius: 8px; padding: 16px; margin: 20px 0; }  
.warning-box { background: #fff3cd; border: 1px solid var(--warning); border-radius: 8px; padding: 16px; margin: 20px 0; }  
.content-nav-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; padding: 10px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }  
.content-nav-header:hover { background: var(--card-bg); border-radius: 8px; padding: 10px; }  
.collapse-icon { font-size: 1.2rem; transition: transform 0.3s ease; color: var(--text-secondary); }  
.collapse-icon.collapsed { transform: rotate(-90deg); }  
.nav-grid { overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; max-height: 1000px; opacity: 1; }  
.nav-grid.collapsed { max-height: 0; opacity: 0; margin-bottom: 0; }  
.advanced-options-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; padding: 5px 0; }  
.advanced-options-header:hover { background: var(--card-bg); border-radius: 6px; padding: 5px 10px; }  
.advanced-options-content { overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; max-height: 1000px; opacity: 1; }  
.advanced-options-content.collapsed { max-height: 0; opacity: 0; }

/* Mobile Tab Container */
.tabs-container { position: relative; }

/* Mobile Tab Header (hamburger + current tab name) */
.mobile-tab-header { display: none; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--card-bg); border-radius: 8px; margin-bottom: 10px; border: 2px solid var(--border);}
.current-tab-name { font-weight: 500; color: var(--text-primary); font-size: 16px; }

/* Hamburger Animation */
.hamburger-btn.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-btn.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Slide down animation for mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Overlay to close menu when clicking outside (mobile only) */
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); z-index: 999;}
.mobile-menu-overlay.active { display: content; }

.nav-item { text-decoration: none; color: inherit; display: block; }
.nav-item:hover { text-decoration: none; color: inherit;}

#clipboard-clear-time { width: 80px; padding: 8px; border: 2px solid var(--border); border-radius: 8px; margin-top: 5px;}
#clipboard-clear-time-setting { padding-left: 15px; margin-bottom: 15px;}

/* Navigation Styles */
.main-nav { background: var(--panel-bg); border-radius: 8px; margin: 1rem 0; box-shadow: var(--box-shadow);}
.nav-list { display: flex; justify-content: center; list-style: none; padding: 0; margin: 0; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-link { display: block; padding: 12px 16px; text-decoration: none; color: var(--text-secondary); font-weight: 500; white-space: nowrap; transition: all 0.3s ease;    border-bottom: 2px solid transparent;}
.nav-link:hover { color: var(--text-primary); background: var(--card-bg);}
.nav-link.active { color: var(--text-primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Smaller hamburger button */
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; position: absolute; 
    flex-direction: column; justify-content: space-between; align-items: center; width: 36px; height: 36px; border-radius: 4px;
    transition: all 0.3s ease; right: 0}
.hamburger-btn:hover { background: rgba(0, 0, 0, 0.1);}
.hamburger-line { width: 22px; height: 2px; background-color: var(--text-primary); margin: 0; transition: all 0.3s ease; display: block; position: relative; border-radius: 1px; transform-origin: center;}

/* Position the 3 hamburger lines - adjusted for smaller size */
.hamburger-btn .hamburger-line:nth-child(1) { transform: translateY(-6px);}
.hamburger-btn .hamburger-line:nth-child(2) { transform: translateY(0px);}
.hamburger-btn .hamburger-line:nth-child(3) { transform: translateY(6px);}
.hamburger-btn.active .hamburger-line:nth-child(1) { transform: translateY(0px) rotate(45deg);}
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; transform: translateY(0px);}
.hamburger-btn.active .hamburger-line:nth-child(3) { transform: translateY(0px) rotate(-45deg);}
.dark-mode .hamburger-btn:hover { background: rgba(255, 255, 255, 0.1);}
.knowledge-center { background: #dddada8a; border-radius: 12px; text-align: center;}
.knowledge-center h2 { color: var(--text-primary); margin-bottom: 20px;}
.knowledge-center .nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px;}
.knowledge-center .nav-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; color: var(--text-primary);}
.knowledge-center .nav-item:hover { transform: translateY(-2px); box-shadow: var(--box-shadow); background: var(--primary-light); text-decoration: none; color: inherit;}
.knowledge-center .nav-item h3 { margin: 0 0 8px 0; color: var(--text-primary); font-size: 1.1rem;}
.knowledge-center .nav-item p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.4;}
.knowledge-center .nav-item .icon { font-size: 1.5rem; margin-right: 8px;}


/* Also fix other input elements in dark mode */
.dark-mode input[type="text"],
.dark-mode input[type="number"], 
.dark-mode input[type="password"],
.dark-mode textarea { background: var(--input-bg) !important; color: var(--text-primary) !important; border: 2px solid var(--border) !important;}
.dark-mode input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; touch-action: manipulation; accent-color: #000000; background-color: #fffff2;}

/* Ensure placeholder text is visible in dark mode */
.dark-mode input::placeholder,
.dark-mode textarea::placeholder { color: var(--text-tertiary) !important; opacity: 0.7;}

/* Dark mode adaptation for your stroke text */
.dark-mode .text-stroke { -webkit-text-stroke-color: #4a90e2; color: #87ceeb; }

.dark-mode .feedback-list li.good {color: #22c55e !important;}
.dark-mode .feedback-list li.warning {color: #f59e0b !important;}
.dark-mode .feedback-list li.error {color: #ef4444 !important;}
.dark-mode .history-item, .dark-mode .history-item * {color: var(--text-primary) !important;}
.dark-mode .history-item div[style*="font-family: 'Courier New'"] {color: var(--text-primary) !important;}
.dark-mode .history-item div[style*="font-size: 12px"] {color: var(--text-secondary) !important;}
.dark-mode .history-item span[style*="color: #ef4444"] {color: #ff6b6b !important;}
.dark-mode .history-item span[style*="color: #f59e0b"] {color: #fbbf24 !important;}
.dark-mode .history-item span[style*="color: #22c55e"] {color: #34d399 !important;}
.dark-mode .popup-notification {color: var(--text-light) !important;}
.dark-mode .info-content, .dark-mode .info-content * {color: var(--text-primary) !important;}
.dark-mode .confirmation-content, .dark-mode .confirmation-content * {color: var(--text-primary) !important;}
.dark-mode .csv-import-panel, .dark-mode .csv-import-panel * {color: var(--text-secondary) !important;}

.dark-mode #bulk-results, .dark-mode #bulk-results * {color: var(--text-primary) !important;}
.dark-mode .knowledge-center, .dark-mode .knowledge-center * {color: var(--text-primary) !important;}
.dark-mode .nav-link {color: var(--text-secondary) !important;}
.dark-mode .nav-link.active {color: var(--text-primary) !important;}
.dark-mode .main-nav .nav-link {color: var(--text-primary) !important;}
.dark-mode .main-nav .nav-link:hover {color: #ffffff !important; background: var(--card-bg) !important;}
.dark-mode .main-nav .nav-link.active {color: #ffffff !important; background: #363636 !important;}
.dark-mode label {color: var(--text-secondary) !important;}
.dark-mode input::placeholder, .dark-mode textarea::placeholder {color: var(--text-tertiary) !important; opacity: 0.8 !important;}
.dark-mode table, .dark-mode table * {color: var(--text-primary) !important;}
.dark-mode th {background: var(--card-bg) !important; color: var(--text-primary) !important;}
.dark-mode .strength-weak, .dark-mode .strength-fair, .dark-mode .strength-good, .dark-mode .strength-strong, .dark-mode .strength-excellent {font-weight: 600 !important;}

/* PATTERN GENERATOR SPECIFIC STYLES */
.pattern-example { font-size: 12px; color: var(--text-tertiary); margin: 4px 0 16px 0; font-style: italic; }

/* MOBILE RESPONSIVENESS FOR PATTERN GENERATOR */
@media (max-width: 1057px) {
    .pattern-example { font-size: 11px; margin: 8px 0 16px 0; line-height: 1.4; }
}

@media (max-width: 480px) {
    .pattern-example { font-size: 10px; margin: 8px 0 12px 0; }
}

/* DARK MODE FOR PATTERN EXAMPLE */
.dark-mode .pattern-example { color: var(--text-secondary) !important; }

.breach-success {display: flex; justify-content: center; color: var(--success); font-weight: 500;}
.breach-error {color: var(--error); font-weight: 500;}
.dark-mode .breach-success {color: #22c55e !important;}
.dark-mode .breach-error {color: #ef4444 !important;}

/* -------------------------------------------------------------- */
/* -------------------------------------------------------------- */
/* -------------------------------------------------------------- */


@media (max-width: 1057px) {
  .nav-grid { grid-template-columns: 1fr; }  
  .content-body { padding: 20px; }  
  .content-nav { width: 100%; margin: 20px auto; padding: 16px; }  
  .page-container { width: 100%; margin: 0 auto; padding: 20px;}
  .footer-links{ display: grid;}
  .info-content { width: 98%; max-height: 95vh; }
  .info-body { padding: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .main-container { grid-template-columns: 1fr; padding: 10px; z-index: inherit; }
  .panel { padding: 16px; }
  .copy-btn { position: absolute; right: 2px; top: 85%; padding: 8px 12px; font-size: 12px; width: 100%; margin: 0; }
  .password-display {height: 155px; position: relative; margin: 16px 0;}
  .secondary-btn { width: 100%; }
  /* .csv-import-panel {margin-top: -1200px;} */
  .history-item { background: var(--card-bg); padding: 12px; margin: 8px 0; border-radius: 8px; border-left: 4px solid var(--primary); display: flex; justify-content: space-between; align-items: center; font-family: 'Courier New', monospace; font-size: 14px; flex-wrap: wrap; }
  body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  input, select, textarea, button { font-size: 16px !important; }
  textarea { width: calc(100% - 5px); height: 100px; resize: vertical; font-family: 'Courier New', monospace; font-size: 16px;}
  .custom-charset { width: calc(100% - 0px); height: 78px !important; font-family: 'Courier New', monospace;}
  .slider { left: 45px; }
  #strength-text {color: var(--text-primary);}
  #strength-indicator-text {color: var(--strength-text);}
  /* .drag-handle { padding: 12px 8px;} */
  #length-display {text-align: center; margin-left: -100px; margin-top: -20px; margin-bottom: 20px; color: var(--text-secondary);}
  .banner-image { max-height: 200px; margin-top: -14px}
  .simple-header {height: 140px; margin-top: -20px;}
  .bulk-column { grid-template-columns: 1fr !important;}
  .seo-hero, .faq-section { display: none; }
  .header-logo { width: 96px; height: 96px; }
  .headerlogo {display: flex; align-items: flex-start; justify-content: center; gap: 15px; margin-bottom: 20px;}
  .tagline { font-size: 1.2rem; margin-top: 5px;}
  .coyote-regular { font-size: clamp(24px, 6vw, 59px);}
  .mobile-tab-header { display: flex; }  
  .tabs { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; gap: 2px; background: var(--panel-bg); border: 2px solid var(--border); border-radius: 8px; box-shadow: var(--box-shadow); z-index: 1000; max-height: 80vh; overflow-y: auto; animation: slideDown 0.3s ease; }  
  .tabs.mobile-open { display: flex; }  
  .danger-btn { background: var(--btn-danger); width: 100% }
  
  .hamburger-btn { display: block; right: 0; top: 10; }
  .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;  /* Full viewport height */
        background: var(--panel-bg);
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;  /* Enable scrolling */
        padding: 60px 0 40px 0;  /* Reduced top padding, added bottom padding */
    }

    /* .main-nav.active {
        left: 0;
    } */
    .main-nav.active {
        right: 0;
    }

    .nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 100px);  /* Ensure full height minus padding */
    }
  .nav-list li {
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;  /* Prevent items from shrinking */
    }
    
    .nav-list li:last-child {
        border-bottom: none;
        margin-bottom: 20px;  /* Extra space at bottom */
    }

    .main-nav .nav-link {
        display: block;
        padding: 18px 25px;  /* Slightly reduced padding for more items */
        text-decoration: none;
        color: var(--text-primary);
        font-size: 16px;
        font-weight: 500;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
        background: transparent;
        white-space: nowrap;  /* Prevent text wrapping */
    }
    
    .main-nav .nav-link:hover {
        color: var(--primary);
        background: var(--card-bg);
        border-left-color: var(--primary);
        padding-left: 30px;
    }
    
    /* Fixed active link - use different colors for better contrast */
    .main-nav .nav-link.active {
        color: #ffffff;  /* White text */
        background: var(--primary);  /* Primary color background */
        border-left-color: #ffffff;  /* White border */
        padding-left: 30px;
        font-weight: 600;
    }
    
    /* Alternative active style if primary color is too light */
    .main-nav .nav-link.active {
        color: #ffffff;
        background: #303030;  /* Blue background */
        border-left-color: #ffffff;
        padding-left: 30px;
        font-weight: 600;
    }
    
    /* Dark mode active link */
    .dark-mode .main-nav .nav-link.active {
        color: var(--text-primary);  /* Black text in dark mode */
        background: #363636;  /* Gold background for visibility */
        border-left-color: #000000;
    }

}

/* Desktop styles (keep existing behavior) */
@media (min-width: 769px) {
    .mobile-tab-header {display: none;}
    .tabs { display: flex !important; flex-wrap: wrap; border-bottom: 2px solid var(--border); margin-bottom: 20px; gap: 4px; position: relative; }
    .tab { padding: 12px 16px; background: none; border: none; cursor: pointer; font-weight: 500; color: var(--text-tertiary); width: auto; margin: 0; border-radius: 0; transition: color 0.3s; touch-action: manipulation; user-select: none; font-size: 14px; }
    .tab.active { border-radius: 8px; color: #076dd3; border-left: 5px solid #076dd3; outline: none; }
    .knowledge-center { display: block !important;}
}

/* Hide on mobile by default, show on desktop */
@media (max-width: 768px) {
    .knowledge-center { display: none; width: 100%; margin: 20px auto; padding: 16px; }
    .knowledge-center.mobile-visible { display: block; }
    .knowledge-center .nav-grid {grid-template-columns: 1fr; }
    .tagline {font-family: 'Coyote BC', system-ui; font-size: 1.2rem; font-style: italic; color: #1b417e; font-weight: 600; margin-top: 5px; text-transform: uppercase; margin: 5px 0 0 0;}
    .hamburger-btn { display: block; right: 0; top: 10; }
    .danger-btn { background: var(--btn-danger); width: 100% }

    .dark-mode span[style*="color: var(--success)"] {color: #22c55e !important;}
    .dark-mode #strength-indicator-text {color: var(--text-primary) !important;}
    .dark-mode #entropy-info {color: var(--text-secondary) !important;}
    .dark-mode .analysis-section h4 {color: var(--text-primary) !important;}
    .dark-mode .history-item {color: var(--text-primary) !important;}
    .dark-mode .main-nav {background: var(--panel-bg) !important;}
    .dark-mode .main-nav .nav-link {color: var(--text-primary) !important; border-left-color: transparent !important;}
    .dark-mode .main-nav .nav-link:hover {color: #ffffff !important; background: var(--card-bg) !important; border-left-color: #ffffff !important;}
    .dark-mode .main-nav .nav-link.active {color: #ffffff !important; background: #363636 !important; border-left-color: #ffffff !important;}
}

@media (max-width: 500px) {
    .tagline {
        font-size: 0.96rem;
    }
}



@media (max-width: 480px) {
    .simple-header { height: 60px; margin-top: -40px;}
    .panel { margin-top: 0px;}
    .danger-btn { background: var(--btn-danger); width: 100% }
    .dnload-btn { background: var(--btn-dnload); margin: 4px; width: 195px; padding: 8px 16px; font-size: 12px; }
    .seo-hero, .faq-section { display: none; }
    .header-logo { width: 50px; height: 50px; }
    .tagline { font-size: 0.8rem; margin-top: 10px;}
    .footer-copyright { color: var(--text-tertiary); font-size: 0.8rem;}
    .headerlogo {display: flex; align-items: flex-start; justify-content: center; gap: 15px; margin-bottom: 20px;}
    .coyote-regular { font-size: clamp(22px, 5vw, 59px);}
    .advanced-options-header {height: 30px; margin-top: -13px;}
    .mobile-tab-header {height: 60px}
    button {padding: 3px 24px}
    .note-text {width: 160%; }
    .hamburger-btn { display: block; right: 0; top: 27; }
    h1 { display: block; font-size: 1.2em; margin-block-start: 0.67em; margin-block-end: 0.67em; margin-inline-start: 0px; margin-inline-end: 0px; font-weight: bold; unicode-bidi: isolate;}
    .input-group { display: flex; margin-bottom: 16px; min-height: 44px; flex-direction: row; }
}


@media (max-width: 380px) {
    .hamburger-btn { display: block; right: 0; top: 12px; }
    .tagline { font-size: 0.6rem; margin-top: 10px;}
}
