/* ==== Seite: password-generator ==== */

/* Reset der globalen Karten-Komponente für den Tool-Container */

/* Footer styles are loaded from footer.css */

/* Header styles are loaded from header.css */

/* Hidden class for search filtering */

/* Back to Top Button */

/* Dark Theme - Logo */

/* =============================== */

/* PAGE-SPECIFIC STYLES: Passwort-Generator */

/* =============================== */

body.page-password-generator .card-header {

            text-align: center;
            margin-bottom: 40px;
        
}

body.page-password-generator .card-header h1 {

            font-size: 2.5em;
            color: var(--c-text);
            margin-bottom: 10px;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 700;
            letter-spacing: -0.5px;
        
}

body.page-password-generator .card-header p {

            color: var(--c-muted);
            font-size: 1.1em;
        
}

body.page-password-generator .password-display {

            background: var(--c-surface);
            border: 2px solid var(--c-border);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            position: relative;
            word-break: break-all;
        
}

body.page-password-generator .password-text {

            font-size: 24px;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            color: var(--c-text);
            text-align: center;
            min-height: 36px;
            word-break: break-all;
        
}

body.page-password-generator .password-actions {

            display: flex;
            gap: 10px;
            margin-top: 15px;
        
}

body.page-password-generator .action-btn {

            flex: 1;
            padding: 12px;
            background: var(--c-accent);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
            white-space: nowrap;
        
}

body.page-password-generator .action-btn:hover {

            background: var(--c-accent-hover);
            transform: scale(1.02);
        
}

body.page-password-generator .action-btn.copied {

            background: var(--c-success);
        
}

body.page-password-generator .visibility-btn {

            position: absolute;
            top: 10px;
            right: 10px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: var(--c-surface-2);
            cursor: pointer;
            font-size: 16px;
            line-height: 1;
            transition: all 0.3s;
            z-index: 2;
        
}

body.page-password-generator .visibility-btn:hover {

            background: var(--c-surface-2);
            transform: scale(1.05);
        
}

body.page-password-generator .password-text.multiline {

            white-space: pre-wrap;
            text-align: left;
            font-size: 16px;
            line-height: 1.7;
        
}

body.page-password-generator .count-select {

            width: 100%;
            padding: 12px 40px 12px 14px;
            border: 2px solid var(--c-border);
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            background: white;
            cursor: pointer;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 14px;
        
}

body.page-password-generator .count-select:focus {

            outline: none;
            border-color: var(--c-accent);
        
}

body.page-password-generator .strength-container {

            margin-bottom: 25px;
        
}

body.page-password-generator .strength-label {

            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 600;
        
}

body.page-password-generator .strength-bar {

            height: 12px;
            background: var(--c-surface-2);
            border-radius: 6px;
            overflow: hidden;
            position: relative;
        
}

body.page-password-generator .strength-fill {

            height: 100%;
            width: 0%;
            transition: all 0.3s;
            border-radius: 6px;
        
}

body.page-password-generator .strength-fill.weak {
 width: 25%; background: #ef4444; 
}

body.page-password-generator .strength-fill.fair {
 width: 50%; background: #f59e0b; 
}

body.page-password-generator .strength-fill.good {
 width: 75%; background: #3b82f6; 
}

body.page-password-generator .strength-fill.strong {
 width: 100%; background: var(--c-success); 
}

body.page-password-generator .strength-text {

            text-align: center;
            margin-top: 8px;
            font-size: 13px;
            font-weight: 600;
        
}

body.page-password-generator .options-section {

            display: none;
            margin-bottom: 25px;
        
}

body.page-password-generator .options-section.active {

            display: block;
        
}

body.page-password-generator .option-group {
 margin-bottom: 20px; 
}

body.page-password-generator .option-label {

            display: block;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--c-muted);
        
}

body.page-password-generator .length-slider {

            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: var(--c-surface-2);
            outline: none;
            -webkit-appearance: none;
            appearance: none;
            margin-bottom: 10px;
        
}

body.page-password-generator .length-slider::-webkit-slider-thumb {

            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: var(--c-accent);
            cursor: pointer;
            border-radius: 50%;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        
}

body.page-password-generator .length-slider::-moz-range-thumb {

            width: 20px;
            height: 20px;
            background: var(--c-accent);
            cursor: pointer;
            border-radius: 50%;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            border: none;
        
}

body.page-password-generator .checkbox-group {

            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        
}

body.page-password-generator .checkbox-item {

            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px;
            background: var(--c-surface);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        
}

body.page-password-generator .checkbox-item:hover {

            background: var(--c-surface-2);
        
}

body.page-password-generator .checkbox-item input[type="checkbox"] {

            width: 18px;
            height: 18px;
            cursor: pointer;
        
}

body.page-password-generator .checkbox-item label {

            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            flex: 1;
        
}

body.page-password-generator .mode-toggle {

            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            background: var(--c-surface);
            padding: 5px;
            border-radius: 10px;
        
}

body.page-password-generator .mode-btn {

            flex: 1;
            padding: 12px;
            background: transparent;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
            color: var(--c-muted);
        
}

body.page-password-generator .mode-btn.active {

            background: var(--c-accent);
            color: white;
        
}

body.page-password-generator .mode-btn:hover:not(.active) {

            background: var(--c-surface-2);
        
}

body.page-password-generator .passphrase-options {

            display: none;
            margin-bottom: 20px;
        
}

body.page-password-generator .passphrase-options.active {

            display: block;
        
}

body.page-password-generator .generate-btn {

            width: 100%;
            padding: 18px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-size: 18px;
            font-weight: 700;
            transition: all 0.3s;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        
}

body.page-password-generator .generate-btn:hover {

            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        
}

body.page-password-generator .generate-btn:active {

            transform: translateY(0);
        
}

body.page-password-generator .security-notice {

            background: var(--c-success);
            border: 2px solid var(--c-success);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        
}

body.page-password-generator .security-icon {
 font-size: 24px; 
}

body.page-password-generator .security-text {

            flex: 1;
            font-size: 14px;
            color: var(--c-text);
            font-weight: 600;
        
}

body.page-password-generator .info-icon {
 font-size: 24px; 
}

body.page-password-generator .info-text {

            flex: 1;
            font-size: 14px;
            color: var(--c-accent);
            font-weight: 600;
        
}

/* Modal Styles */

body.page-password-generator .modal-overlay {

            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        
}

body.page-password-generator .modal-overlay.show {

            display: flex;
        
}

body.page-password-generator .modal-content {

            background: white;
            border-radius: 20px;
            padding: 0;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            animation: modalSlideIn 0.3s ease-out;
        
}

@keyframes modalSlideIn {

            from { opacity: 0; transform: translateY(-50px); }
            to { opacity: 1; transform: translateY(0); }
        
}

body.page-password-generator .modal-header {

            padding: 25px 30px;
            border-bottom: 2px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        
}

body.page-password-generator .modal-header h2 {

            margin: 0;
            font-size: 1.5em;
            color: var(--c-text);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 700;
        
}

body.page-password-generator .modal-close {

            background: none;
            border: none;
            font-size: 2em;
            color: var(--c-muted);
            cursor: pointer;
            line-height: 1;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s;
        
}

body.page-password-generator .modal-close:hover {

            background: var(--c-surface-2);
            color: var(--c-text);
        
}

body.page-password-generator .modal-body {
 padding: 30px; 
}

body.page-password-generator .form-group {
 margin-bottom: 20px; 
}

body.page-password-generator .form-group label {

            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--c-muted);
            font-size: 14px;
        
}

body.page-password-generator .form-group input, body.page-password-generator .form-group textarea {

            width: 100%;
            padding: 12px 15px;
            border: 2px solid var(--c-border);
            border-radius: 8px;
            font-size: 15px;
            font-family: inherit;
            transition: all 0.3s;
        
}

body.page-password-generator .form-group input:focus, body.page-password-generator .form-group textarea:focus {

            outline: none;
            border-color: var(--c-accent);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        
}

body.page-password-generator .form-group textarea {

            resize: vertical;
            min-height: 100px;
        
}

body.page-password-generator .modal-preview {

            background: var(--c-surface);
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #667eea;
        
}

body.page-password-generator .modal-preview strong {

            display: block;
            margin-bottom: 10px;
            color: var(--c-muted);
            font-size: 14px;
        
}

body.page-password-generator .modal-preview pre {

            background: white;
            padding: 12px;
            border-radius: 6px;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            color: var(--c-text);
            white-space: pre-wrap;
            word-break: break-all;
            margin: 0;
            border: 1px solid #e0e0e0;
        
}

body.page-password-generator .modal-footer {

            padding: 20px 30px 25px;
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        
}

body.page-password-generator .modal-btn {

            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        
}

body.page-password-generator .modal-btn-cancel {

            background: var(--c-surface-2);
            color: var(--c-muted);
        
}

body.page-password-generator .modal-btn-cancel:hover {

            background: var(--c-surface-2);
            transform: translateY(-2px);
        
}

body.page-password-generator .modal-btn-download {

            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        
}

body.page-password-generator .modal-btn-download:hover {

            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        
}

/* Dark Theme - Page Specific */

body.dark-theme.page-password-generator .card-header h1 {
 color: var(--c-text); 
}

body.dark-theme.page-password-generator .card-header p {
 color: var(--c-muted); 
}

body.dark-theme.page-password-generator .password-display {
 background: var(--c-surface); border-color: #3a3a4e; 
}

body.dark-theme.page-password-generator .password-text {
 color: var(--c-text); 
}

body.dark-theme.page-password-generator .visibility-btn {
 background: var(--c-surface-2); 
}

body.dark-theme.page-password-generator .visibility-btn:hover {
 background: #4a4a5e; 
}

body.dark-theme.page-password-generator .count-select {
  background: var(--c-surface); border-color: #3a3a4e; color: #e0e0e0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0d0dc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}

body.dark-theme.page-password-generator .option-label {
 color: var(--c-muted); 
}

body.dark-theme.page-password-generator .checkbox-item {
 background: var(--c-surface); 
}

body.dark-theme.page-password-generator .checkbox-item:hover {
 background: var(--c-surface-2); 
}

body.dark-theme.page-password-generator .mode-toggle {
 background: var(--c-surface); 
}

body.dark-theme.page-password-generator .mode-btn {
 color: var(--c-muted); 
}

body.dark-theme.page-password-generator .mode-btn:hover:not(.active) {
 background: var(--c-surface-2); 
}

body.dark-theme.page-password-generator .mode-btn.active {
 background: var(--c-accent); color: white; 
}

body.dark-theme.page-password-generator .security-notice {
 background: var(--c-success); border-color: #10b981; 
}

body.dark-theme.page-password-generator .security-text {
 color: var(--c-text); 
}

body.dark-theme.page-password-generator .info-text {
 color: var(--c-accent); 
}

body.dark-theme.page-password-generator .strength-text {
 color: var(--c-text); 
}

body.dark-theme.page-password-generator .modal-content {
 background: var(--c-surface); 
}

body.dark-theme.page-password-generator .modal-header {
 border-bottom-color: var(--c-border); 
}

body.dark-theme.page-password-generator .modal-header h2 {
 color: var(--c-text); 
}

body.dark-theme.page-password-generator .modal-close {
 color: var(--c-muted); 
}

body.dark-theme.page-password-generator .modal-close:hover {
 background: var(--c-surface); color: #e0e0e0; 
}

body.dark-theme.page-password-generator .form-group label {
 color: var(--c-muted); 
}

body.dark-theme.page-password-generator .form-group input, body.dark-theme.page-password-generator .form-group textarea {
 background: var(--c-surface); border-color: #3a3a4e; color: #e0e0e0; 
}

body.dark-theme.page-password-generator .form-group input:focus, body.dark-theme.page-password-generator .form-group textarea:focus {
 border-color: #667eea; 
}

body.dark-theme.page-password-generator .modal-preview {
 background: var(--c-surface); 
}

body.dark-theme.page-password-generator .modal-preview strong {
 color: var(--c-muted); 
}

body.dark-theme.page-password-generator .modal-preview pre {
 background: #1e1e2e; color: #e0e0e0; border-color: var(--c-border); 
}

body.dark-theme.page-password-generator .modal-btn-cancel {
 background: var(--c-surface); color: #b0b0b0; 
}

body.dark-theme.page-password-generator .modal-btn-cancel:hover {
 background: var(--c-surface-2); 
}

/* Responsive - Page Specific */

@media (max-width: 768px) {
body.page-password-generator .card-header h1 {
 font-size: 2em; 
}
body.page-password-generator .password-text {
 font-size: 18px; 
}
body.page-password-generator .checkbox-group {
 grid-template-columns: 1fr; 
}
}
