/* Tools Ninja - Common Styles for Tool Pages */
/* Neo-Brutalist Cyberpunk Theme */

:root {
    --bg-primary: #0a0014;
    --bg-secondary: #13001f;
    --bg-card: rgba(26, 0, 41, 0.9);
    --bg-card-solid: #1a0029;
    --text-primary: #f5f5f5;
    --text-secondary: #b8b8c8;
    --text-muted: #8a8a9a;

    /* Softer Cyberpunk Colors - easier on the eyes */
    --accent-neon-green: #22c55e;
    --accent-electric-cyan: #06b6d4;
    --accent-hot-pink: #f43f5e;
    --accent-yellow: #eab308;

    /* Legacy mappings */
    --accent-purple: #22c55e;
    --accent-pink: #f43f5e;
    --accent-blue: #06b6d4;

    --border-color: rgba(34, 197, 94, 0.3);
    --border-hover: rgba(34, 197, 94, 0.5);
    --border-thick: 4px;

    /* Solid Colors (No Gradients) */
    --gradient-primary: #22c55e;
    --gradient-cyber: #22c55e;
    --gradient-secondary: #06b6d4;

    --shadow-glow: 0 0 15px rgba(34, 197, 94, 0.4), 0 0 30px rgba(6, 182, 212, 0.2);
    --shadow-brutal: 6px 6px 0px rgba(34, 197, 94, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.3);

    --success-color: #22c55e;
    --warning-color: #eab308;
    --error-color: #f43f5e;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-solid: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #5a5a5a;
    --text-muted: #7a7a7a;

    --accent-neon-green: #00cc00;
    --accent-electric-cyan: #0099cc;
    --accent-hot-pink: #cc0033;
    --accent-yellow: #ccaa00;

    --accent-purple: #00cc00;
    --accent-pink: #cc0033;
    --accent-blue: #0099cc;

    --border-color: rgba(0, 204, 0, 0.4);
    --border-hover: rgba(0, 204, 0, 0.7);
    --shadow-glow: 0 4px 20px rgba(0, 204, 0, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.12);
    --shadow-brutal: 6px 6px 0px rgba(0, 204, 0, 0.3);
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 6px 6px 0px rgba(0, 204, 0, 0.15);

    --success-color: #00cc00;
    --warning-color: #ccaa00;
    --error-color: #cc0033;
}

/* Light theme enhancements for better visibility */
[data-theme="light"] .tool-card,
[data-theme="light"] .card,
[data-theme="light"] .info-section,
[data-theme="light"] .info-box,
[data-theme="light"] .info-card,
[data-theme="light"] .result-card,
[data-theme="light"] .toolbar,
[data-theme="light"] .editor-section,
[data-theme="light"] .ad-container {
    box-shadow: var(--card-shadow);
    border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .dropdown {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] textarea,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="url"],
[data-theme="light"] select {
    background: #f8f9fc;
    border-color: rgba(139, 92, 246, 0.25);
}

[data-theme="light"] textarea:focus,
[data-theme="light"] input:focus,
[data-theme="light"] select:focus {
    background: #ffffff;
}

[data-theme="light"] .example-chip {
    background: #f0f2f5;
    border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .quick-check-btn {
    background: #f0f2f5;
}

[data-theme="light"] .headers-table th {
    background: #f8f9fc;
}

[data-theme="light"] .headers-table tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

[data-theme="light"] .security-item {
    background: #f8f9fc;
}

[data-theme="light"] pre,
[data-theme="light"] code {
    background: #f8f9fc;
}

[data-theme="light"] footer {
    background: #ffffff;
    border-top-color: rgba(139, 92, 246, 0.2);
}

/* ============================================
   THEME TOGGLE
   ============================================ */

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--bg-card-solid);
    border: 3px solid var(--border-color);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.theme-toggle:hover {
    border-color: var(--accent-purple);
}

.theme-toggle-circle {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-toggle-circle svg {
    width: 12px;
    height: 12px;
    color: white;
}

[data-theme="light"] .theme-toggle-circle {
    transform: translateX(26px);
}

/* Dark theme (default): show sun, hide moon */
.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

/* Light theme: show moon, hide sun */
[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

/* ============================================
   VIEW TOGGLE (Split/Editor/Preview buttons)
   ============================================ */

.view-toggle {
    display: inline-flex;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
}

.view-toggle button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle button:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.view-toggle button.active {
    background: var(--accent-purple);
    color: white;
}

/* Header Controls for Markdown Editor */
.header-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header and Navigation */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
    flex-shrink: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Horizontal Dropdown Menu - Now inline with logo */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;
    padding: 1rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.menu > li > a:hover {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
    border-bottom-color: var(--accent-purple);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card-solid);
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    border: 3px solid var(--border-color);
}

.menu > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown a:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    padding-left: 2rem;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.header-section h1 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-section h1 svg {
    stroke: var(--accent-purple);
}

/* Tool title icon */
.tool-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
    flex-shrink: 0;
}

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

/* Toolbar */
.toolbar {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* Buttons */
.btn, select {
    padding: 0.75rem 1.5rem;
    border: 3px solid var(--accent-purple);
    border-radius: 0;
    background: transparent;
    color: var(--accent-purple);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover, select:hover {
    background: var(--accent-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: #0a0a0a;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--accent-purple);
    border: 3px solid var(--accent-purple);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--accent-purple);
    color: white;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Editor Sections */
.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.editor-section {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.section-title {
    color: var(--accent-purple);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Form Elements */
textarea {
    width: 100%;
    min-height: 400px;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="file"],
select {
    width: 100%;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s;
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

::placeholder {
    color: var(--text-muted);
}

/* Tool Card */
.tool-card {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.url-input,
.text-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 3px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.url-input:focus,
.text-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.format-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Options */
.options-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-purple);
}

/* Examples */
.examples {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.example-chip {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.example-chip:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

/* Quick Check Buttons */
.quick-check-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0.25rem;
}

.quick-check-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading.active {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Results */
.result-card {
    display: none;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.result-card.active {
    display: block;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.result-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.result-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 3px solid var(--accent-purple);
    border-radius: 0;
    color: var(--accent-purple);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-purple);
    color: white;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover,
.tab.active {
    background: var(--accent-purple);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tables */
.headers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.headers-table th,
.headers-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.headers-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.headers-table td {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    color: var(--text-secondary);
}

.headers-table tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.security-item {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1rem;
}

.security-item.present {
    border-left: 4px solid var(--success-color);
}

.security-item.missing {
    border-left: 4px solid var(--error-color);
}

/* Status Banner */
.status-banner {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    display: none;
}

.status-banner.show {
    display: block;
}

.status-banner.valid {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.status-banner.warning {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.1);
}

.status-banner.invalid {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

.status-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.status-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.status-message {
    color: var(--text-secondary);
}

/* Error Message */
.error-message {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 3px solid var(--error-color);
    border-radius: 0;
    padding: 1rem;
    margin-top: 1rem;
    color: var(--error-color);
}

.error-message.active {
    display: block;
}

/* Info Section */
.info-section {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    margin-top: 2rem;
}

.info-section h2 {
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.info-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.info-section ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.info-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Info Box */
.info-box {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
}

.info-box h3 {
    color: var(--accent-purple);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.info-list li:last-child {
    border-bottom: none;
}

/* Info Card */
.info-card {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--accent-purple);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: right;
    word-break: break-all;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.timeline-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 0;
    border: 3px solid var(--border-color);
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.timeline-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-label {
    color: var(--accent-purple);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Quick Checks */
.quick-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Results Layout */
.results-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.results-section {
    margin-top: 2rem;
}

.input-section {
    margin-bottom: 1.5rem;
}

.input-grid {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.input-grid .input-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Status Icons */
.status-icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.status-icon.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.status-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

/* Ad Container */
.ad-container {
    background: var(--bg-card);
    padding: 1rem;
    text-align: center;
    border-radius: 0;
    margin: 1.5rem 0;
    border: 3px solid var(--border-color);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-purple);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Text Utility Classes */
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-error { color: var(--error-color); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-purple { color: var(--accent-purple); }
.text-pink { color: var(--accent-pink); }

/* Pre/Code Blocks */
pre, code {
    background: var(--bg-secondary);
    border-radius: 0;
    font-family: 'Courier New', monospace;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    border: 3px solid var(--border-color);
}

code {
    padding: 0.2rem 0.4rem;
    font-size: 0.9em;
    color: var(--accent-pink);
}

/* Responsive */
@media (max-width: 992px) {
    .results-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

/* Hide hamburger and overlay on desktop - must be before mobile media query */
.hamburger {
    display: none;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

@media (max-width: 768px) {
    .editor-container {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
    }

    /* Modern Mobile Navigation Panel */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-secondary);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 2000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        border-left: 1px solid var(--border-color);
    }

    nav.active {
        right: 0;
    }

    /* Mobile Nav Header */
    nav::before {
        content: 'Menu';
        display: block;
        padding: 1.5rem 1.5rem 1rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0.5rem;
    }

    .menu {
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 0.5rem 0;
        gap: 0;
    }

    .menu > li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav.active .menu > li {
        opacity: 1;
        transform: translateX(0);
    }

    nav.active .menu > li:nth-child(1) { transition-delay: 0.1s; }
    nav.active .menu > li:nth-child(2) { transition-delay: 0.15s; }
    nav.active .menu > li:nth-child(3) { transition-delay: 0.2s; }
    nav.active .menu > li:nth-child(4) { transition-delay: 0.25s; }
    nav.active .menu > li:nth-child(5) { transition-delay: 0.3s; }
    nav.active .menu > li:nth-child(6) { transition-delay: 0.35s; }

    .menu > li > a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-primary);
        border-bottom: none;
        border-radius: 0;
        margin: 0 0.75rem;
        border-radius: 0;
        transition: all 0.2s ease;
    }

    .menu > li > a:hover,
    .menu > li > a:active {
        background: var(--gradient-primary);
        color: white;
        transform: scale(0.98);
    }

    /* Chevron indicator for dropdowns */
    .menu > li > a::after {
        content: '';
        margin-left: auto;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--text-secondary);
        border-bottom: 2px solid var(--text-secondary);
        transform: rotate(-45deg);
        transition: transform 0.3s ease;
    }

    .menu > li:first-child > a::after {
        display: none;
    }

    .menu > li.active > a::after {
        transform: rotate(45deg);
    }

    /* Mobile Dropdown */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 0 0 0.5rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .menu > li.active .dropdown {
        display: block;
        max-height: 500px;
        padding: 0.25rem 0 0.75rem 0;
    }

    .dropdown a {
        display: block;
        padding: 0.75rem 1.5rem 0.75rem 2.5rem;
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin: 0 0.75rem;
        border-radius: 0;
        transition: all 0.2s ease;
    }

    .dropdown a:hover,
    .dropdown a:active {
        background: rgba(139, 92, 246, 0.1);
        color: var(--accent-purple);
        padding-left: 2.75rem;
    }

    /* Modern Hamburger Button */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        cursor: pointer;
        z-index: 2001;
        background: var(--bg-card);
        border: 3px solid var(--border-color);
        border-radius: 0;
        transition: all 0.2s ease;
        gap: 5px;
        padding: 0;
    }

    .hamburger:hover {
        border-color: var(--accent-purple);
        background: rgba(139, 92, 246, 0.1);
    }

    .hamburger:active {
        transform: scale(0.95);
    }

    .hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .hamburger.active {
        background: var(--gradient-primary);
        border-color: transparent;
    }

    .hamburger.active span {
        background: white;
    }

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

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

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

    /* Modern Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        z-index: 1999;
        pointer-events: none;
        transition: all 0.4s ease;
    }

    .nav-overlay.active {
        display: block;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        pointer-events: auto;
    }

    /* Close button in nav */
    .nav-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-card);
        border: 3px solid var(--border-color);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .nav-close:hover {
        background: rgba(236, 72, 153, 0.1);
        border-color: var(--accent-pink);
    }

    .header-section h1 {
        font-size: 1.8rem;
    }

    .toolbar {
        padding: 1rem;
    }

    .input-grid {
        flex-direction: column;
    }

    .timeline {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* Links */
a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-pink);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.badge-info {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ============================================
   SPEED TEST STYLES
   ============================================ */

.speed-test-card {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

[data-theme="light"] .speed-test-card {
    box-shadow: var(--card-shadow);
}

.start-button {
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: #0a0a0a;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.start-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.speedometer-container {
    margin: 2rem 0;
}

.speedometer {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.speed-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

[data-theme="light"] .speed-circle {
    background: #f8f9fc;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.speed-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.speed-unit {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.speed-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin: 1rem auto;
    overflow: hidden;
    display: none;
}

[data-theme="light"] .progress-bar {
    background: #e8eaef;
}

.progress-bar.show {
    display: block;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.test-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.metric-card {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

[data-theme="light"] .metric-card {
    background: #f8f9fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-purple);
}

.metric-icon {
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
}

.metric-icon svg {
    stroke: var(--accent-purple);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.metric-status {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    display: inline-block;
}

.metric-status.status-excellent {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.metric-status.status-good {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.metric-status.status-fair {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.metric-status.status-poor {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.isp-info {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

[data-theme="light"] .isp-info {
    background: #f8f9fc;
}

.isp-info h3 {
    color: var(--accent-purple);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.history-section {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-top: 2rem;
    display: none;
}

[data-theme="light"] .history-section {
    box-shadow: var(--card-shadow);
}

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

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-header h3 {
    color: var(--accent-purple);
    font-size: 1.1rem;
}

.clear-history-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 3px solid var(--error-color);
    border-radius: 0;
    color: var(--error-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-history-btn:hover {
    background: var(--error-color);
    color: white;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
}

[data-theme="light"] .history-item {
    background: #f8f9fc;
}

.history-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.history-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.history-metric {
    display: flex;
    flex-direction: column;
}

.history-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-metric-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   COMPREHENSIVE LIGHT THEME STYLES
   All components with proper light mode support
   ============================================ */

/* Light theme - Input Section & Cards */
[data-theme="light"] .input-section,
[data-theme="light"] .input-card,
[data-theme="light"] .results-section,
[data-theme="light"] .section,
[data-theme="light"] .gauge-section,
[data-theme="light"] .main-layout > div > .section {
    background: #ffffff;
    box-shadow: var(--card-shadow);
    border-color: rgba(139, 92, 246, 0.15);
}

/* Light theme - Input Card specific */
.input-card {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .input-card {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.input-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* Light theme - Record Types (DNS Checker) */
.record-types {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.record-chip {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.record-chip:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.record-chip.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

[data-theme="light"] .record-chip {
    background: #f0f2f5;
}

[data-theme="light"] .record-chip.active {
    background: var(--accent-purple);
}

/* Light theme - Results Main */
.results-main {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    min-height: 300px;
}

[data-theme="light"] .results-main {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Result Section */
.result-section {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

[data-theme="light"] .result-section {
    background: #f8f9fc;
}

/* Record Item */
.record-item {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1rem;
    margin-top: 0.75rem;
}

[data-theme="light"] .record-item {
    background: #ffffff;
}

.record-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-all;
}

.record-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Record Badge */
.record-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

/* Security Section (DNS Email Check) */
.security-section {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
}

[data-theme="light"] .security-section {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.security-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.security-checks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-item {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.25rem;
    border-left: 4px solid var(--border-color);
}

.check-item.pass {
    border-left-color: var(--success-color);
}

.check-item.warn {
    border-left-color: var(--warning-color);
}

.check-item.fail {
    border-left-color: var(--error-color);
}

[data-theme="light"] .check-item {
    background: #f8f9fc;
}

.check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.check-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.check-status {
    padding: 0.35rem 0.75rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.check-status.status-pass {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.check-status.status-warn {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.check-status.status-fail {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
}

.check-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.check-value {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-all;
}

[data-theme="light"] .check-value {
    background: #ffffff;
}

/* Type Item (DNS Record Types sidebar) */
.record-type-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.type-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.type-name {
    font-weight: 600;
    color: var(--accent-purple);
    font-size: 0.9rem;
}

.type-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   WEBSITE SPEED TEST STYLES (Gauge)
   ============================================ */

.gauge-section {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

[data-theme="light"] .gauge-section {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.gauge-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.gauge-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 6px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .gauge-circle {
    background: #f8f8f8;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.05), 0 8px 30px rgba(139, 92, 246, 0.1);
}

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

.gauge-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.gauge-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.gauge-status {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.gauge-status.status-fast {
    color: var(--success-color);
}

.gauge-status.status-medium {
    color: var(--warning-color);
}

.gauge-status.status-slow {
    color: var(--error-color);
}

/* Metric Bar (Website Speed Test) */
.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.metric-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.metric-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

[data-theme="light"] .metric-bar {
    background: #e8eaef;
}

.metric-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Quick Tests */
.quick-tests {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-test-btn {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.quick-test-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
    transform: translateX(5px);
}

[data-theme="light"] .quick-test-btn {
    background: #f8f9fc;
}

/* History URL */
.history-url {
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.history-timestamp {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.history-time {
    font-weight: 700;
    color: var(--accent-purple);
    font-size: 1.1rem;
}

.history-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
}

/* Gauge Section Title */
.gauge-title {
    color: var(--accent-purple);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   QR CODE GENERATOR STYLES
   ============================================ */

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

.section {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .section {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

/* Slider Group */
.slider-group {
    margin-bottom: 1.5rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.slider-label label {
    font-weight: 600;
    color: var(--text-primary);
}

.slider-value {
    color: var(--accent-purple);
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

[data-theme="light"] input[type="range"] {
    background: #e8eaef;
}

/* Color Picker Group */
.color-picker-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
}

/* File Upload */
.file-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

[data-theme="light"] .file-upload-btn {
    background: #f8f9fc;
}

.file-name {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* QR Preview */
.qr-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 0;
    padding: 2rem;
}

[data-theme="light"] .qr-preview {
    background: #f8f9fc;
}

.qr-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.qr-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ============================================
   JSON FORMATTER SPECIFIC STYLES
   ============================================ */

.editor-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

@media (max-width: 992px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.editor-container {
    display: flex;
    position: relative;
}

.line-numbers {
    width: 50px;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-right: none;
    border-radius: 0 0 0 8px;
    padding: 1rem 0.5rem;
    text-align: right;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    white-space: pre;
}

[data-theme="light"] .line-numbers {
    background: #f0f2f5;
}

.editor-container textarea {
    border-radius: 0 8px 8px 0;
    min-height: 400px;
}

.editor {
    flex: 1;
}

.stats-bar {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 0.85rem;
}

[data-theme="light"] .stats-bar {
    background: #f8f9fc;
}

.stat-item {
    color: var(--text-muted);
}

.stat-value {
    color: var(--accent-purple);
    font-weight: 600;
}

/* Validation Section */
.validation-section {
    display: none;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1rem;
    margin-top: 1rem;
}

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

.validation-section.success {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.validation-section.error {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

.validation-header {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.validation-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: pre-line;
}

/* Tree View */
.tree-view {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre;
    color: var(--text-primary);
}

[data-theme="light"] .tree-view {
    background: #f8f9fc;
}

.tree-key {
    color: var(--accent-purple);
}

.tree-string {
    color: var(--success-color);
}

.tree-number {
    color: var(--accent-pink);
}

.tree-boolean {
    color: var(--warning-color);
}

.tree-null {
    color: var(--text-muted);
}

/* Toolbar Row */
.toolbar-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

/* Button variants */
.btn-warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.btn-warning:hover {
    background: var(--warning-color);
    color: white;
}

.btn-danger {
    border-color: var(--error-color);
    color: var(--error-color);
}

.btn-danger:hover {
    background: var(--error-color);
    color: white;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 0.5rem;
}

.btn-small:hover {
    opacity: 0.9;
}

/* Error Location */
.error-location {
    background: rgba(239, 68, 68, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.error-actions {
    margin-top: 0.75rem;
}

/* ============================================
   ADDITIONAL LIGHT THEME ENHANCEMENTS
   ============================================ */

[data-theme="light"] .input-section {
    background: #ffffff;
    box-shadow: var(--card-shadow);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .results-section {
    background: #ffffff;
    box-shadow: var(--card-shadow);
    border-radius: 0;
    padding: 1.5rem;
}

[data-theme="light"] .info-card {
    background: #f8f9fc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .timeline-item {
    background: #f8f9fc;
}

[data-theme="light"] .history-section {
    display: block;
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

[data-theme="light"] .history-item {
    background: #f8f9fc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="light"] .no-results {
    background: transparent;
}

/* SVG icons in light mode */
[data-theme="light"] .header-section h1 svg {
    stroke: var(--accent-purple);
}

/* Ensure buttons maintain visibility in light mode */
[data-theme="light"] .btn {
    background: transparent;
}

[data-theme="light"] .btn:hover {
    background: var(--accent-purple);
    color: white;
}

[data-theme="light"] .btn-primary {
    background: var(--gradient-primary);
    color: #0a0a0a;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

[data-theme="light"] .loading-overlay {
    background: rgba(255, 255, 255, 0.9);
}

.loading-text {
    color: var(--text-primary);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

/* ========================================== */
/* Additional Light Theme Styles - All Tools */
/* ========================================== */

/* Tabs Navigation - All Tools */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 0;
    border: 3px solid var(--border-color);
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 3px solid var(--border-color);
    border-radius: 0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.tab-button:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.tab-button.active {
    background: var(--gradient-primary);
    color: #0a0a0a;
    border-color: transparent;
}

[data-theme="light"] .tabs-nav {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

[data-theme="light"] .tab-button {
    background: #f8f9fc;
    border-color: rgba(139, 92, 246, 0.15);
    color: var(--text-secondary);
}

[data-theme="light"] .tab-button:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--accent-purple);
}

[data-theme="light"] .tab-button.active {
    background: var(--gradient-primary);
    color: #0a0a0a;
}

/* Tool Sections */
.tool-section {
    background: var(--bg-card);
    border-radius: 0;
    padding: 2rem;
    border: 3px solid var(--border-color);
}

[data-theme="light"] .tool-section {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

/* Result Boxes */
.result-box {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    border: 3px solid var(--border-color);
    margin-top: 1rem;
}

.result-box.hidden {
    display: none;
}

.result-box textarea {
    width: 100%;
    min-height: 150px;
    background: var(--bg-primary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    resize: vertical;
}

.result-box .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-box .result-header h4 {
    color: var(--accent-purple);
    margin: 0;
}

.result-box .result-content {
    background: var(--bg-primary);
    border-radius: 0;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    word-break: break-all;
    color: var(--text-primary);
}

[data-theme="light"] .result-box {
    background: #f8f9fc;
    border-color: rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .result-box textarea {
    background: #ffffff;
    border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .result-box .result-content {
    background: #ffffff;
    border: 3px solid rgba(139, 92, 246, 0.1);
}

/* Strength Meter (Password Generator) */
.strength-meter {
    margin-top: 1rem;
}

.strength-bar {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s, background 0.3s;
    border-radius: 4px;
}

.strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.strength-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

[data-theme="light"] .strength-bar {
    background: #e8e8f0;
}

/* Range/Slider Styles */
.range-group {
    margin-bottom: 1.5rem;
}

.range-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.range-group input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.range-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.range-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

[data-theme="light"] .range-group input[type="range"] {
    background: #e8e8f0;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-purple);
}

/* UUID Generator Styles */
.uuid-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uuid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-radius: 0;
    border: 3px solid var(--border-color);
}

.uuid-text {
    font-family: 'Fira Code', monospace;
    color: var(--text-primary);
    word-break: break-all;
}

.copy-btn-small {
    padding: 0.25rem 0.75rem;
    background: transparent;
    border: 3px solid var(--accent-purple);
    border-radius: 4px;
    color: var(--accent-purple);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.copy-btn-small:hover {
    background: var(--accent-purple);
    color: white;
}

[data-theme="light"] .uuid-item {
    background: #f8f9fc;
    border-color: rgba(139, 92, 246, 0.15);
}

/* Stats Grid (Word Counter) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    border: 3px solid var(--border-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
}

[data-theme="light"] .stat-card {
    background: #f8f9fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Diff Container (Text Diff Checker) */
.diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.diff-panel {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    border: 3px solid var(--border-color);
}

.diff-panel h4 {
    color: var(--accent-purple);
    margin-bottom: 0.75rem;
}

.diff-panel textarea {
    width: 100%;
    min-height: 200px;
    background: var(--bg-primary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1rem;
    color: var(--text-primary);
    resize: vertical;
}

.diff-result {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 0;
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
}

.diff-result .added {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.diff-result .removed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    text-decoration: line-through;
}

[data-theme="light"] .diff-panel {
    background: #f8f9fc;
}

[data-theme="light"] .diff-panel textarea {
    background: #ffffff;
}

[data-theme="light"] .diff-result {
    background: #ffffff;
    border: 3px solid rgba(139, 92, 246, 0.1);
}

@media (max-width: 768px) {
    .diff-container {
        grid-template-columns: 1fr;
    }
}

/* HTTP Headers Checker - Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tabs .tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.tabs .tab:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.tabs .tab.active {
    background: var(--accent-purple);
    color: white;
}

[data-theme="light"] .tabs .tab {
    background: #f0f2f5;
}

[data-theme="light"] .tabs .tab.active {
    background: var(--accent-purple);
    color: white;
}

/* Headers Table */
.headers-table {
    width: 100%;
    border-collapse: collapse;
}

.headers-table th,
.headers-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.headers-table th {
    background: var(--bg-secondary);
    color: var(--accent-purple);
    font-weight: 600;
}

.header-name {
    font-weight: 500;
    color: var(--text-primary);
}

.header-value {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
}

[data-theme="light"] .headers-table td {
    border-color: rgba(139, 92, 246, 0.1);
}

/* Security Grid (HTTP Headers) */
.security-grid {
    display: grid;
    gap: 1rem;
}

.security-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    border: 3px solid var(--border-color);
}

.security-item.present {
    border-left: 4px solid #10b981;
}

.security-item.missing {
    border-left: 4px solid #ef4444;
}

.security-item.warning {
    border-left: 4px solid #f59e0b;
}

.security-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.security-name {
    font-weight: 600;
    color: var(--text-primary);
}

.security-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.security-badge.badge-present {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.security-badge.badge-missing {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.security-badge.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.security-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.security-value {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}

[data-theme="light"] .security-item {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .security-value {
    background: #f8f9fc;
}

/* Options Group */
.options-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* WHOIS Lookup Specific */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.result-item {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 1rem;
    border: 3px solid var(--border-color);
}

.result-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.result-value {
    color: var(--text-primary);
    font-weight: 500;
}

.result-value.highlight {
    color: var(--accent-purple);
    font-size: 1.1rem;
}

.raw-whois {
    background: var(--bg-primary);
    border-radius: 0;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.raw-whois pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
}

[data-theme="light"] .result-item {
    background: #f8f9fc;
}

[data-theme="light"] .raw-whois {
    background: #f8f9fc;
    border: 3px solid rgba(139, 92, 246, 0.1);
}

/* Domain Input */
.domain-input,
.url-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.domain-input:focus,
.url-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .domain-input,
[data-theme="light"] .url-input {
    background: #f8f9fc;
}

[data-theme="light"] .domain-input:focus,
[data-theme="light"] .url-input:focus {
    background: #ffffff;
}

/* Format Hints */
.format-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Examples */
.examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

/* Result Header */
.result-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 50%;
    font-size: 1.1rem;
}

.result-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.result-info-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.result-info-item strong {
    color: var(--text-primary);
}

/* Copy Button */
.copy-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 3px solid var(--accent-purple);
    border-radius: 6px;
    color: var(--accent-purple);
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-purple);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Port Status Badges */
.port-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.port-status.open {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.port-status.closed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.port-status.filtered {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* Ping/Traceroute Results */
.hop-item,
.ping-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 0;
    margin-bottom: 0.5rem;
    border: 3px solid var(--border-color);
}

.hop-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #0a0a0a;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
}

.hop-info {
    flex: 1;
}

.hop-ip {
    font-family: 'Fira Code', monospace;
    color: var(--text-primary);
}

.hop-time {
    color: var(--accent-purple);
    font-weight: 500;
}

[data-theme="light"] .hop-item,
[data-theme="light"] .ping-result-item {
    background: #f8f9fc;
}

/* Subnet Calculator Results */
.subnet-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.subnet-item {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 1rem;
    border: 3px solid var(--border-color);
}

.subnet-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.subnet-value {
    font-family: 'Fira Code', monospace;
    color: var(--text-primary);
    font-weight: 500;
}

[data-theme="light"] .subnet-item {
    background: #f8f9fc;
}

/* IP Geolocation Map */
.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
    border: 3px solid var(--border-color);
}

.geo-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.geo-item {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 1rem;
    border: 3px solid var(--border-color);
}

.geo-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.geo-value {
    color: var(--text-primary);
    font-weight: 500;
}

[data-theme="light"] .geo-item {
    background: #f8f9fc;
}

/* MAC Vendor Lookup */
.vendor-info {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    border: 3px solid var(--border-color);
}

.vendor-name {
    font-size: 1.25rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.vendor-details {
    color: var(--text-secondary);
}

[data-theme="light"] .vendor-info {
    background: #f8f9fc;
}

/* Code Formatter Specific */
.language-select {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.language-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.language-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.language-btn.active {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
}

[data-theme="light"] .language-btn {
    background: #f8f9fc;
}

[data-theme="light"] .language-btn.active {
    background: var(--accent-purple);
    color: white;
}

/* Markdown Editor */
.editor-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: 400px;
}

.editor-pane,
.preview-pane {
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 3px solid var(--border-color);
    overflow: hidden;
}

.pane-header {
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--accent-purple);
}

.editor-pane textarea {
    width: 100%;
    height: calc(100% - 42px);
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    resize: none;
}

.preview-content {
    padding: 1rem;
    height: calc(100% - 42px);
    overflow-y: auto;
    color: var(--text-primary);
}

.preview-content h1,
.preview-content h2,
.preview-content h3 {
    color: var(--accent-purple);
}

.preview-content code {
    background: var(--bg-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
}

.preview-content pre {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 0;
    overflow-x: auto;
}

.preview-content blockquote {
    border-left: 4px solid var(--accent-purple);
    padding-left: 1rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}

[data-theme="light"] .editor-pane,
[data-theme="light"] .preview-pane {
    background: #ffffff;
}

[data-theme="light"] .pane-header {
    background: #f8f9fc;
}

[data-theme="light"] .preview-content code,
[data-theme="light"] .preview-content pre {
    background: #f8f9fc;
}

@media (max-width: 768px) {
    .editor-preview-container {
        grid-template-columns: 1fr;
    }
}

/* Base64 Encoder/Decoder */
.encode-decode-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.encode-decode-container textarea {
    min-height: 200px;
}

.encode-arrows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.arrow-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    color: var(--accent-purple);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.arrow-btn:hover {
    background: var(--accent-purple);
    color: white;
}

[data-theme="light"] .arrow-btn {
    background: #f8f9fc;
}

@media (max-width: 768px) {
    .encode-decode-container {
        grid-template-columns: 1fr;
    }

    .encode-arrows {
        flex-direction: row;
        justify-content: center;
    }
}

/* Port List */
.port-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.port-chip {
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.port-chip:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.port-chip.selected {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
}

[data-theme="light"] .port-chip {
    background: #f8f9fc;
}

/* Common fixes for all tools in light mode */
[data-theme="light"] .container {
    background: transparent;
}

[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
    color: var(--text-primary);
}

[data-theme="light"] p {
    color: var(--text-secondary);
}

[data-theme="light"] label {
    color: var(--text-secondary);
}

[data-theme="light"] .info-section ul li {
    color: var(--text-secondary);
}

/* Ensure all tool cards have proper backgrounds */
[data-theme="light"] .tool-card {
    background: #ffffff;
}

/* Light mode for select dropdowns */
[data-theme="light"] select option {
    background: #ffffff;
    color: var(--text-primary);
}

/* ============================================
   SEO CHECKER STYLES
   ============================================ */

/* Score Section */
.seo-score-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2rem;
}

[data-theme="light"] .seo-score-section {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.seo-main-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.seo-score-circle {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-score-circle canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.seo-score-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
}

.seo-score-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-weight: 500;
}

.seo-score-status {
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.seo-score-status.status-excellent {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.seo-score-status.status-good {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.seo-score-status.status-average {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.seo-score-status.status-poor {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
}

/* Score Breakdown */
.seo-score-breakdown {
    display: flex;
    flex-direction: column;
}

.seo-breakdown-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.seo-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.seo-breakdown-item {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 1.25rem;
    text-align: center;
    border: 3px solid var(--border-color);
    transition: all 0.2s ease;
}

.seo-breakdown-item:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

[data-theme="light"] .seo-breakdown-item {
    background: #f8f9fc;
}

.seo-breakdown-item .score {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.seo-breakdown-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

.seo-breakdown-item .bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.seo-breakdown-item .bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease-out;
}

/* SEO Tabs */
.seo-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.seo-tabs::-webkit-scrollbar {
    display: none;
}

[data-theme="light"] .seo-tabs {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.seo-tab-btn {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.seo-tab-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.seo-tab-btn.active {
    background: var(--gradient-primary);
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.seo-tab-content {
    display: none;
}

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

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

/* SEO Charts Grid */
.seo-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.seo-chart-card {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
}

[data-theme="light"] .seo-chart-card {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.seo-chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* SEO Results Grid */
.seo-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* SEO Card */
.seo-card {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
}

[data-theme="light"] .seo-card {
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.seo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .seo-card-header {
    background: #f8f9fc;
}

.seo-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.seo-card-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.seo-card-badge.badge-pass {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.seo-card-badge.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.seo-card-badge.badge-fail {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
}

.seo-card-badge.badge-info {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.seo-card-body {
    padding: 1.25rem;
}

/* SEO Check Item */
.seo-check-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.seo-check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.seo-check-icon.pass {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.seo-check-icon.fail {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
}

.seo-check-content {
    flex: 1;
    min-width: 0;
}

.seo-check-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.seo-check-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-word;
}

/* Keywords Cloud */
.seo-keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
}

.seo-keyword-tag {
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.seo-keyword-tag:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.seo-keyword-tag.size-5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.seo-keyword-tag.size-4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-pink);
}

.seo-keyword-tag.size-3 { font-size: 0.95rem; font-weight: 500; }
.seo-keyword-tag.size-2 { font-size: 0.9rem; }
.seo-keyword-tag.size-1 { font-size: 0.85rem; }

[data-theme="light"] .seo-keyword-tag {
    background: #f8f9fc;
}

/* SEO Recommendations */
.seo-recommendation {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--border-color);
}

.seo-recommendation.high { border-left-color: var(--error-color); }
.seo-recommendation.medium { border-left-color: var(--warning-color); }
.seo-recommendation.low { border-left-color: var(--success-color); }

[data-theme="light"] .seo-recommendation {
    background: #f8f9fc;
}

.seo-rec-priority { flex-shrink: 0; font-size: 1.25rem; }
.seo-rec-content { flex: 1; }
.seo-rec-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.35rem; }
.seo-rec-description { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* SEO Priority Section */
.seo-priority-section { margin-bottom: 2rem; }
.seo-priority-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.seo-priority-title.high { color: var(--error-color); }
.seo-priority-title.medium { color: var(--warning-color); }
.seo-priority-title.low { color: var(--success-color); }

/* SEO Code Section */
.seo-code-section { margin-bottom: 1.5rem; }
.seo-code-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; }

.seo-code-block {
    position: relative;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
}

[data-theme="light"] .seo-code-block { background: #f8f9fc; }

.seo-code-block pre {
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.seo-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seo-copy-btn:hover { background: var(--accent-pink); }

/* SEO Schema Type Grid */
.seo-schema-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.seo-schema-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seo-schema-type-btn:hover { border-color: var(--accent-purple); }
.seo-schema-type-btn.active { border-color: var(--accent-purple); background: rgba(139, 92, 246, 0.1); }
[data-theme="light"] .seo-schema-type-btn { background: #f8f9fc; }
.seo-schema-type-btn .icon { font-size: 1.5rem; }
.seo-schema-type-btn .label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }

/* SEO Checklist */
.seo-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
}

.seo-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 0;
    font-size: 0.9rem;
}

.seo-checklist-item.pass { background: rgba(16, 185, 129, 0.08); }
.seo-checklist-item.fail { background: rgba(239, 68, 68, 0.08); }
[data-theme="light"] .seo-checklist-item { background: #f8f9fc; }
[data-theme="light"] .seo-checklist-item.pass { background: rgba(16, 185, 129, 0.1); }
[data-theme="light"] .seo-checklist-item.fail { background: rgba(239, 68, 68, 0.1); }
.seo-checklist-icon { flex-shrink: 0; }
.seo-checklist-icon.pass { color: var(--success-color); }
.seo-checklist-icon.fail { color: var(--error-color); }

/* SEO Headings Tree */
.seo-headings-tree {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

[data-theme="light"] .seo-headings-tree { background: #f8f9fc; }
.seo-heading-item { padding: 0.35rem 0; }
.seo-heading-level { color: var(--accent-purple); font-weight: 700; margin-right: 0.5rem; }

/* SEO Social Preview */
.seo-social-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.seo-social-preview { border-radius: 0; overflow: hidden; }
.seo-social-preview.facebook { background: #f0f2f5; }
.seo-social-preview.twitter { background: #15202b; }
.seo-preview-header { padding: 0.75rem 1rem; font-size: 0.9rem; font-weight: 600; }
.seo-social-preview.facebook .seo-preview-header { color: #65676b; }
.seo-social-preview.twitter .seo-preview-header { color: #ffffff; }
.seo-preview-card { margin: 0 1rem 1rem; border-radius: 0; overflow: hidden; }
.seo-social-preview.facebook .seo-preview-card { background: #ffffff; border: 3px solid #ddd; }
.seo-social-preview.twitter .seo-preview-card { background: #192734; border: 3px solid #38444d; }
.seo-preview-image { height: 150px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.seo-social-preview.facebook .seo-preview-image { background-color: #eee; color: #999; }
.seo-social-preview.twitter .seo-preview-image { background-color: #192734; color: #8899a6; }
.seo-preview-content { padding: 0.75rem; }
.seo-social-preview.facebook .seo-preview-domain { font-size: 0.75rem; color: #65676b; text-transform: uppercase; }
.seo-social-preview.facebook .seo-preview-title { font-weight: 600; color: #1c1e21; margin: 0.25rem 0; }
.seo-social-preview.facebook .seo-preview-desc { font-size: 0.85rem; color: #65676b; }
.seo-social-preview.twitter .seo-preview-title { font-weight: 600; color: #fff; }
.seo-social-preview.twitter .seo-preview-desc { font-size: 0.85rem; color: #8899a6; margin: 0.25rem 0; }
.seo-social-preview.twitter .seo-preview-domain { font-size: 0.8rem; color: #8899a6; }

/* SEO Form Elements */
.seo-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.seo-form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.seo-form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }

.seo-form-group input,
.seo-form-group select,
.seo-form-group textarea {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.seo-form-group input:focus,
.seo-form-group select:focus,
.seo-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

[data-theme="light"] .seo-form-group input,
[data-theme="light"] .seo-form-group select,
[data-theme="light"] .seo-form-group textarea {
    background: #f8f9fc;
}

/* No results message */
.seo-no-data {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
}

/* SEO Responsive */
@media (max-width: 900px) {
    .seo-score-section { grid-template-columns: 1fr; }
    .seo-breakdown-grid { grid-template-columns: repeat(2, 1fr); }
    .seo-results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .seo-breakdown-grid { grid-template-columns: 1fr; }
    .seo-tabs { padding: 0.25rem; }
    .seo-tab-btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
}

/* ============================================
   IP GEOLOCATION STYLES
   ============================================ */

/* Quick lookup label */
.geo-quick-label {
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Main info card */
.geo-main-card {
    background: var(--bg-card);
    border-radius: 0;
    padding: 2rem;
    border: 3px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.geo-ip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.geo-domain-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.geo-city-name {
    font-size: 1.5rem;
}

.geo-postal {
    margin-top: 0.5rem;
}

/* Map link */
.geo-map-link {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.geo-map-link a {
    color: var(--accent-pink);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.geo-map-link a:hover {
    opacity: 0.8;
}

/* Details section spacing */
.geo-details-section {
    margin-top: 1.5rem;
}

/* Error text */
.geo-error-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--error-color);
}

/* Loading text */
.geo-loading-text {
    margin-top: 1rem;
}

/* Results hint text */
.geo-hint-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

/* Footer */
.geo-footer {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 2px solid var(--accent-purple);
    margin-top: 2rem;
}

.geo-footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.geo-footer-links {
    display: flex;
    gap: 1.5rem;
}

.geo-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.geo-footer-links a:hover {
    color: var(--accent-purple);
}

/* ============================================
   GLOBAL UTILITY CLASSES
   Reusable classes to replace inline styles
   ============================================ */

/* Quick/Label styles */
.quick-label {
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hint/secondary text */
.hint-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

/* Muted text */
.muted-text {
    color: var(--text-muted);
}

/* Error messages */
.error-msg {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--error-color);
}

/* Loading text */
.loading-msg {
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* Section spacing */
.section-spacing {
    margin-top: 1.5rem;
}

/* Link styles */
.accent-link {
    color: var(--accent-pink);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.accent-link:hover {
    opacity: 0.8;
}

/* Font sizes */
.text-sm { font-size: 0.85rem; }
.text-md { font-size: 0.9rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* Font weights */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Margins */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* Global footer */
.tool-footer {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 2px solid var(--accent-purple);
    margin-top: 2rem;
}

.tool-footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tool-footer-links {
    display: flex;
    gap: 1.5rem;
}

.tool-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.tool-footer-links a:hover {
    color: var(--accent-purple);
}

/* Card with spacing */
.card-spacing {
    margin-top: 1.5rem;
}

/* Quick test/targets section */
.quick-test-label {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

/* Status indicators */
.status-pass { color: var(--success-color); }
.status-fail { color: var(--error-color); }
.status-warn { color: var(--warning-color); }

/* Display utilities */
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }
.d-none { display: none; }

/* Flex utilities */
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Info section titles */
.info-section-title {
    color: var(--accent-purple);
    margin-top: 2rem;
}
[data-theme="light"] .info-section-title {
    color: #7c3aed;
}

/* Code accent */
.code-accent {
    color: var(--accent-purple);
}
[data-theme="light"] .code-accent {
    color: #7c3aed;
}

/* ===========================================
   SEO CONTENT SECTIONS
   =========================================== */

.seo-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.seo-section {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.seo-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-section h2 svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-purple);
}

.seo-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.seo-section ul, .seo-section ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.seo-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.seo-section strong {
    color: var(--text-primary);
}

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

.feature-item {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.feature-item h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item h3 svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-purple);
}

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

/* How To Steps */
.how-to-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.how-to-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.how-to-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(139, 92, 246, 0.1);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-purple);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer Sister Sites */
.tool-footer-sister-sites {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-footer-sister-sites span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sister-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border: 3px solid var(--border-color);
    border-radius: 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sister-site-link:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: translateY(-1px);
}

.sister-site-link svg {
    width: 14px;
    height: 14px;
}

/* Responsive SEO Content */
@media (max-width: 768px) {
    .seo-content {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .seo-section {
        padding: 1.5rem;
    }

    .seo-section h2 {
        font-size: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tool-footer {
        flex-direction: column;
        text-align: center;
    }

    .tool-footer-sister-sites {
        justify-content: center;
    }
}
