body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #444;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
}

.info-block {
    margin-bottom: 15px;
}

.info-label {
    font-weight: bold;
    display: inline-block;
    width: 150px;
    color: #555;
}

.info-value {
    display: inline-block;
    padding: 5px 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.info-value:hover {
    background: #e9e9e9;
}

.info-value.copied {
    background: #d4edda;
    border-color: #c3e6cb;
}

.ip-address {
    font-size: 24px;
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background: #e9f7fe;
    border-radius: 4px;
    font-weight: bold;
}

.ip-address.clickable {
    cursor: pointer;
    transition: background 0.3s;
}

.ip-address.clickable:hover {
    background: #d1e7ff;
}

.error {
    color: #dc3545;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Navigation styles */
.navbar {
    background: #fff;
    padding: 10px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-item {
    margin-right: 15px;
}

.nav-link {
    color: #000;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-link:hover {
    background: rgba(0,0,0,0.05);
}

.language-switcher {
    color: #000;
    margin-left: 15px;
	align-items: center;
}

.language-switcher a {
    color: #0066cc;
    text-decoration: none;
    margin-left: 10px;
}

.language-switcher a:hover {
    text-decoration: underline;
}

/* Mobile menu styles */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;

    margin-right: 15px;
    padding: 9px 10px;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;



}

/* Responsive styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 10px 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .language-switcher {
        margin: 10px 0 0;
        padding-top: 10px;
        border-top: 1px solid #eee;
/*        width: 100%; 
		align-items: center; */
    }
}

/* WHOIS Page Styles */
.whois-form {
    margin: 30px 0;
}

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

.form-group input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group button {
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.form-group button:hover {
    background: #0052a3;
}

.whois-result {
    margin-top: 30px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    position: relative;
}

.whois-result pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    background: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Rate Limit Styles */
.rate-limit-message {
    text-align: center;
    padding: 30px;
    background: #fff8f8;
    border: 1px solid #ffdddd;
    border-radius: 8px;
    max-width: 500px;
    margin: 30px auto;
}

.rate-limit-message .icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.cooldown-timer {
    margin: 20px auto;
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.timer-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #ff4d4d, #ff9999);
    transition: width 1s linear;
}

.timer-text {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 30px;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.whois-data {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
    font-family: monospace;
}

.whois-row {
    margin-bottom: 5px;
    line-height: 1.4;
}

.whois-field {
    font-weight: bold;
    color: #212529;
    display: inline-block;
    min-width: 200px;
}

.whois-text {
    color: #6c757d;
    margin: 5px 0;
}

.whois-source {
    margin-top: 15px;
    font-size: 0.9em;
    color: #6c757d;
    text-align: right;
}

.error-message {
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.error-icon {
    font-size: 50px;
    color: #ff4444;
    margin-bottom: 15px;
}

.error-message h3 {
    color: #ff4444;
    margin-top: 0;
}

.cooldown-timer {
    margin: 20px auto;
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.timer-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #4CAF50, #8BC34A);
    transition: width 1s linear;
}

.timer-text {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 30px;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Footer Styles */
.footer-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 10px auto 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.partner-section {
    background: #f9f9f9;
    border-radius: 8px;
}

.partner-title {
    margin: 15px 0;
    color: #444;
    font-size: 18px;
}

.partner-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.form-input-partner {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 300px;
    max-width: 100%;
}

.form-button-partner {
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.form-button-partner:hover {
    background: #0052a3;
}

.arrow-up {
    font-size: 24px;
    font-weight: bold;
}

.metrics-container {
    margin-top: 20px;
    padding: 10px;
}

.yandex-metrica {
    border: 0;
    width: 88px;
    height: 31px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .partner-form {
        flex-direction: column;
        align-items: center;
    }
    
    .form-input {
		
        margin-bottom: 10px;
		
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}


/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0066cc;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.theme-label {
    font-size: 14px;
    color: #333;
}

/* Dark Theme Styles */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-theme .container,
body.dark-theme .navbar,
body.dark-theme .nav-container,
body.dark-theme .mobile-menu-btn,
body.dark-theme .nav-list,
body.dark-theme .nav-item,
body.dark-theme .nav-link,
body.dark-theme .active,
body.dark-theme .language-switcher,
body.dark-theme .footer-container,
body.dark-theme .whois-result,
body.dark-theme .rate-limit-message,
body.dark-theme .error-message,
body.dark-theme .form-group,
body.dark-theme .partner-section {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme .theme-label {
    color: #f5f5f5;
}

body.dark-theme .info-value,
body.dark-theme .ip-address,
body.dark-theme .form-input-partner,
body.dark-theme .ip-address.clickable,
body.dark-theme .ip-address.clickable:hover,
body.dark-theme .whois-result pre {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-theme .info-value.clickable:hover,
body.dark-theme .ip-address.clickable:hover {
    background: #f5f5f5;
    color: #000;
}



body.dark-theme .nav-link,
body.dark-theme .lang-link {
    color: #e0e0e0;
}

body.dark-theme .nav-link:hover,
body.dark-theme .lang-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .copy-btn,
body.dark-theme .form-button {
    background-color: #0066cc;
    color: white;
}

body.dark-theme .copy-btn:hover,
body.dark-theme .form-button:hover {
    background-color: #0052a3;
}

/* Network Tools Styles */
.tool-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.tool-form {
    margin: 20px 0;
}

.tool-result {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tool-result pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Dark theme styles for tools */
body.dark-theme .tool-section {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-theme .tool-result {
    background-color: #1e1e1e;
    border-color: #444;
}

body.dark-theme .tool-result pre {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.tool-result {
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    font-family: monospace;
}

.tool-result div {
    padding: 2px 0;
    border-bottom: 1px solid #eee;
}

/* Dark theme styles */
body.dark-theme .tool-result {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-theme .tool-result div {
    border-bottom-color: #444;
}
l-form {
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-button {
    padding: 12px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.form-button:hover {
    background: #0052a3;
}

/* Переключатель IP версий */
.ip-version-switcher {
    display: flex;
    gap: 15px;
    margin: 5px 0;
}

.ip-version-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
}

.ip-version-label input {
    margin: 0;
}

/* Терминал и вывод результатов */
.terminal-container {
    margin-top: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #1e1e1e;
}

.terminal {
    font-family: 'Courier New', monospace;
    color: #e0e0e0;
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    line-height: 1.5;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 5px;
}

.terminal-controls {
    background: #333;
    padding: 5px 10px;
    display: flex;
    gap: 10px;
}

.terminal-copy, 
.terminal-clear {
    background: #555;
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.terminal-copy:hover,
.terminal-clear:hover {
    background: #666;
}

/* Цвета для ping */
.ping-bytes {
    color: #4CAF50;
}

.ping-time {
    color: #2196F3;
    font-weight: bold;
}

.ping-stats {
    color: #FF9800;
}

/* Ошибки */
.terminal-error {
    color: #F44336;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-group {
        gap: 8px;
    }
    
    .form-input {
        padding: 10px 12px;
    }
    
    .ip-version-switcher {
        gap: 10px;
        justify-content: center;
    }
    
    .terminal {
        height: 250px;
        font-size: 14px;
    }
}

/* Темная тема */
body.dark-theme .form-input {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-theme .terminal {
    background-color: #121212;
}

body.dark-theme .terminal-controls {
    background-color: #252525;
}


/* Статистика */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Темная тема */
body.dark-theme .login-container {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-theme .login-container input {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: #444;
}

