* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-top: 80px; /* Space for fixed navigation */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fixed Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #667eea;
    font-weight: 700;
    font-size: 20px;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: #5a6fd8;
}

.nav-brand i {
    font-size: 24px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
}

.nav-link i {
    font-size: 16px;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #667eea;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Header */
.header {
    text-align: center;
    padding: 60px 0 40px;
    color: white;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo i {
    font-size: 48px;
    margin-right: 15px;
    color: #fff;
}

.logo h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 20px 0;
}

/* Navigation Links (old style - now hidden) */
.nav-links {
    display: none;
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #6c757d;
    font-size: 18px;
    z-index: 2;
}

.input-wrapper input {
    flex: 1;
    padding: 16px 16px 16px 50px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
}

.search-btn {
    padding: 16px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    margin: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.examples {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.examples span {
    margin-right: 10px;
}

.example-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    margin: 0 5px;
    text-decoration: underline;
    font-size: 14px;
}

.example-btn:hover {
    color: #5a6fd8;
}

/* IP Display */
.ip-display {
    text-align: center;
}

.ip-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    color: white;
    margin-bottom: 20px;
}

.ip-icon {
    font-size: 64px;
    opacity: 0.8;
}

.ip-info h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.ip-address {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.ip-address.loaded {
    animation: fadeIn 0.5s ease-in;
}

.ip-address.error {
    color: #ff6b6b;
    font-size: 18px;
}

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

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Results */
.results {
    margin-bottom: 40px;
}

.result-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.result-info h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.result-info .timestamp {
    color: #6c757d;
    font-size: 14px;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.section {
    background: white;
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.section-icon.dns {
    background: #e3f2fd;
    color: #1976d2;
}

.section-icon.mail {
    background: #e8f5e8;
    color: #388e3c;
}

.section-icon.www {
    background: #fff3e0;
    color: #f57c00;
}

.section-icon.nameservers {
    background: #f3e5f5;
    color: #7b1fa2;
}

.section-title h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.section-title p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.section-content {
    padding: 30px;
}

.record-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.record-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.record-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.record-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.record-title {
    font-weight: 600;
    color: #333;
}

.record-content {
    padding: 20px;
}

.record-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.record-item {
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

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

.record-item .label {
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.record-item .value {
    color: #667eea;
    word-break: break-all;
}

.recommendation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.recommendation strong {
    color: #856404;
}

.recommendation p {
    margin: 0;
    font-size: 14px;
    color: #856404;
}

/* Whois specific styles */
.whois-output {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.whois-data {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Features */
.features {
    margin-bottom: 60px;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding: 20px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-text {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.footer-text .developer {
    color: #667eea;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-text .developer:hover {
    color: #5a6fd8;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .nav-container {
        height: 60px;
    }

    .nav-brand {
        font-size: 18px;
    }

    .nav-brand i {
        font-size: 20px;
        margin-right: 8px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(102, 126, 234, 0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        justify-content: flex-start;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: rgba(102, 126, 234, 0.2);
    }

    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 40px 0 30px;
    }
    
    .logo h1 {
        font-size: 32px;
    }
    
    .logo i {
        font-size: 36px;
    }
    
    .search-section {
        padding: 30px 20px;
    }
    
    .input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-btn {
        margin: 10px 0 0 0;
        justify-content: center;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .record-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .ip-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .ip-address {
        font-size: 24px;
    }

    .footer-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        padding: 15px;
    }

    .nav-link {
        font-size: 16px;
        padding: 14px 16px;
    }

    .nav-link i {
        font-size: 18px;
    }

    .footer-text {
        font-size: 12px;
    }
}