/* Password Generator Specific Styles */
/* Base styles are in ../shared.css */

/* Override body for password generator */
body {
    display: block;
}

.container {
    max-width: 850px;
    margin: 0 auto;
}

/* Override main-window max-width for password generator */
.main-window {
    max-width: 100%;
}

/* Title bar customization */
.title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.window-icon {
    width: 16px;
    height: 16px;
    background: #333;
}

.theme-toggle {
    padding: 8px 16px;
    background: white;
    border: 2px solid #333;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.theme-toggle:hover {
    background: #333;
    color: white;
}

/* Override content padding for password generator */
.content {
    padding: 30px;
    padding-left: 100px;
}

/* Preset buttons */
.preset-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #333;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preset-btn:hover {
    background: #333;
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.preset-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

/* Password input */
.password-container {
    position: relative;
    margin-bottom: 15px;
}

.password-input {
    width: 100%;
    padding: 12px 60px 12px 12px;
    font-size: 1.1em;
    font-family: 'Courier New', monospace;
    background: white;
    border: 2px solid #333;
    outline: none;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.1);
}

.password-input:focus {
    border-color: #000;
}

.password-controls {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

.control-btn {
    width: 28px;
    height: 28px;
    background: white;
    border: 2px solid #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    font-weight: normal;
}

.control-btn:hover {
    background: #333;
    color: white;
    transform: none;
    box-shadow: none;
}

/* Generate button override */
.generate-btn {
    width: 100%;
    padding: 12px 24px;
    background: white;
    border: 2px solid #333;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.generate-btn:hover {
    background: #333;
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

.generate-btn:active {
    transform: translate(0, 0);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

/* Settings grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.setting-card {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #333;
    padding: 15px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.card-title {
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sliders */
.slider-group {
    margin-bottom: 12px;
}

.slider-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85em;
}

.slider {
    width: 100%;
    height: 8px;
    background: #ddd;
    border: 1px solid #999;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #333;
    border: 2px solid #000;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #333;
    border: 2px solid #000;
    cursor: pointer;
}

/* Dropdowns */
.dropdown {
    position: relative;
    margin-bottom: 12px;
}

.dropdown-btn {
    width: 100%;
    padding: 8px 12px;
    background: white;
    border: 2px solid #333;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    font-weight: normal;
}

.dropdown-btn:hover {
    background: #f5f5f5;
    transform: none;
    box-shadow: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #333;
    z-index: 100;
    display: none;
    margin-top: 2px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 8px 12px;
    background: white;
    border: none;
    border-bottom: 1px solid #ddd;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    font-weight: normal;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f0f0f0;
    transform: none;
    box-shadow: none;
}

/* Text input */
.text-input {
    width: 100%;
    padding: 8px 12px;
    background: white;
    border: 2px solid #333;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.1);
}

.text-input:focus {
    outline: none;
    border-color: #000;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.85em;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Password stats */
.password-stats {
    margin-top: 10px;
    font-size: 0.85em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border: 1px dashed #999;
}

.strength-analysis {
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strength-bar {
    width: 80px;
    height: 8px;
    background: #ddd;
    border: 1px solid #999;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
}

.strength-details {
    font-size: 0.75em;
    color: #666;
}

/* Bottom section */
.bottom-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #999;
}

.history-section, .export-section {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #333;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.bottom-title {
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-list {
    max-height: 100px;
    overflow-y: auto;
    font-size: 0.8em;
}

.history-item {
    padding: 6px;
    background: white;
    border: 1px solid #ddd;
    margin-bottom: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.history-item:hover {
    background: #f0f0f0;
}

/* Export controls */
.export-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.small-btn {
    padding: 6px 12px;
    background: white;
    border: 2px solid #333;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: normal;
    box-shadow: none;
}

.small-btn:hover {
    background: #333;
    color: white;
    transform: none;
    box-shadow: none;
}

.export-dropdown {
    position: relative;
}

/* Messages */
.copied-msg, .edit-indicator {
    font-size: 0.85em;
    margin-top: 6px;
    display: none;
    font-weight: bold;
}

.copied-msg {
    color: #2e7d32;
}

.edit-indicator {
    color: #f57c00;
}

/* L33t section */
.l33t-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #999;
}

.l33t-controls {
    display: none;
}

.l33t-controls.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        padding: 20px;
        padding-left: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}