:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #ec4899;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Effects */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.globe-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite;
}

.globe-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    right: -50px;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

/* Hero */
.hero {
    text-align: center;
    padding: 6rem 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tools-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 4rem;
}

/* Tool Cards */
.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-margin-top: 100px;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.tool-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tool-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Inputs */
.input-group {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
}

.single-input {
    grid-template-columns: 1fr auto;
}

input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--primary);
}

button {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
}

button:hover {
    opacity: 0.9;
}

/* Results Area */
.results-area {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hidden {
    display: none;
}

.result-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    font-size: 1.1rem;
    color: var(--text-main);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.status-good {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-bad {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.status-warn {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* Snippet Preview */
.erp-snippet {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    max-width: 600px;
    margin-top: 1rem;
}

.erp-title {
    color: #1a0dab;
    font-size: 18px;
    margin-bottom: 2px;
    cursor: pointer;
}

.erp-title:hover {
    text-decoration: underline;
}

.erp-url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 2px;
}

.erp-desc {
    color: #545454;
    font-size: 13px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .input-group {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}

/* --- New Dashboard Styles --- */

.audit-input-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.audit-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.input-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

.audit-btn {
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.card-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

/* Content tool specific */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.metric-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.metric-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.check-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.check-item.pass {
    color: var(--success);
}

.check-item.fail {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Google Snippet */
.google-snippet {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-family: Arial, sans-serif;
    max-width: 100%;
}

.snippet-title {
    color: #1a0dab;
    font-size: 18px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.snippet-url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 2px;
}

.snippet-desc {
    color: #545454;
    font-size: 13px;
    line-height: 1.4;
}

/* Loading */
#loading {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-style: italic;
    animation: pulse 1.5s infinite;
}

/* --- Login Screen Styles --- */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    /* Glassmorphism background effect */
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
}

.login-container.hidden {
    display: none;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Base h2 style reset/adjustment if needed */
.login-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    /* Changed from gradient to specific color if desired, or keep gradient */
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-light);
}

.login-header p {
    color: var(--text-muted);
}

.login-submit-btn {
    width: 100%;
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    /* Pill shape for more modern look */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 62, 165, 0.4);
    /* Glow effect matching gradient */
    position: relative;
    overflow: hidden;
}

.login-submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 62, 165, 0.6);
}

.login-submit-btn:active {
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}
