

:root {
    --bg-dark: #ECEFF1; /* Light Cool Grey */
    --bg-slate: #CFD8DC; /* Muted Cool Grey */
    --text-primary: #1A252C; /* Dark Charcoal / Teal-Black */
    --text-secondary: #4A5A68; /* Muted Slate */
    
    --primary-color: #FF5722; /* Vibrant Orange */
    --primary-hover: #009688; /* Bright Teal */
    --primary-gradient: linear-gradient(135deg, #FF5722, #FF7043);
    
    --primary-shadow-sm: 0 4px 10px rgba(255, 87, 34, 0.2);
    --primary-shadow-md: 0 4px 15px rgba(255, 87, 34, 0.3);
    --primary-shadow-lg: 0 6px 20px rgba(255, 87, 34, 0.4);
    --primary-glow: 0 0 0 2px rgba(255, 87, 34, 0.3);
    --primary-transparent: rgba(255, 87, 34, 0.15);
    
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    --bg-primary: rgba(255, 255, 255, 0.7);
    --bg-secondary: rgba(255, 255, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.6);
    
    --input-bg: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.6);
    
    --title-gradient: linear-gradient(to right, #009688, #1A252C);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Removed overflow-x: hidden to allow zooming scroll */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Background Animated Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.35;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #009688, #CFD8DC);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #00B4D8, #48CAE4);
    bottom: 100px;
    right: -50px;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #00B4D8, #009688);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 50px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Layout */
.container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

/* Shared Header */
.header {
    text-align: center;
    position: relative;
    z-index: 10;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

/* Back Link & Action Link */
.back-link, .action-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.back-link {
    color: var(--text-secondary);
}

.back-link:hover {
    color: var(--text-primary);
    background: var(--input-bg);
    transform: translateY(-2px);
}

.action-link {
    color: var(--text-primary);
    background: var(--primary-color);
    border-color: var(--primary-hover);
}

.action-link:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--primary-shadow-md);
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }
    .glass-card {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Global Search Component */
.global-search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.top-bar-left, .top-bar-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.top-bar-right {
    justify-content: flex-end;
    gap: 1.5rem;
    padding-right: 7rem;
}

.top-bar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.top-nav-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s, transform 0.3s;
}

.top-nav-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.global-search-input {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 20px;
    font-family: inherit;
    font-size: 1rem;
    width: 250px;
    transition: all 0.3s;
    outline: none;
}

.global-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--primary-glow);
    width: 300px;
}

.global-search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-secondary);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.global-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: var(--bg-slate);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.global-search-item {
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: background 0.2s;
    cursor: pointer;
}

.global-search-item.empty {
    color: var(--text-secondary);
    cursor: default;
    justify-content: center;
}

.global-search-item:not(.empty):hover,
.global-search-item.selected {
    background: rgba(136, 189, 242, 0.15);
}

.search-item-icon {
    font-size: 1.2rem;
}


/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.table-container table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.table-container th, .table-container td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.table-container th {
    background-color: var(--primary-transparent);
    color: var(--primary-color);
    font-weight: 600;
}
.table-container tr:last-child td {
    border-bottom: none;
}
.table-container tr:hover {
    background-color: var(--glass-bg);
}

/* Mobile UI Overrides to prevent horizontal scrolling */
@media (max-width: 600px) {
    .action-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .dynamic-row {
        flex-wrap: wrap;
    }
    .dynamic-row input, .dynamic-row select {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
    .global-search-input {
        width: 100% !important;
        max-width: 250px;
    }
}

/* SEO Guide Block */
.seo-guide {
    margin-top: 2.5rem;
    padding: 3rem 2.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.35); /* Softer, more transparent glass */
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1.05rem; /* Slightly larger text for readability */
}
.seo-guide h2 {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-size: 1.6rem; /* Less aggressive size */
    font-weight: 600; /* Softer weight */
    opacity: 0.9;
}
.seo-guide h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0.85;
}
.seo-guide p {
    margin-bottom: 1.2rem;
    letter-spacing: 0.2px; /* Breathing room */
}
.seo-guide ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}
.seo-guide li {
    margin-bottom: 0.6rem;
    letter-spacing: 0.2px;
}

/* Footer Styles */
.site-footer {
    width: 100%;
    text-align: center;
    margin-top: 5rem;
    padding-bottom: 2rem;
}
.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.site-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
