/* Modern Elegant Dark Theme for DNS Analyzer */

/* Custom CSS Variables for Modern Design */
:root {
    --bg-primary: #0a0d14;
    --bg-secondary: #151922;
    --bg-tertiary: #1e2328;
    --accent-primary: #3b82f6;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 35px 60px -12px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Typography and Base Styles */
body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.6;
    font-weight: 400;
}

/* Results Page Styling */
.results-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.results-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.results-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.analysis-nav .nav-pills .nav-link {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    margin: 0 0.25rem;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.analysis-nav .nav-pills .nav-link:hover,
.analysis-nav .nav-pills .nav-link.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.export-tools .card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.export-tools .card-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.export-tools .btn-group {
    gap: 0.5rem;
}

.export-tools .btn {
    flex: 1;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.analysis-badges .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.overview-content .card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.overview-content .card-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

.overview-content .card-body {
    padding: 1.5rem;
}

.advanced-tools .dropdown-menu {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
}

.advanced-tools .dropdown-item {
    color: var(--text-secondary);
    border-radius: 6px;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.advanced-tools .dropdown-item:hover {
    background: var(--accent-primary);
    color: white;
}

/* Modern Hero Navigation */
.modern-nav {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Brand Section */
.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.brand-link:hover {
    transform: translateY(-2px);
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* Modern Dropdown */
.dropdown-container {
    position: relative;
}

.dropdown-trigger {
    background: none !important;
}

.modern-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    padding: 0.5rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.dropdown-container:hover .modern-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.dropdown-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    transform: translateX(4px);
}

.dropdown-link i {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.link-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: inherit;
    display: block;
}

.link-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.2rem;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.action-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .nav-item {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
}

/* Modern Cards with Glass Effect */
.card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.card-header {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%) !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 1.5rem;
}

.card-header h2, .card-header h3, .card-header h4, .card-header h5 {
    color: var(--text-primary) !important;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
    color: var(--text-primary) !important;
}

/* Modern Buttons with Gradients */
.btn {
    border-radius: 10px !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%) !important;
}

.btn-secondary {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.btn-secondary:hover {
    background: var(--border-color) !important;
    color: var(--text-primary) !important;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline-secondary {
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--accent-primary) !important;
}

/* Modern Form Controls */
.form-control {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.form-control:focus {
    background: var(--bg-secondary) !important;
    border-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    font-weight: 400;
}

.form-label {
    color: var(--text-primary) !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
}

.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Modern Tables */
.table {
    color: var(--text-primary) !important;
    background: var(--bg-secondary) !important;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.table-dark {
    --bs-table-bg: var(--bg-secondary) !important;
    --bs-table-striped-bg: var(--bg-tertiary) !important;
    --bs-table-hover-bg: rgba(59, 130, 246, 0.1) !important;
}

.table th {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1rem;
}

.table td {
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1rem;
    vertical-align: middle;
}

.table-responsive {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Modern Alerts with Glass Effect */
.alert {
    color: var(--text-primary) !important;
    border-radius: var(--border-radius) !important;
    border: 1px solid;
    backdrop-filter: blur(20px);
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.alert-info {
    background: rgba(6, 182, 212, 0.1) !important;
    border-color: var(--accent-secondary) !important;
    color: var(--text-primary) !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #10b981 !important;
    color: var(--text-primary) !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: #f59e0b !important;
    color: var(--text-primary) !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: var(--text-primary) !important;
}

/* Modern Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.lead {
    color: var(--text-secondary) !important;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Modern Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23334155" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 400;
}

/* Quick Domain Input Section */
.quick-input-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 2rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.quick-input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="%23334155" stroke-width="0.3" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.quick-input-card {
    background: rgba(21, 25, 34, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.input-header {
    text-align: center;
    margin-bottom: 2rem;
}

.input-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.input-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.hero-input-group {
    display: flex;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-input-group:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.hero-input {
    border: none !important;
    background: transparent !important;
    padding: 1.5rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    flex: 1;
}

.hero-input:focus {
    box-shadow: none !important;
    outline: none !important;
}

.hero-input::placeholder {
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

.hero-btn {
    border: none;
    padding: 1.5rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--accent-gradient) !important;
    color: white !important;
    transition: var(--transition);
    min-width: 200px;
}

.hero-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.hero-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.hero-switch:hover {
    background: rgba(59, 130, 246, 0.1);
}

.hero-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
    margin-right: 0.75rem;
}

.hero-switch .form-check-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

/* Analysis Section */
.analysis-section {
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

/* Hero Section Updates */
.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.analysis-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: var(--transition);
}

.analysis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.4);
}

.card-header-modern {
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.header-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.header-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.card-body-modern {
    padding: 2rem;
}

/* Main Content Spacing */
main.container {
    padding-top: 0;
    padding-bottom: 3rem;
    min-height: calc(100vh - 140px);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .card-header-modern {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .header-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

/* Make all text white for better readability on dark background */
body {
    color: #ffffff;
}

/* Make table text white */
.table {
    color: #ffffff;
}

/* Ensure table specific elements are white */
.table th, .table td {
    color: #ffffff;
}

/* Make code blocks in tables white */
.table code {
    color: #ffffff;
}

/* Make card text white */
.card-body {
    color: #ffffff;
}

/* Make text in lists white */
ul, ol {
    color: #ffffff;
}

/* Ensure all paragraphs are white */
p {
    color: #ffffff;
}

/* All headings should be white */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

/* All spans should be white by default, unless overridden */
span:not([class*="text-"]) {
    color: #ffffff;
}

/* Make alert-info text white with darker background */
.alert-info {
    background-color: #1a3a4a !important;
    color: #ffffff !important;
    border-color: #0c5460 !important;
}

.alert-info h5 {
    color: #ffffff !important;
}

.alert-info ul li {
    color: #ffffff !important;
}

/* Responsive table containers */
.table-responsive {
    margin-bottom: 1rem;
    overflow-x: auto;
}

/* Make code blocks wrap */
code {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

/* Custom card styling */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 500;
}

/* DNS record tab styling */
#dnsRecordTabs .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0;
}

#dnsRecordTabs .nav-link.active {
    font-weight: 500;
}

/* Results page styles */
.key-findings li {
    margin-bottom: 0.5rem;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Modern Footer */
.footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer .text-muted {
    color: var(--text-muted) !important;
    font-weight: 500;
}

/* Modern Form Enhancements */
.form-check-input {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
}

.form-check-input:checked {
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

.form-check-label {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.form-switch .form-check-input {
    border-radius: 1rem !important;
    width: 3rem;
    height: 1.5rem;
}

/* Loading and Animation States */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid var(--border-color);
    border-right-color: var(--accent-primary);
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

/* Badge Improvements */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

/* Code and Pre Elements */
code {
    background: var(--bg-tertiary) !important;
    color: var(--accent-secondary) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

pre {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: var(--text-primary) !important;
}

/* Utility Classes for Modern Design */
.glass-effect {
    backdrop-filter: blur(20px);
    background: rgba(21, 25, 34, 0.8) !important;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.elevated-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl) !important;
}

/* Modern Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-primary);
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Modern Input Styling */
.modern-input-group {
    display: flex;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.modern-input-group:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.modern-input-group .form-control {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.modern-input-group .form-control:focus {
    box-shadow: none !important;
    background: transparent !important;
}

.modern-input-group .btn {
    border: none;
    border-radius: 0;
    padding: 1.25rem 2rem;
    font-weight: 600;
    font-size: 1rem;
}

/* Enhanced Switch Styling */
.modern-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    margin: 1.5rem 0;
    transition: var(--transition);
}

.modern-switch:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.modern-switch .form-check-input {
    width: 3.5rem;
    height: 2rem;
    border-radius: 1rem;
    background-color: var(--bg-tertiary) !important;
    border: 2px solid var(--border-color) !important;
    transition: var(--transition);
}

.modern-switch .form-check-input:checked {
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.modern-switch .form-check-label {
    flex: 1;
}

.modern-switch .form-check-label strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.modern-switch .form-check-label small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Results page uses standard Bootstrap styling */

/* Relationship text styling */
.relationship-text {
    white-space: pre-wrap;
    background-color: rgba(20, 20, 20, 0.7);
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
}

/* Relationship visualization styling */
.relationship-visualization {
    max-width: 100%;
    height: auto;
    background-color: #1a1a1a;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.relationship-visualization:hover {
    transform: scale(1.02);
}

/* Animated Hover Effects for DNS Components */
/* DNS Record row hover effect - ensure stronger specificity */
table tbody tr.dns-record-row {
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
}

table tbody tr.dns-record-row:hover {
    transform: translateY(-2px) !important;
    background-color: rgba(52, 152, 219, 0.2) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    z-index: 2 !important;
}

/* DNS Record cell highlight effect - ensure stronger specificity */
table tbody tr td.dns-record-cell {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

table tbody tr td.dns-record-cell:hover {
    background-color: rgba(52, 152, 219, 0.3) !important;
}

table tbody tr td.dns-record-cell::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background-color: #3498db !important;
    transition: width 0.3s ease !important;
}

table tbody tr td.dns-record-cell:hover::after {
    width: 100% !important;
}

/* Record type badge animation */
span.badge.record-type-badge {
    display: inline-block !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

span.badge.record-type-badge:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5) !important;
}

span.badge.record-type-badge::before {
    content: '' !important;
    position: absolute !important;
    top: -100% !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%) !important;
    transition: all 0.3s ease !important;
}

span.badge.record-type-badge:hover::before {
    top: 0 !important;
}

/* DNS Record tabs animation */
button.nav-link.dns-record-tab {
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

button.nav-link.dns-record-tab:hover {
    transform: translateY(-2px) !important;
}

button.nav-link.dns-record-tab::before {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background-color: #3498db !important;
    transition: width 0.3s ease !important;
}

button.nav-link.dns-record-tab:hover::before {
    width: 100% !important;
}

/* Tooltip styling */
td.dns-tooltip {
    position: relative !important;
    cursor: help !important;
}

td.dns-tooltip .tooltip-text {
    visibility: hidden !important;
    width: 200px !important;
    background-color: rgba(44, 62, 80, 0.95) !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 6px !important;
    padding: 8px !important;
    position: absolute !important;
    z-index: 1000 !important;
    bottom: 125% !important;
    left: 50% !important;
    margin-left: -100px !important;
    opacity: 0 !important;
    transition: opacity 0.3s, transform 0.3s !important;
    transform: translateY(10px) !important;
    font-size: 0.9rem !important;
    pointer-events: none !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

td.dns-tooltip:hover .tooltip-text {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

td.dns-tooltip .tooltip-text::after {
    content: "" !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    margin-left: -5px !important;
    border-width: 5px !important;
    border-style: solid !important;
    border-color: rgba(44, 62, 80, 0.95) transparent transparent transparent !important;
}

/* Add a new animation class that we can directly apply with JavaScript */
.animate-hover {
    transition: all 0.3s ease !important;
}

.animate-hover:hover {
    transform: translateY(-2px) !important;
    background-color: rgba(52, 152, 219, 0.2) !important;
}
