:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Common Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding-top: 0;
    line-height: 1.6;
    color: #1e293b;
    margin: 0;
}









/* Ensure Bootstrap flex utilities work properly */
.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.min-vh-100 {
    min-height: 100vh !important;
}

.mt-auto {
    margin-top: auto !important;
}



.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.page-header {
    background: var(--bg-gradient);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    text-decoration: none;
    color: inherit;
}

.tool-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    padding: 1.5rem;
}

.tool-link:hover {
    text-decoration: none;
    color: inherit;
}

.form-control, .btn {
    border-radius: 8px;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    text-decoration: none;
}

.btn-primary:disabled {
    background: var(--secondary-color);
    transform: none;
    box-shadow: none;
}

.back-btn {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.loading-spinner {
    display: none;
}

.loading-spinner.show {
    display: inline-block;
}



/* Admin Toolkit Homepage Styles */
.hero-section {
    background: var(--bg-gradient);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.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="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-stats {
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.features-section {
    padding: 80px 0;
    background: white;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.tools-section {
    padding: 80px 0;
    background: rgba(248, 250, 252, 0.5);
}

.tools-section.bg-light {
    background: #f8fafc;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    text-decoration: none;
    color: inherit;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-icon i {
    font-size: 1.5rem;
    color: white;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.tool-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tool-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

.cta-section {
    background: var(--bg-gradient);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-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="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-1px);
}

/* Footer Styles */
footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 2rem;
}

footer h5 {
    color: #fbbf24;
    margin-bottom: 1rem;
}

footer p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .tool-card {
        padding: 1.25rem;
    }
    
    .hero-stats .row {
        margin-top: 2rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .tool-card {
        padding: 1rem;
    }
}

/* Performance Optimizations */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.tool-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section,
    .cta-section,
    .navbar,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .tool-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Tool Results Styles */
.results-section {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.results-section.show {
    display: block;
}

/* Whois Results Styles */
.whois-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.whois-section:last-child {
    border-bottom: none;
}

.whois-label {
    font-weight: 600;
    color: #374151;
}

/* Results Container Styles */
#whoisData, #dnsData, #sslData, #portData, #blacklistData, #emailData, #pingData, #headersData, #hashData, #base64Data, #jsonData, #timestampData, #ipv6Data, #subnetData, #sslDecodeData, #urlData, #userAgentData, #macData, #spfData, #smtpData, #reverseData, #tlsData, #propagationData {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.badge.bg-success {
    background-color: #10b981 !important;
}

.badge.bg-primary {
    background-color: #2563eb !important;
}

.badge.bg-secondary {
    background-color: #6b7280 !important;
}

/* Copy Button Styles */
.btn-copy {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
}

.loading-spinner.show {
    display: inline-block;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Back Button */
.back-btn {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: white;
    text-decoration: none;
}

/* Tool Card Styles */
.tool-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    text-decoration: none;
    color: inherit;
}

/* Additional Tool Styles */
.record-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.record-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* Status Badge Colors */
.badge-a {
    background-color: #3b82f6 !important;
}

.badge-aaaa {
    background-color: #8b5cf6 !important;
}

.badge-mx {
    background-color: #10b981 !important;
}

.badge-txt {
    background-color: #f59e0b !important;
}

.badge-cname {
    background-color: #ef4444 !important;
}

.badge-ns {
    background-color: #06b6d4 !important;
}

/* Email Authentication Badge Colors */
.badge-valid {
    background-color: #10b981 !important;
}

.badge-acceptable {
    background-color: #3b82f6 !important;
}

.badge-warning {
    background-color: #f59e0b !important;
}

.badge-invalid {
    background-color: #ef4444 !important;
}

.badge-missing {
    background-color: #f59e0b !important;
}

/* Enhanced Email Authentication Styles */
.auth-record-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-record-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.auth-record-card .status-icon {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    color: #0ea5e9;
}

.auth-record-card .status-icon.text-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #10b981;
    color: #10b981;
}

.auth-record-card .status-icon.text-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #3b82f6;
}

.auth-record-card .status-icon.text-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    color: #f59e0b;
}

.auth-record-card .status-icon.text-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    color: #ef4444;
}

.auth-record-card .record-value {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: #334155;
    line-height: 1.5;
}

.auth-record-card .issue-item {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    display: flex;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.auth-record-card .issue-item:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    transform: translateX(2px);
}

.auth-record-card .issue-item:last-child {
    margin-bottom: 0;
}

.auth-record-card .issue-item i {
    margin-top: 0.125rem;
    flex-shrink: 0;
    color: #d97706;
}

/* Recommendation items styling */
.auth-record-card .recommendation-item {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    display: flex;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.auth-record-card .recommendation-item:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateX(2px);
}

.auth-record-card .recommendation-item:last-child {
    margin-bottom: 0;
}

.auth-record-card .recommendation-item i {
    margin-top: 0.125rem;
    flex-shrink: 0;
    color: #2563eb;
}

.auth-record-card .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.auth-record-card .badge.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white;
}

.auth-record-card .badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: white;
}

.auth-record-card .badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white;
}

.auth-record-card .badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white;
}

.auth-record-card .text-success {
    color: #059669 !important;
    font-weight: 600;
}

.auth-record-card .text-warning {
    color: #d97706 !important;
    font-weight: 600;
}

.auth-record-card .text-muted {
    color: #6b7280 !important;
}

.auth-record-card .small {
    font-size: 0.875rem;
}

.auth-record-card .fw-semibold {
    font-weight: 600;
}

.auth-record-card h5 {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-record-card h6 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Success message styling */
.auth-record-card .text-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 0.75rem;
    color: #166534 !important;
    font-weight: 600;
}

.auth-record-card .text-success i {
    color: #16a34a;
}

/* Enhanced spacing */
.auth-record-card .mb-1 {
    margin-bottom: 0.25rem;
}

.auth-record-card .mb-2 {
    margin-bottom: 0.5rem;
}

.auth-record-card .mb-3 {
    margin-bottom: 1rem;
}

.auth-record-card .mt-3 {
    margin-top: 1rem;
}

.auth-record-card .me-2 {
    margin-right: 0.5rem;
}

.auth-record-card .ms-1 {
    margin-left: 0.25rem;
}

.auth-record-card .gap-3 {
    gap: 1rem;
}

.auth-record-card .d-flex {
    display: flex;
}

.auth-record-card .align-items-center {
    align-items: center;
}

.auth-record-card .align-items-start {
    align-items: flex-start;
}

.auth-record-card .justify-content-between {
    justify-content: space-between;
}

/* Results section enhancement */
.results-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.results-section.show {
    animation: slideIn 0.3s ease-out;
}

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

/* Port Scanner Styles */
.port-result {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.port-result:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.port-result.border-success {
    border-color: #10b981 !important;
}

.port-result.border-danger {
    border-color: #ef4444 !important;
}

.bg-light-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.bg-light-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

/* Light background colors for other tools */
.bg-light-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.bg-light-info {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.bg-light-secondary {
    background-color: rgba(107, 114, 128, 0.1) !important;
}

/* Additional Badge Colors */
.badge-info {
    background-color: #3b82f6 !important;
}

.badge-warning {
    background-color: #f59e0b !important;
}

.badge-danger {
    background-color: #ef4444 !important;
}

/* Tool-specific container styles */
#emailData, #portData {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
}

/* Summary section styles */
.scan-summary {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Results section enhancements */
.results-section {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.results-section.show {
    display: block;
}

/* Ensure proper spacing for tool pages with results */
.tool-card {
    margin-bottom: 0; /* Remove default margin to let site-main handle spacing */
}

/* Additional spacing for pages with results */
.site-main:has(.results-section.show) {
    padding-bottom: clamp(32px, 4vw, 64px); /* Extra padding when results are shown */
}

/* Fallback for browsers that don't support :has() */
.results-section.show ~ .site-footer {
    margin-top: clamp(32px, 3vw, 56px); /* Extra margin when results are shown */
}

/* Enhanced form styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Enhanced button styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Loading spinner enhancements */
.loading-spinner {
    display: none;
    animation: spin 1s linear infinite;
}

.loading-spinner.show {
    display: inline-block;
}

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

/* Responsive improvements */
@media (max-width: 768px) {
    .auth-record-card,
    .port-result {
        padding: 1rem;
    }
    
    .record-value {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .status-icon {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
}

/* Additional Tool-Specific Styles */

/* SSL Certificate Styles */
.ssl-info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.ssl-info-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* TLS Scanner Styles */
.tls-protocol-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.tls-protocol-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* SMTP Tester Styles */
.smtp-test-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.smtp-test-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* Reverse DNS Styles */
.reverse-dns-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.reverse-dns-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* Ping Test Styles */
.ping-result {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.ping-result:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* HTTP Headers Styles */
.security-header {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.security-header:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.header-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.header-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.header-item.border-primary {
    border-color: var(--primary-color) !important;
}

/* Hash Generator Styles */
.hash-result {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.hash-result:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* Email Header Analyzer Styles */
.email-hop-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.email-hop-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.spam-warning-card {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

/* SPF Flattener Styles */
.spf-include-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.spf-include-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* DNS Tools Styles */
.record-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.record-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* Progress Bar Styles */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e5e7eb;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Light Background Colors */
.bg-light {
    background-color: #f8f9fa !important;
}

.bg-light-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.bg-light-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.bg-light-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.bg-light-info {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.bg-light-secondary {
    background-color: rgba(107, 114, 128, 0.1) !important;
}

/* Border Colors */
.border-success {
    border-color: #10b981 !important;
}

.border-danger {
    border-color: #ef4444 !important;
}

.border-warning {
    border-color: #f59e0b !important;
}

.border-info {
    border-color: #3b82f6 !important;
}

.border-secondary {
    border-color: #6b7280 !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Text Colors */
.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-info {
    color: #3b82f6 !important;
}

.text-secondary {
    color: #6b7280 !important;
}

.text-muted {
    color: #9ca3af !important;
}

/* Badge Colors */
.badge-success {
    background-color: #10b981 !important;
}

.badge-danger {
    background-color: #ef4444 !important;
}

.badge-warning {
    background-color: #f59e0b !important;
}

.badge-info {
    background-color: #3b82f6 !important;
}

.badge-secondary {
    background-color: #6b7280 !important;
}

.badge-primary {
    background-color: var(--primary-color) !important;
}

.border-left {
    border-left: 4px solid;
}

/* Enhanced Focus States */
.form-control:focus,
.btn:focus,
.badge:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Hover Effects */
.card:hover,
.tool-card:hover,
.auth-record-card:hover,
.port-result:hover,
.ssl-info-card:hover,
.tls-protocol-card:hover,
.smtp-test-card:hover,
.reverse-dns-card:hover,
.ping-result:hover,
.security-header:hover,
.header-item:hover,
.hash-result:hover,
.email-hop-card:hover,
.spf-include-card:hover,
.record-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



