/* Secure Password Generator Styles */
.tool-container {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tool-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.generator-content {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.password-display {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.generated-password {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    word-break: break-all;
    color: var(--text-primary);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.copy-button, .refresh-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.copy-button {
    background: var(--primary-color);
    color: white;
}

.copy-button:hover:not(:disabled) {
    background: var(--primary-hover);
}

.copy-button:disabled {
    background: var(--disabled-bg);
    color: var(--disabled-text);
    cursor: not-allowed;
}

.refresh-button {
    background: var(--accent-color);
    color: white;
}

.refresh-button:hover {
    background: var(--accent-hover);
}

.password-strength {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.strength-meter {
    margin-bottom: 1.5rem;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.meter-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 0.5s ease, background 0.5s ease;
}

.strength-text {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.strength-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-card {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.detail-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.detail-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.options-panel {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.options-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.option-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    outline: none;
    -webkit-appearance: none;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.option-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.option-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    color: var(--text-primary);
    cursor: pointer;
}

.password-history {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.password-history h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-family: 'JetBrains Mono', monospace;
}

.history-item:last-child {
    border-bottom: none;
}

.history-copy {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}

.history-copy:hover {
    background: var(--bg-secondary);
}

.empty-history {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 1rem;
}

.educational-content {
    max-width: 1000px;
    margin: 0 auto;
}

.educational-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.educational-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.edu-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.edu-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.edu-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.password-examples {
    margin-top: 2rem;
}

.password-examples h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.example-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.example-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.password-example {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    word-break: break-all;
    color: var(--text-primary);
}

.example-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Strength meter colors */
.meter-very-weak { background: #ff4d4d; }
.meter-weak { background: #ff8c4d; }
.meter-medium { background: #ffc44d; }
.meter-strong { background: #8cc474; }
.meter-very-strong { background: #4caf50; }

.text-very-weak { color: #ff4d4d; }
.text-weak { color: #ff8c4d; }
.text-medium { color: #ffc44d; }
.text-strong { color: #8cc474; }
.text-very-strong { color: #4caf50; }

/* Copy feedback animation */
@keyframes copyFlash {
    0% { background: var(--primary-color); }
    100% { background: var(--success-bg); }
}

.copied-feedback {
    animation: copyFlash 0.5s ease;
}