/**
 * Стили для инструментов
 * Snowbars.net
 */

.tools-page {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-top: 70px;
}

.tool-main {
    padding: 40px 0;
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.back-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.tool-title {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.tool-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* Генератор паролей */
.password-result {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.password-display {
    flex: 1;
    padding: 18px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.password-display:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-copy,
.btn-generate {
    padding: 18px 25px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy {
    background: var(--bg-hover);
    color: var(--text-primary);
    min-width: 60px;
}

.btn-copy:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-copy.copied {
    animation: pulse 0.3s ease;
}

.btn-generate {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-weight: 700;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    border: 2px solid transparent;
}

.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-generate:active {
    transform: translateY(-1px);
}

/* Индикатор надёжности */
.strength-meter {
    margin-bottom: 30px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.strength-bar {
    height: 12px;
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

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

.strength-text {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Настройки */
.settings-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 30px;
}

.setting-item {
    background: var(--bg-primary);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1rem;
}

.range-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: var(--bg-hover);
    border-radius: 3px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.9);
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    transition: var(--transition);
}

.range-slider::-moz-range-thumb:hover {
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.9);
    transform: scale(1.1);
}

/* Чекбоксы */
.checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    cursor: pointer !important;
    user-select: none !important;
    padding: 12px 15px !important;
    background: var(--bg-primary) !important;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition) !important;
    width: 100% !important;
}

.checkbox-label:hover {
    background: var(--bg-hover) !important;
}

.checkbox-label input[type="checkbox"] {
    display: none !important;
}

.checkmark {
    width: 26px !important;
    height: 26px !important;
    background: var(--bg-card) !important;
    border: 2px solid var(--accent-primary) !important;
    border-radius: 6px !important;
    position: relative !important;
    transition: var(--transition) !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.2) !important;
    display: inline-block !important;
}

.checkbox-label input:checked + .checkmark {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5) !important;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: var(--bg-primary) !important;
    font-size: 18px !important;
    font-weight: bold !important;
    display: block !important;
}

.checkbox-label:hover .checkmark {
    border-color: var(--accent-secondary) !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4) !important;
}

.checkbox-label input:checked + .checkmark:hover {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7) !important;
}

/* История */
.password-history {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.password-history h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.history-list {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item code {
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: 1px;
}

.history-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-show,
.btn-copy-small {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-show:hover,
.btn-copy-small:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-clear {
    width: 100%;
    padding: 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.history-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

/* Советы по безопасности */
.security-tips {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.security-tips h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.security-tips ul {
    list-style: none;
    padding-left: 0;
}

.security-tips li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.security-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Уведомления */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .tool-container {
        padding: 25px;
    }
    
    .password-result {
        flex-direction: column;
    }
    
    .btn-copy,
    .btn-generate {
        width: 100%;
    }
    
    .tool-title {
        font-size: 1.8rem;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===================================
   Ping Checker Styles
   =================================== */

.ping-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.host-input {
    flex: 1;
    padding: 18px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
}

.host-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-ping {
    padding: 18px 30px;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ping:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.btn-ping:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quick-hosts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

.quick-btn {
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.quick-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-primary);
}

/* Результат */
.result-container {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.result-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
}

.status-badge {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
}

.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.ping-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.result-output {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.result-output h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.result-output pre {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

/* Ошибка */
.error-container {
    text-align: center;
    padding: 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid #ef4444;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.error-container h3 {
    color: #ef4444;
    margin-bottom: 10px;
}

.error-container p {
    color: var(--text-secondary);
}

/* Инфо */
.ping-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.ping-info h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ping-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.ping-info ul {
    list-style: none;
    padding-left: 0;
}

.ping-info li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.ping-good {
    color: #10b981;
    font-weight: bold;
}

.ping-normal {
    color: #f59e0b;
    font-weight: bold;
}

.ping-poor {
    color: #f97316;
    font-weight: bold;
}

.ping-bad {
    color: #ef4444;
    font-weight: bold;
}

/* Спиннер загрузки */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Адаптивность для ping */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .btn-ping {
        width: 100%;
        justify-content: center;
    }
    
    .quick-hosts {
        justify-content: center;
    }
    
    .ping-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ===================================
   Speedtest Styles
   =================================== */

.speedtest-container {
    max-width: 700px;
}

.speedtest-start {
    text-align: center;
    padding: 60px 20px;
}

.btn-start {
    padding: 30px 80px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: var(--bg-primary);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-start:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 60px var(--accent-glow);
}

.start-icon {
    font-size: 4rem;
    animation: rocketPulse 2s ease-in-out infinite;
}

@keyframes rocketPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.start-info {
    color: var(--text-secondary);
    margin-top: 20px;
    font-size: 1rem;
}

/* Running screen */
.speedtest-running {
    padding: 40px 20px;
    text-align: center;
}

.speedometer {
    position: relative;
    width: 280px;
    height: 140px;
    margin: 0 auto 30px;
    overflow: hidden;
}

.speed-value {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.speed-value #currentSpeed {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-primary);
    line-height: 1;
}

.speed-unit {
    font-size: 1rem;
    color: var(--text-secondary);
}

.speed-gauge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 140px;
}

.gauge-arc {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    width: 280px;
    height: 140px;
    border-radius: 140px 140px 0 0;
    background: conic-gradient(from 270deg, var(--accent-primary) 0deg, var(--accent-secondary) 90deg, transparent 90deg);
    transition: transform 0.3s ease;
}

.gauge-arc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 120px;
    background: var(--bg-card);
    border-radius: 120px 120px 0 0;
}

.test-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    transition: width 0.5s ease;
}

#progressText {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.test-stage {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: inline-block;
}

.stage-icon {
    font-size: 2rem;
    margin-right: 10px;
}

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

/* Result screen */
.speedtest-result {
    padding: 30px 20px;
}

.result-title {
    text-align: center;
    margin-bottom: 30px;
}

.result-title .result-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.result-title h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: var(--bg-primary);
    padding: 25px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.result-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.result-card.download {
    border-top: 3px solid #10b981;
}

.result-card.upload {
    border-top: 3px solid #3b82f6;
}

.result-card.ping {
    border-top: 3px solid #f59e0b;
}

.result-icon-large {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.result-unit {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.result-actions {
    text-align: center;
    margin-bottom: 30px;
}

.btn-restart {
    padding: 15px 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.result-info {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.result-info h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-item strong {
    color: var(--text-primary);
}

.info-item span {
    color: var(--text-secondary);
    text-align: right;
    max-width: 60%;
}

/* Speedtest info */
.speedtest-info {
    max-width: 700px;
    margin: 40px auto 0;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.speedtest-info h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.speedtest-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.speedtest-info ul {
    list-style: none;
    padding-left: 0;
}

.speedtest-info li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--text-secondary);
}

.speedtest-info li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.info-note {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border-left: 3px solid #f59e0b;
    font-size: 0.95rem;
}

/* Адаптивность для speedtest */
@media (max-width: 768px) {
    .btn-start {
        padding: 20px 40px;
    }
    
    .start-icon {
        font-size: 3rem;
    }
    
    .btn-start span {
        font-size: 1.2rem;
    }
    
    .speedometer {
        width: 220px;
        height: 110px;
    }
    
    .speed-gauge,
    .gauge-arc {
        width: 220px;
        height: 110px;
    }
    
    .gauge-arc::before {
        width: 180px;
        height: 90px;
    }
    
    .speed-value #currentSpeed {
        font-size: 2.5rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-item span {
        max-width: 100%;
        text-align: left;
    }
}

/* ===================================
   Converter Styles
   =================================== */

.converter-category {
    margin-bottom: 30px;
}

.converter-category label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.category-select {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
}

.category-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: end;
    margin-bottom: 30px;
}

.converter-side label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.value-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: inherit;
    margin-bottom: 10px;
}

.value-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.value-input[readonly] {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.unit-select {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
}

.unit-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.converter-equals {
    padding-bottom: 10px;
}

.converter-equals span {
    font-size: 2.5rem;
    color: var(--accent-primary);
    font-weight: bold;
}

.converter-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-swap,
.btn-copy-result {
    flex: 1;
    padding: 15px 20px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-swap:hover,
.btn-copy-result:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-primary);
}

.converter-info {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.converter-info h3 {
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.converter-info p {
    color: var(--text-secondary);
}

/* Адаптивность для converter */
@media (max-width: 768px) {
    .converter-grid {
        grid-template-columns: 1fr;
    }
    
    .converter-equals {
        text-align: center;
        padding: 10px 0;
    }
    
    .converter-equals::before {
        content: '↓';
        display: block;
        font-size: 1.5rem;
        color: var(--accent-primary);
    }
    
    .converter-equals span {
        display: none;
    }
    
    .converter-buttons {
        flex-direction: column;
    }
}
