@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.cdnfonts.com/css/product-sans');

:root {
    /* Soft Natural Palette, tuned to the Biotic.work logo identity */
    --bg-base: #f7faf8;
    --bg-mesh-1: rgba(27, 157, 71, 0.06); /* Vibrant Bio Green */
    --bg-mesh-2: rgba(27, 117, 187, 0.08); /* Sleek Tech Blue */
    --bg-mesh-3: rgba(244, 211, 194, 0.05); /* Warm Sand/Peach */
    
    --primary-green: #1b9d47; /* Bio/Flora (Logo Green) */
    --primary-blue: #1b75bb;  /* Aqua/Water (Logo Blue) */
    --accent-sage: #58b074;
    
    --text-primary: #212c26;
    --text-muted: #5e6f65;
    --white-glass: rgba(255, 255, 255, 0.45);
    --border-glass: rgba(255, 255, 255, 0.65);
    
    --font-head: 'Google Sans Flex', 'Google Sans', 'Product Sans', 'Noto Sans Thai', 'Outfit', sans-serif;
    --font-body: 'Google Sans Flex', 'Google Sans', 'Product Sans', 'Noto Sans Thai', 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dynamic Ambient Gradient Background */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: floatOrb 18s infinite ease-in-out alternate;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--bg-mesh-1);
    top: -10%;
    left: 10%;
    animation-duration: 16s;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: var(--bg-mesh-2);
    bottom: -15%;
    right: 5%;
    animation-delay: -4s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: var(--bg-mesh-3);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
    animation-duration: 22s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -50px) scale(1.08); }
    100% { transform: translate(-30px, 35px) scale(0.92); }
}

/* Custom interactive bio-bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(126, 188, 210, 0.15));
    border: 0.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 10px rgba(91, 130, 102, 0.05);
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.bubble:hover {
    transform: scale(1.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(91, 130, 102, 0.3));
}

/* Header/Navigation */
header {
    width: 100%;
    max-width: 1200px;
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(74, 109, 88, 0.2);
}

.tag-brand {
    font-size: 0.85rem;
    background: rgba(74, 109, 88, 0.08);
    color: var(--primary-green);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    border: 0.5px solid rgba(74, 109, 88, 0.15);
}

/* Layout Wrapper */
.main-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 1rem 2rem 5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background: rgba(91, 130, 102, 0.08);
    border: 1px solid rgba(91, 130, 102, 0.15);
    color: var(--primary-green);
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

h1.hero-title {
    font-family: var(--font-head);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    animation: slideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

h1.hero-title span.grad-flora {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-sage));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1.hero-title span.grad-fauna {
    background: linear-gradient(135deg, var(--primary-blue), #8ecae6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: slideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Call to Action - Register Form */
.cta-form {
    display: flex;
    width: 100%;
    max-width: 480px;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(74, 109, 88, 0.15);
    padding: 0.4rem;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(74, 109, 88, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.cta-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    color: var(--text-primary);
}

.cta-form input::placeholder {
    color: #9ab4a5;
}

.cta-form button {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-sage));
    color: #ffffff;
    border: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 109, 88, 0.2);
}

.cta-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 109, 88, 0.3);
    filter: brightness(1.05);
}

/* Hero Visual Box */
.hero-visual-wrapper {
    position: relative;
    animation: slideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
    transform: translateX(30px);
}

.visual-card {
    background: var(--white-glass);
    border: 1.5px solid var(--border-glass);
    border-radius: 30px;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(74, 109, 88, 0.08),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.visual-card img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.visual-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1.2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
}

.visual-badge span {
    width: 8px;
    height: 8px;
    background: #52b788;
    border-radius: 50%;
    display: inline-block;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translate(0);
    }
}

/* Feature Grid */
.grid-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.section-head h2 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white-glass);
    border: 1px solid var(--border-glass);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 35px rgba(74, 109, 88, 0.04),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.feature-card.flora::before { background: linear-gradient(90deg, var(--primary-green), var(--accent-sage)); }
.feature-card.fauna::before { background: linear-gradient(90deg, var(--primary-blue), #8ecae6); }
.feature-card.loop::before { background: linear-gradient(90deg, var(--primary-green), var(--primary-blue)); }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(74, 109, 88, 0.08),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.95);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card.flora .icon-box { background: rgba(74, 109, 88, 0.08); color: var(--primary-green); }
.feature-card.fauna .icon-box { background: rgba(91, 146, 162, 0.08); color: var(--primary-blue); }
.feature-card.loop .icon-box { background: linear-gradient(135deg, rgba(74, 109, 88, 0.06), rgba(91, 146, 162, 0.06)); color: var(--primary-green); }

.feature-card h3 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Footer Section */
footer {
    width: 100%;
    max-width: 1200px;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(74, 109, 88, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    margin-top: auto;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(74, 109, 88, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ffffff;
    transform: translateY(-2px);
    color: var(--primary-green);
    border-color: rgba(74, 109, 88, 0.25);
    box-shadow: 0 4px 10px rgba(74, 109, 88, 0.05);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Responsiveness */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    h1.hero-title {
        font-size: 3.2rem;
    }
    
    .cta-form {
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-visual-wrapper {
        transform: translateY(20px);
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    h1.hero-title {
        font-size: 2.5rem;
    }
    
    .cta-form {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 1rem;
    }
    
    .cta-form input {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(74, 109, 88, 0.15);
        border-radius: 30px;
        width: 100%;
    }
    
    .cta-form button {
        width: 100%;
    }
    
    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ==========================================
 * O3 DASHBOARD & GOOGLE SHEET SYNC STYLES
 * ========================================== */

/* Google Connect Button & Profile */
.auth-container {
    z-index: 20;
}

.google-btn {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(74, 109, 88, 0.18);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 109, 88, 0.1);
    border-color: rgba(74, 109, 88, 0.35);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white-glass);
    border: 1.5px solid var(--border-glass);
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(74, 109, 88, 0.04);
    backdrop-filter: blur(10px);
}

.profile-pic {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.88rem;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
}

.profile-status {
    font-size: 0.72rem;
    color: var(--primary-green);
    font-weight: 500;
}

.logout-btn {
    background: transparent;
    border: none;
    color: #e63946;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(230, 57, 70, 0.1);
    transform: scale(1.15);
}

.hidden {
    display: none !important;
}

/* Pond Management Bar */
.pond-bar-card {
    background: var(--white-glass);
    border: 1.5px solid var(--border-glass);
    border-radius: 25px;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(74, 109, 88, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.pond-selector-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text-primary);
}

.pond-dropdown {
    background: #ffffff;
    border: 1px solid rgba(74, 109, 88, 0.2);
    padding: 0.6rem 2.5rem 0.6rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%234a6d58%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpolyline%20points%3D%276%209%2012%2015%2018%209%27%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.1rem;
    transition: all 0.3s ease;
}

.pond-dropdown:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 109, 88, 0.08);
}

/* Action Buttons */
.action-btn {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-radius: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-sage));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(74, 109, 88, 0.15);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 109, 88, 0.25);
    filter: brightness(1.05);
}

.secondary-btn {
    background: #ffffff;
    border: 1px solid rgba(74, 109, 88, 0.25);
    color: var(--primary-green);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.secondary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--primary-green);
    box-shadow: 0 6px 15px rgba(74, 109, 88, 0.08);
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Daily Log Form Panel */
.form-container-card {
    background: var(--white-glass);
    border: 1.5px solid var(--border-glass);
    border-radius: 25px;
    padding: 2rem 2.25rem;
    box-shadow: 0 15px 35px rgba(74, 109, 88, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid rgba(74, 109, 88, 0.08);
}

.card-title-bar h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
}

.pond-context-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.pond-context-badge.active {
    background: rgba(74, 109, 88, 0.08);
    color: var(--primary-green);
    border: 1px solid rgba(74, 109, 88, 0.2);
}

/* Inputs & Form Groups */
.dashboard-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row.double {
    flex-direction: row;
}

.form-row.double .form-group {
    flex: 1;
}

.dashboard-form label, .modal-form label {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-form input, .dashboard-form textarea,
.modal-form input, .modal-form textarea {
    background: #ffffff;
    border: 1px solid rgba(74, 109, 88, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.dashboard-form input:focus, .dashboard-form textarea:focus,
.modal-form input:focus, .modal-form textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 109, 88, 0.08);
}

.dashboard-form input::placeholder, .modal-form input::placeholder {
    color: #b0c2b7;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-sage));
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 0.85rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 109, 88, 0.15);
    margin-top: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 109, 88, 0.25);
    filter: brightness(1.05);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #c3d2c8;
    color: #7b9283;
    box-shadow: none;
}

/* Stats Cards Container */
.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: fit-content;
}

.glass-panel {
    background: var(--white-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(74, 109, 88, 0.02),
                inset 0 1px 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.stats-card {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.stats-card.highlight-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(74, 109, 88, 0.05));
    border-color: rgba(74, 109, 88, 0.3);
}

.card-label {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-value {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.card-sub-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.active-tag {
    font-size: 0.72rem;
    font-weight: 700;
    background: #52b788;
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-tag.inactive {
    background: rgba(0, 0, 0, 0.15);
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(74, 109, 88, 0.15);
    gap: 1.5rem;
}

.profile-detail-item {
    display: flex;
    flex-direction: column;
}

.profile-detail-item .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.profile-detail-item .val {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 0.1rem;
}

/* Logs Table Panel */
.table-container-card {
    background: var(--white-glass);
    border: 1.5px solid var(--border-glass);
    border-radius: 25px;
    padding: 2rem 2.25rem;
    box-shadow: 0 15px 35px rgba(74, 109, 88, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.table-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-title-bar h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
}

.sync-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
}

.sync-count {
    color: var(--text-muted);
    font-weight: 500;
}

/* Status Indicators */
.status-indicator {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

.status-indicator.success {
    background: rgba(74, 109, 88, 0.08);
    color: var(--primary-green);
    border: 0.5px solid rgba(74, 109, 88, 0.2);
}

.status-indicator.warning {
    background: rgba(212, 140, 63, 0.08);
    color: #d48c3f;
    border: 0.5px solid rgba(212, 140, 63, 0.2);
}

.status-indicator.info {
    background: rgba(91, 146, 162, 0.08);
    color: var(--primary-blue);
    border: 0.5px solid rgba(91, 146, 162, 0.2);
}

/* Responsive Table */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 15px;
    border: 1px solid rgba(74, 109, 88, 0.1);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
    background: #ffffff;
}

.dashboard-table th {
    background: rgba(74, 109, 88, 0.05);
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary-green);
    padding: 0.9rem 1rem;
    border-bottom: 1.5px solid rgba(74, 109, 88, 0.12);
}

.dashboard-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(74, 109, 88, 0.06);
    color: var(--text-primary);
    font-weight: 500;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table tr:hover td {
    background: rgba(74, 109, 88, 0.015);
}

.table-notes {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Glassmorphic Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(33, 44, 38, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.modal-card {
    width: 90%;
    max-width: 500px;
    padding: 2.25rem;
    position: relative;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid rgba(74, 109, 88, 0.08);
}

.modal-header h2 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
}

.close-modal-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #e63946;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Adaptability for Dashboard Responsive */
@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-rows: auto;
    }
    
    .pond-bar-card {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
    
    .pond-selector-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.5rem 1rem 1rem;
        text-align: center;
        align-items: center;
    }
    
    header div {
        justify-content: center;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.4rem;
    }
    
    .pond-bar-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
        align-items: stretch;
    }
    
    .pond-selector-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .pond-dropdown {
        width: 100%;
        max-width: 100%;
    }
    
    .pond-bar-card div {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pond-bar-card div .action-btn,
    .pond-bar-card div a.action-btn {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-card {
        grid-column: span 1 !important;
        padding: 1.25rem 1.5rem;
    }
    
    .profile-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-container-card {
        padding: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
    }

    .form-row.double {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .table-container-card {
        padding: 1.25rem 1rem;
    }
    
    .table-scroll-wrapper {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
}

/* AI Feed Suggestion Helper Box */
.ai-suggestion-box {
    background: rgba(74, 109, 88, 0.05);
    border: 1.5px dashed rgba(74, 109, 88, 0.25);
    border-radius: 15px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.ai-suggestion-box .ai-title {
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-green);
}

.ai-suggestion-box .ai-suggested-val {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1.2;
}

.rate-adjuster {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================
 * MATERIAL DESIGN 3 STYLE SYSTEM (LANDING PAGE)
 * ========================================== */
.m3-theme {
    --m3-sys-color-primary: #1b9d47;
    --m3-sys-color-on-primary: #ffffff;
    --m3-sys-color-primary-container: #d2ffd6;
    --m3-sys-color-on-primary-container: #003912;
    --m3-sys-color-secondary: #1b75bb;
    --m3-sys-color-on-secondary: #ffffff;
    --m3-sys-color-secondary-container: #d8e2ff;
    --m3-sys-color-on-secondary-container: #001a41;
    --m3-sys-color-surface: #f8faf7;
    --m3-sys-color-on-surface: #191c1a;
    --m3-sys-color-surface-variant: #e0e4df;
    --m3-sys-color-on-surface-variant: #434944;
    --m3-sys-color-outline: #737973;
    --m3-sys-color-outline-variant: #c3c7c2;
    --m3-sys-color-surface-container: #edf2ed;
    --m3-sys-color-surface-container-high: #e2e8e2;

    font-family: var(--font-body);
    background-color: var(--m3-sys-color-surface);
    color: var(--m3-sys-color-on-surface);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography styles matching M3 standard specs */
.m3-theme .m3-display-large {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 3.8rem;
    line-height: 1.15;
    letter-spacing: -0.05rem;
    color: var(--m3-sys-color-on-surface);
    margin: 0;
}

.m3-theme .m3-headline-medium {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--m3-sys-color-on-surface);
}

.m3-theme .m3-title-large {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--m3-sys-color-on-surface);
}

.m3-theme .m3-body-large {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.65;
    letter-spacing: 0.25px;
    color: var(--m3-sys-color-on-surface-variant);
    font-weight: 400;
}

.m3-theme .m3-body-medium {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.55;
    letter-spacing: 0.25px;
    color: var(--m3-sys-color-on-surface-variant);
}

.m3-theme .m3-label-medium {
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.m3-theme .m3-label-small {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Dynamic color helpers */
.m3-theme .m3-text-green { color: var(--m3-sys-color-primary); }
.m3-theme .m3-text-blue { color: var(--m3-sys-color-secondary); }
.m3-theme .m3-text-gradient {
    background: linear-gradient(135deg, var(--m3-sys-color-primary), var(--m3-sys-color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* App Bar */
.m3-top-app-bar {
    width: 100%;
    position: sticky;
    top: 0;
    background-color: rgba(248, 250, 247, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--m3-sys-color-outline-variant);
    display: flex;
    justify-content: center;
}

.m3-app-bar-container {
    max-width: 1200px;
    width: 100%;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.m3-logo-img {
    height: 48px;
    display: block;
    transition: transform 0.2s ease;
}
.m3-logo-img:hover {
    transform: scale(1.02);
}

.m3-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.m3-badge-version {
    font-size: 0.75rem;
    background-color: var(--m3-sys-color-primary-container);
    color: var(--m3-sys-color-on-primary-container);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Layout Container */
.m3-layout-container {
    max-width: 1200px;
    width: 100%;
    padding: 4rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
    box-sizing: border-box;
}

/* Buttons */
.m3-btn {
    font-family: var(--font-head);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    text-decoration: none;
}

.m3-btn-filled {
    background-color: var(--m3-sys-color-primary);
    color: var(--m3-sys-color-on-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.m3-btn-filled:hover {
    box-shadow: 0 4px 12px rgba(27, 157, 71, 0.2);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.m3-btn-outlined {
    background-color: transparent;
    border: 1px solid var(--m3-sys-color-outline);
    color: var(--m3-sys-color-primary);
}
.m3-btn-outlined:hover {
    background-color: rgba(27, 157, 71, 0.05);
    transform: translateY(-1px);
}

.m3-btn-tonal {
    background-color: var(--m3-sys-color-surface-container-high);
    color: var(--m3-sys-color-on-surface);
}
.m3-btn-tonal:hover {
    background-color: var(--m3-sys-color-surface-container);
    transform: translateY(-1px);
}

/* Hero Section */
.m3-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.m3-hero-text-area {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.m3-suggestion-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--m3-sys-color-surface-container);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--m3-sys-color-outline);
    align-self: flex-start;
}

.m3-tag-dot {
    width: 6px;
    height: 6px;
    background-color: var(--m3-sys-color-primary);
    border-radius: 50%;
}

.m3-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.m3-text-field-container {
    display: flex;
    background-color: var(--m3-sys-color-surface-container);
    border-radius: 100px;
    padding: 0.3rem 0.3rem 0.3rem 1.25rem;
    align-items: center;
    border: 1px solid var(--m3-sys-color-outline-variant);
    max-width: 480px;
    width: 100%;
    box-sizing: border-box;
}

.m3-text-field-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--m3-sys-color-on-surface);
}

/* Visual Card Showcase */
.m3-hero-visual-area {
    display: flex;
    justify-content: center;
}

.m3-card {
    border-radius: 28px;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.m3-card-elevated {
    background-color: var(--m3-sys-color-surface-container);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.m3-card-outlined {
    background-color: transparent;
    border: 1px solid var(--m3-sys-color-outline-variant);
}

.m3-card-filled {
    background-color: var(--m3-sys-color-surface-container-high);
}

.m3-logo-card {
    align-items: center;
    justify-content: center;
    min-height: 380px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.m3-logo-glow-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
}

.m3-glow-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(27, 157, 71, 0.15) 0%, rgba(27, 117, 187, 0.12) 70%, transparent 100%);
    filter: blur(15px);
    border-radius: 50%;
    animation: rotateGlow 8s infinite linear;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1); }
}

.m3-hero-logo-mark {
    max-height: 180px;
    width: auto;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}
.m3-hero-logo-mark:hover {
    transform: translateY(-5px) scale(1.02);
}

.m3-visual-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    background-color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--m3-sys-color-outline-variant);
}

.m3-status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.m3-status-indicator.active {
    background-color: var(--m3-sys-color-primary);
    box-shadow: 0 0 6px var(--m3-sys-color-primary);
}

/* Features */
.m3-features {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.m3-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.m3-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.m3-feature-card {
    height: 100%;
    align-items: flex-start;
    gap: 1.25rem;
}
.m3-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.m3-feature-card.fauna {
    cursor: pointer;
}

.m3-card-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-green-light { background-color: var(--m3-sys-color-primary-container); }
.bg-blue-light { background-color: var(--m3-sys-color-secondary-container); }
.bg-gradient-light { background: linear-gradient(135deg, var(--m3-sys-color-primary-container), var(--m3-sys-color-secondary-container)); }

.icon-green { fill: var(--m3-sys-color-primary); }
.icon-blue { fill: var(--m3-sys-color-secondary); }
.icon-gradient { fill: var(--m3-sys-color-primary); }

.m3-card-action {
    margin-top: auto;
    padding-top: 1rem;
}
.m3-card-action .text-blue {
    color: var(--m3-sys-color-secondary);
}

/* Footer */
.m3-footer {
    width: 100%;
    border-top: 1px solid var(--m3-sys-color-outline-variant);
    padding: 2.5rem 0;
    margin-top: auto;
    background-color: var(--m3-sys-color-surface-container);
    display: flex;
    justify-content: center;
}

.m3-footer-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.m3-social-links {
    display: flex;
    gap: 0.75rem;
}

.m3-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--m3-sys-color-on-surface-variant);
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid var(--m3-sys-color-outline-variant);
    transition: all 0.2s ease;
}

.m3-social-btn:hover {
    background-color: var(--m3-sys-color-primary);
    color: #ffffff;
    border-color: var(--m3-sys-color-primary);
}

/* M3 Responsive styles */
@media (max-width: 968px) {
    .m3-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .m3-theme .m3-display-large {
        font-size: 2.8rem;
    }
    
    .m3-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .m3-top-app-bar {
        padding: 0.5rem 0;
    }
    
    .m3-hero-text-area {
        align-items: center;
        text-align: center;
    }
    
    .m3-suggestion-tag {
        align-self: center;
    }
    
    .m3-cta-group {
        width: 100%;
        align-items: center;
    }
    
    .m3-footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Premium CSS Micro Tooltip System */
.tooltip-info {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-info::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(33, 44, 38, 0.95);
    color: #ffffff;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-family: var(--font-body);
    font-weight: 500;
    width: 240px;
    line-height: 1.45;
    white-space: normal;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 99;
    text-align: center;
}

.tooltip-info::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(33, 44, 38, 0.95) transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 99;
}

.tooltip-info:hover::before,
.tooltip-info:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}



