                       .footer p {
            color: white;
            text-decoration: none;
        }/* style.css - единые стили для всех страниц HashGenerator.ru */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.btn-reset {
    background: #64748b;
    margin-top: 12px;
}

.btn-reset:hover {
    background: #475569;
    transform: translateY(-1px);
}
/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    width: 100%;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    width: 100%;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: white;
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 10px;
}

.header p {
    color: rgba(255,255,255,0.9);
    font-size: clamp(14px, 4vw, 16px);
}

.stats-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    margin-top: 12px;
    color: white;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Cards */
.card {
    background: white;
    border-radius: 24px;
    padding: clamp(20px, 5vw, 40px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.card h1 {
    color: #0f172a;
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 20px;
}

.card h2 {
    color: #1e293b;
    font-size: clamp(20px, 4vw, 24px);
    margin: 30px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.card h3 {
    color: #334155;
    font-size: clamp(18px, 4vw, 20px);
    margin: 20px 0 10px 0;
}

.card p {
    line-height: 1.6;
    color: #475569;
    margin-bottom: 15px;
}

.card ul, .card ol {
    margin: 15px 0 15px 25px;
    color: #475569;
    line-height: 1.6;
}

.card li {
    margin-bottom: 8px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.feature-item h3 {
    margin-top: 0;
    font-size: 18px;
}

.feature-item p {
    font-size: 14px;
    margin-bottom: 0;
}
                       .footer p {
            color: white;
            text-decoration: none;
        }
/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="range"] {
    padding: 0;
    margin: 10px 0;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

/* Buttons */
button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-copy {
    background: #10b981;
    flex: 1;
}

.btn-copy:hover {
    background: #059669;
}

.btn-secondary {
    background: #64748b;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Result Boxes */
.result-box {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.password-display, .hash-display {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    word-break: break-all;
    text-align: center;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.password-display:hover, .hash-display:hover {
    background: #334155;
}

.hash-display {
    font-size: 13px;
}

/* Strength Meter */
.strength-meter {
    margin: 12px 0;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s;
    border-radius: 3px;
}

.strength-1 { background: #ef4444; width: 20%; }
.strength-2 { background: #f97316; width: 40%; }
.strength-3 { background: #eab308; width: 60%; }
.strength-4 { background: #84cc16; width: 80%; }
.strength-5 { background: #22c55e; width: 100%; }

.strength-text {
    font-size: 12px;
    margin-top: 6px;
    text-align: right;
}

/* Code Blocks */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    overflow-x: auto;
    margin: 15px 0;
}

/* Algorithm Cards */
.algorithm-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid;
}

.algorithm-bcrypt { border-left-color: #3b82f6; }
.algorithm-argon2 { border-left-color: #10b981; }
.algorithm-sha256 { border-left-color: #f59e0b; }
.algorithm-md5 { border-left-color: #ef4444; }

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.badge-recommended { background: #dcfce7; color: #166534; }
.badge-modern { background: #dbeafe; color: #1e40af; }
.badge-legacy { background: #fee2e2; color: #991b1b; }

/* Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f1f5f9;
    font-weight: 600;
}

/* Steps */
.step {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.step-number {
    display: inline-block;
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 10px;
}

/* Tips */
.tip {
    background: #fef9e3;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
}

/* Alert */
.alert {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #dc2626;
    font-size: 14px;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left-color: #3b82f6;
}

/* Info Text */
.info-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

/* Cost Slider */
.cost-slider {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cost-value {
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Admin Link */
.admin-link {
    text-align: center;
    margin: 20px 0;
}

.admin-link a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
}

.admin-link a:hover {
    color: white;
    text-decoration: underline;
}

/* Last Updated */
.last-updated {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Footer */
.footer {
    background: rgba(0,0,0,0.3);
    margin-top: 40px;
    padding: 40px 20px 30px;
    color: rgba(255,255,255,0.8);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p, .footer-section a {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 12px;
}

/* Login Box */
.login-box {
    background: white;
    border-radius: 24px;
    padding: clamp(24px, 5vw, 40px);
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.login-box h1 {
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 24px;
}

.login-box .subtitle {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 14px;
}

/* Admin Panel */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #0f172a;
}

.ip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ip-item {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: monospace;
}

.hash-preview {
    font-family: monospace;
    font-size: 11px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-container {
    overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .container, .container-narrow {
        padding: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
    
    .step {
        padding: 16px;
    }
    
    .code-block {
        font-size: 11px;
    }
    
    .checkbox-group {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .stats-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .hash-preview {
        max-width: 120px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.w-100 {
    width: 100%;
}