/* WHOIS Tool Styles */

/* Hero Section Styles */
.whois-hero {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.whois-hero h1 {
    font-weight: 600;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.whois-hero .lead {
    font-size: 1.1rem;
    opacity: 0.9;
}

.breadcrumb-item a {
    text-decoration: none;
}

/* Main Container Styles */
.whois-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.whois-form {
    margin-bottom: 1.5rem;
}

.whois-form h4 {
    color: #0056b3;
    font-weight: 600;
}

.whois-form .form-label {
    font-weight: 500;
}

.btn-search {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-search:hover {
    background-color: #003d82;
    color: white;
}

/* Loading and Error Styles */
.whois-loading {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.whois-loading i {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 0.5rem;
}

.whois-error {
    display: none;
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #e53e3e;
}

/* Results Styles */
.whois-results {
    display: none;
}

.section-title {
    color: #333;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Tab Styles */
.tab-container {
    margin-top: 1.5rem;
}

.tab-navigation {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.tab-link {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #555;
}

.tab-link:hover {
    color: #0056b3;
}

.tab-link.active {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Table Styles */
.whois-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
}

.whois-table tr:nth-child(odd) {
    background-color: #f8f9fa;
}

[data-theme="dark"] .whois-table tr:nth-child(odd) {
    background-color: rgba(59, 130, 246, 0.05);
}

.whois-table th,
.whois-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

[data-theme="dark"] .whois-table th,
[data-theme="dark"] .whois-table td {
    border-color: var(--border-color) !important;
}

.whois-table th {
    background-color: #f1f3f5;
    font-weight: 600;
    color: #444;
}

[data-theme="dark"] .whois-table th {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .whois-table td {
    color: var(--text-primary) !important;
    background-color: transparent !important;
}

.raw-data {
    background-color: #181c20;
    color: #e0e0e0;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #23272b;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    font-size: 0.97rem;
    line-height: 1.7;
    white-space: pre-wrap;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: auto;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    word-break: break-all;
}

/* Sidebar Styles */
.whois-sidebar {
    position: sticky;
    top: 1rem;
}

.related-tools h5,
.info-box h5 {
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.list-group-item {
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

.info-box ul {
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
}

/* Ad Container Styles */
.ad-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.ad-label {
    background-color: #f1f3f5;
    color: #212529; /* Improved contrast */
    padding: 0.25rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Loading indicator improvement */
.whois-loading {
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.whois-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

/* Domain Profile Styles */
.domain-profile h4 {
    color: #0056b3;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Dark mode for domain profile headings */
[data-theme="dark"] .domain-profile h4 {
    color: var(--accent-color) !important;
    border-bottom-color: var(--border-color) !important;
}

.domain-profile .whois-table th {
    background-color: #f1f3f5;
    color: #333;
    font-weight: 600;
    width: 20%;
}

/* Dark mode for domain profile table headers */
[data-theme="dark"] .domain-profile .whois-table th {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.domain-profile .whois-table td div {
    margin-bottom: 0.3rem;
}

/* Dark mode for domain profile table data */
[data-theme="dark"] .domain-profile .whois-table td {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .domain-profile .whois-table td div {
    color: var(--text-primary) !important;
    background-color: transparent !important;
}

.domain-profile .whois-table td div:last-child {
    margin-bottom: 0;
}

/* Raw Data Title */
#rawTab h4 {
    color: #0056b3;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Dark mode for raw data headings */
[data-theme="dark"] #rawTab h4 {
    color: var(--accent-color) !important;
    border-bottom-color: var(--border-color) !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .whois-hero {
        padding: 2.5rem 0;
    }
    
    .whois-sidebar {
        position: static;
        margin-top: 1.5rem;
    }
}

/* Enhanced Dark Mode Styles for WHOIS Tool */
[data-theme="dark"] .whois-container {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .whois-form h4 {
    color: var(--accent-color);
}

[data-theme="dark"] .whois-form .form-label {
    color: var(--text-primary);
}

[data-theme="dark"] .whois-form .form-control {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .whois-form .form-control:focus {
    background-color: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .whois-form .form-text {
    color: var(--text-muted);
}

[data-theme="dark"] .btn-search {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .btn-search:hover {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}


[data-theme="dark"] .tab-link {
    color: var(--text-secondary);
    background-color: transparent;
}

[data-theme="dark"] .tab-link.active {
    color: var(--accent-color);
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .tab-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .raw-data {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary)) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] pre.raw-data {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary)) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] #rawData {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary)) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] #digResult {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary)) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] #nslookupResult {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary)) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .whois-loading i {
    color: var(--accent-color);
}

[data-theme="dark"] .whois-loading {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .whois-loading .spinner-border {
    color: var(--accent-color);
}

[data-theme="dark"] .whois-loading h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .whois-loading p {
    color: var(--text-secondary);
}

[data-theme="dark"] .whois-error {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1), rgba(185, 28, 28, 0.05));
    color: #fca5a5;
    border-left-color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .sidebar-card {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .sidebar-card h5 {
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar-card .list-group-item {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

[data-theme="dark"] .sidebar-card .list-group-item:hover {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .sidebar-card .list-group-item i {
    color: var(--accent-color);
}

/* Domain Profile Dark Mode */
[data-theme="dark"] .domain-profile {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .domain-profile h4 {
    color: var(--accent-color);
}

[data-theme="dark"] .domain-profile .profile-item {
    border-color: var(--border-color);
}

[data-theme="dark"] .domain-profile .profile-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .domain-profile .profile-value {
    color: var(--text-primary);
}

/* Tab Content Dark Mode */
[data-theme="dark"] .tab-content {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    color: var(--text-primary);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .tab-content h4 {
    color: var(--accent-color);
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Mobile-specific table improvements */
    .whois-table {
        table-layout: fixed;
        width: 100%;
    }
    
    .whois-table th {
        width: 35%;
        min-width: 80px;
    }
    
    .whois-table td {
        width: 65%;
        word-break: break-all;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Mobile tab improvements */
    .tab-navigation {
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }
    
    .tab-navigation::-webkit-scrollbar {
        height: 4px;
    }
    
    .tab-navigation::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .tab-navigation::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
}

@media (max-width: 768px) {
    .whois-hero {
        padding: 2rem 0;
    }
    
    .whois-hero h1 {
        font-size: 1.8rem;
    }
    
    .tab-navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    /* Mobile Table Responsiveness */
    .whois-table {
        font-size: 0.875rem;
    }
    
    .whois-table th,
    .whois-table td {
        padding: 0.5rem 0.75rem;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .whois-table th {
        width: 30%;
        min-width: 100px;
    }
    
    /* Mobile Raw Data */
    .raw-data {
        font-size: 0.8rem;
        padding: 0.8rem;
        max-height: 300px;
        overflow-x: auto;
        word-break: break-all;
        white-space: pre-wrap;
    }
    
    /* Mobile Container */
    .whois-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile Form */
    .whois-form .input-group {
        flex-direction: column;
    }
    
    .whois-form .input-group input {
        margin-bottom: 0.5rem;
        border-radius: 0.375rem;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        height: auto;
        min-height: 48px;
    }
    
    .whois-form .input-group button {
        border-radius: 0.375rem;
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        min-height: 48px;
    }
    
    /* Mobile Input Field Improvements */
    .whois-form input[type="text"] {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
        height: auto !important;
        min-height: 48px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .whois-form .form-control {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
        height: auto !important;
        min-height: 48px !important;
    }
    
    /* Mobile Table Responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile Long Text Handling */
    .whois-table td {
        max-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .whois-table td:hover {
        white-space: normal;
        word-break: break-all;
    }
    
    /* Mobile Raw Data Improvements */
    .raw-data {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        word-break: break-all;
        white-space: pre-wrap;
    }
}

@media (max-width: 576px) {
    .whois-hero h1 {
        font-size: 1.5rem;
    }
    
    .whois-hero .lead {
        font-size: 1rem;
    }
    
    .whois-table {
        font-size: 0.8rem;
    }
    
    .whois-table th,
    .whois-table td {
        padding: 0.4rem 0.5rem;
    }
    
    .raw-data {
        font-size: 0.75rem;
        padding: 0.6rem;
        max-height: 250px;
    }
    
    .tab-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .whois-container {
        padding: 0.8rem;
    }
    
    /* Small Mobile Input Field */
    .whois-form input[type="text"] {
        font-size: 1rem !important;
        padding: 0.8rem 1rem !important;
        min-height: 50px !important;
    }
    
    .whois-form .form-control {
        font-size: 1rem !important;
        padding: 0.8rem 1rem !important;
        min-height: 50px !important;
    }
    
    .whois-form .btn-search {
        font-size: 1rem !important;
        padding: 0.8rem 1rem !important;
        min-height: 50px !important;
    }
} 

.subdomain-hero {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(90deg, #0056b3 0%, #00bfff 100%);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.subdomain-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.subdomain-badge {
    background: #fff;
    color: #0056b3;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.2rem 0.8rem;
    margin-left: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.subdomain-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}
.subdomain-pill {
    background: #e3f2fd;
    color: #0056b3;
    border-radius: 16px;
    padding: 0.3rem 0.9rem;
    font-size: 0.97rem;
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 0.2rem;
    display: inline-block;
    transition: background 0.2s;
}
.subdomain-pill:hover {
    background: #bbdefb;
    color: #003d82;
}
.subdomain-count {
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.subdomain-note {
    font-size: 0.95rem;
    color: #888;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin-top: 1.2rem;
    border-left: 4px solid #00bfff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
} 