:root {
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-blue: #00d2ff;
    --accent-green: #00ff88;
    --bg-dark: #0b0e14;
}

body {
    background: #020617;
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #e6edf3;
    font-family: 'Inter', sans-serif;
    padding-bottom: 100px !important;
}

/* Horizontal Card Container */
.garden-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Mobile */
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .garden-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* Tablet */
    }
}

@media (min-width: 1280px) {
    .garden-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* Desktop */
    }
}

.plant-card {
    width: 100%; /* Occupy full width of grid cell */
    background: rgba(30, 41, 59, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.plant-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.45);
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0.6, 0.4);
}

.plant-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.plant-card h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.slick-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ai-content-compact {
    line-height: 1.5;
    font-size: 0.9rem;
    color: #cbd5e0;
    white-space: pre-line;
    padding: 1rem;
    max-height: 300px; /* Limits excessive scrolling */
    overflow-y: auto;
}

/* Fluid water-drop indicator */
.status-pill {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(58, 123, 213, 0.1));
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: #00d2ff;
}

/* Smooth Accordion */
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
}

.accordion-panel.open {
    max-height: 500px;
    opacity: 1;
}

* {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.pb-32 {
    padding-bottom: 2rem !important;
}

/* Futuristic Mesh Gradient Background */
.auth-bg {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Floating Orb Background elements */
.orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.15;
}

.orb-1 {
    top: -10%;
    left: -10%;
    background: #3b82f6;
    animation: float 10s infinite alternate;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    background: #8b5cf6;
    animation: float 12s infinite alternate-reverse;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(30px, 50px);
    }
}

/* Disable transitions temporarily to prevent flashing on load */
.nav-no-transition {
    transition: none !important;
}

#main-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom styling for the range slider */
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 2px solid #020617;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}


#device-input::-webkit-calendar-picker-indicator {
    display: none !important; /* Hides the default arrow to use our custom search icon */
}

/* Hyper-Liquid Mesh Background */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000; /* Pure black base for maximum contrast */
    overflow: hidden;
    pointer-events: none;
}

.liquid-blob {
    position: absolute;
    border-radius: 45% 55% 50% 50% / 50% 50% 50% 50%; /* Irregular shape for more "organic" feel */
    filter: blur(50px); /* Sharper definition */
    opacity: 0.5;
    mix-blend-mode: screen;
    will-change: transform;
    transition: none !important;
}

/* --- THE BLUE CORE --- */
.blob-blue-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #1e40af, transparent);
    top: -10%;
    left: -5%;
    animation: moveExtreme 8s infinite alternate ease-in-out;
}

.blob-blue-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #3b82f6, transparent);
    top: -10%;
    right: 10%;
    animation: moveExtreme 10s infinite alternate-reverse ease-in-out;
}

/* --- THE BOTANICAL GREENS --- */
.blob-green-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #065f46, transparent);
    top: -5%;
    left: -10%;
    animation: moveExtreme 7s infinite alternate ease-in-out;
    animation-delay: -2s;
}

.blob-green-2 {
    width: 20vw;
    height: 15vw;
    background: radial-gradient(circle, #10b981, transparent);
    top: 10%;
    right: 20%;
    animation: moveExtreme 9s infinite alternate-reverse ease-in-out;
}

.blob-green-3 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #047857, transparent);
    top: 40%;
    left: 30%;
    animation: moveExtreme 11s infinite alternate ease-in-out;
}

/* --- THE QUANTUM PURPLES --- */
.blob-purple-1 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #7e22ce, transparent);
    bottom: 15%;
    right: 5%;
    animation: moveExtreme 6s infinite alternate ease-in-out;
    animation-delay: -1s;
}

.blob-purple-2 {
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, #a855f7, transparent);
    top: -5%;
    right: 30%;
    animation: moveExtreme 12s infinite alternate-reverse ease-in-out;
}

/* High-Speed Organic Keyframes */
@keyframes moveExtreme {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 45% 55% 50% 50%;
    }
    33% {
        transform: translate(30%, 20%) scale(1.3) rotate(120deg);
        border-radius: 55% 45% 60% 40%;
    }
    66% {
        transform: translate(-15%, 35%) scale(0.8) rotate(240deg);
        border-radius: 40% 60% 30% 70%;
    }
    100% {
        transform: translate(10%, -10%) scale(1.1) rotate(360deg);
        border-radius: 45% 55% 50% 50%;
    }
}

/* Raindrop Animation */
.raindrops-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    top: -50px;
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6));
    border-radius: 100%;
    animation: rainFall 5s linear infinite;
}

@keyframes rainFall {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    /* Higher initial opacity */
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(800px) scaleY(1.2);
        opacity: 0;
    }
}

/* Glow for notifications*/

@keyframes menuGlow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
        border-color: rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
        border-color: #3b82f6;
    }
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
        border-color: rgba(59, 130, 246, 0.2);
    }
}

.nav-glow {
    animation: menuGlow 2s infinite ease-in-out;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border: 2px solid #020617;
    border-radius: 50%;
    font-size: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
}

/* Specialized Notification Page Background */
.notification-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #020617; /* Deep Navy Base */
    overflow: hidden;
}

/* Moving Mesh Orbs */
.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: meshMove 20s infinite alternate ease-in-out;
}

.orb-blue { width: 400px; height: 400px; background: #3b82f6; top: -100px; right: -50px; }
.orb-purple { width: 500px; height: 500px; background: #7e22ce; bottom: -150px; left: -100px; animation-delay: -5s; }
.orb-green { width: 300px; height: 300px; background: #10b981; top: 40%; left: 20%; animation-delay: -10s; }

@keyframes meshMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Glassmorphism Refinement */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Individual card hover effect */
.notification-item {
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.notification-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}
/* Bulk Selection Styles */
.bulk-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.bulk-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.bulk-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.bulk-checkbox:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.notification-item:hover .bulk-checkbox {
    opacity: 1 !important;
}

/* Floating Action Bar */
#bulk-action-bar {
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Select All checkbox */
#select-all-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

#select-all-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

#select-all-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

#select-all-checkbox:indeterminate {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

#select-all-checkbox:indeterminate::after {
    content: '–';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}