@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional color palette - muted and neutral */
    --primary: #2d5f3f;
    --primary-dark: #1e3f2a;
    --primary-light: #4a7c59;
    --secondary: #5a6c57;
    --accent: #7a8f75;

    --surface: #fafafa;
    --surface-dark: #f0f0f0;
    --surface-light: #ffffff;
    --border: #e0e0e0;
    --border-dark: #c0c0c0;

    --text: #2c2c2c;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;

    --success: #4a7c59;
    --warning: #b8860b;
    --danger: #a83232;

    --water: #4a90a4;
    --sun: #d4a574;
    --health: #7a8f75;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: all 0.2s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background:
        linear-gradient(rgba(255, 255, 255, 0.15), rgba(255,255,255,0.15)),
        url("hackathon.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text);
    min-height: 50vh;
    padding: 20px;
    opacity:93%;
    position: relative;
    line-height: 1.6;
}

.main-container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 14px;
    background: var(--primary-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(45, 95, 63, 0.3);
}

.header h1 {
    font-size: 3em;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.95);
}

/* Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.card-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Store header */
.store-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.store-header-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.store-coins-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-dark);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.store-coins-display .coin-icon {
    font-size: 1.1rem;
}

.store-coins-display .coin-amount {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* LEFT PANEL - Plant Detail */
.plant-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.add-plant-box {
    width: 80px;
    height: 80px;
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface);
    margin: 0 auto;
}

.add-plant-box:hover {
    background: var(--surface-dark);
    border-color: var(--primary-light);
}

.plus-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1;
}

.plant-preview {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.plant-preview.active {
    border-color: var(--primary);
    background: var(--surface-light);
}

.plant-preview-visual {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.plant-icon-large {
    font-size: 4rem;
    margin-bottom: 12px;
}

.plant-name-large {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.plant-stage-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.plant-age {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Stats */

/* Plant Detail Modal */
.modal-large {
    max-width: 800px;
}

.modal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header-bar h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
    padding: 0;
}

.modal-close-btn:hover {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text);
}

.plant-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.plant-visual-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plant-visual-container {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    padding: 20px;
}

.plant-visual {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.plant-stage-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--surface-dark);
    padding: 6px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.plant-stats-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plant-detail-info {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-value {
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
}

.plant-detail-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-stat-item {
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.detail-stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.detail-progress-bar {
    height: 8px;
    background: var(--surface-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.detail-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: var(--radius-sm);
}

.plant-care-info {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.care-info-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 0.875rem;
}

/* CSS-drawn plants */
.css-plant {
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.plant-stem {
    background: linear-gradient(to right, #4a7c4e, #6b9e6f, #4a7c4e);
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.plant-leaves {
    position: absolute;
}

.plant-flower {
    position: absolute;
}

.leaf {
    position: absolute;
    background: linear-gradient(135deg, #5fa865 0%, #4a8850 100%);
    border-radius: 50% 0;
}

/* Pot/Soil base */
.plant-pot {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 12px;
    background: linear-gradient(to bottom, #8B4513, #654321);
    border-radius: 2px;
}

/* Tulip - Elegant cup-shaped flower */
.tulip-seedling .plant-stem {
    width: 6px;
    height: 40px;
}

.tulip-seedling .leaf:nth-child(2) {
    width: 20px;
    height: 30px;
    left: -25px;
    bottom: 5px;
    transform: rotate(-45deg);
}

.tulip-seedling .leaf:nth-child(3) {
    width: 20px;
    height: 30px;
    right: -25px;
    bottom: 5px;
    transform: rotate(45deg) scaleX(-1);
}

.tulip-young .plant-stem {
    width: 7px;
    height: 80px;
}

.tulip-young .leaf:nth-child(2) {
    width: 28px;
    height: 45px;
    left: -32px;
    bottom: 15px;
    transform: rotate(-50deg);
}

.tulip-young .leaf:nth-child(3) {
    width: 28px;
    height: 45px;
    right: -32px;
    bottom: 15px;
    transform: rotate(50deg) scaleX(-1);
}

.tulip-young .leaf:nth-child(4) {
    width: 25px;
    height: 40px;
    left: -28px;
    bottom: 35px;
    transform: rotate(-40deg);
}

.tulip-mature .plant-stem {
    width: 8px;
    height: 120px;
}

.tulip-mature .leaf:nth-child(2) {
    width: 35px;
    height: 55px;
    left: -40px;
    bottom: 20px;
    transform: rotate(-55deg);
}

.tulip-mature .leaf:nth-child(3) {
    width: 35px;
    height: 55px;
    right: -40px;
    bottom: 20px;
    transform: rotate(55deg) scaleX(-1);
}

.tulip-mature .leaf:nth-child(4) {
    width: 32px;
    height: 50px;
    left: -35px;
    bottom: 45px;
    transform: rotate(-45deg);
}

.tulip-mature .plant-flower {
    width: 50px;
    height: 65px;
    background: linear-gradient(to bottom, #ff8ec7 0%, #ff69b4 50%, #ff1493 100%);
    border-radius: 50% 50% 0 0 / 60% 60% 0 0;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 -10px 15px rgba(139, 0, 69, 0.3);
}

.tulip-mature .plant-flower::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 182, 193, 0.4), transparent);
    border-radius: 50% 50% 0 0 / 60% 60% 0 0;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

/* Rose - Layered petals */
.rose-seedling .plant-stem {
    width: 6px;
    height: 40px;
}

.rose-seedling .leaf:nth-child(2) {
    width: 22px;
    height: 28px;
    left: -26px;
    bottom: 8px;
    transform: rotate(-40deg);
}

.rose-young .plant-stem {
    width: 7px;
    height: 80px;
}

.rose-young .leaf:nth-child(2) {
    width: 30px;
    height: 40px;
    left: -34px;
    bottom: 18px;
    transform: rotate(-45deg);
}

.rose-young .leaf:nth-child(3) {
    width: 30px;
    height: 40px;
    right: -34px;
    bottom: 18px;
    transform: rotate(45deg) scaleX(-1);
}

.rose-mature .plant-stem {
    width: 8px;
    height: 120px;
}

.rose-mature .leaf:nth-child(2) {
    width: 38px;
    height: 48px;
    left: -42px;
    bottom: 25px;
    transform: rotate(-50deg);
}

.rose-mature .leaf:nth-child(3) {
    width: 38px;
    height: 48px;
    right: -42px;
    bottom: 25px;
    transform: rotate(50deg) scaleX(-1);
}

.rose-mature .leaf:nth-child(4) {
    width: 35px;
    height: 45px;
    left: -38px;
    bottom: 50px;
    transform: rotate(-40deg);
}

.rose-mature .plant-flower {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle at 30% 30%, #ff6b8a, #dc143c 40%, #8b0000);
    border-radius: 50%;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.3);
}

.rose-mature .plant-flower::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.6), transparent 70%);
    border-radius: 50%;
    top: -8px;
    left: -8px;
    transform: rotate(45deg);
}

.rose-mature .plant-flower::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #8b0000, #5d0000);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Sunflower - Large with petals */
.sunflower-seedling .plant-stem {
    width: 7px;
    height: 40px;
}

.sunflower-seedling .leaf:nth-child(2) {
    width: 24px;
    height: 32px;
    left: -28px;
    bottom: 6px;
    transform: rotate(-35deg);
}

.sunflower-young .plant-stem {
    width: 9px;
    height: 80px;
}

.sunflower-young .leaf:nth-child(2) {
    width: 35px;
    height: 48px;
    left: -38px;
    bottom: 15px;
    transform: rotate(-40deg);
}

.sunflower-young .leaf:nth-child(3) {
    width: 35px;
    height: 48px;
    right: -38px;
    bottom: 15px;
    transform: rotate(40deg) scaleX(-1);
}

.sunflower-mature .plant-stem {
    width: 10px;
    height: 120px;
}

.sunflower-mature .leaf:nth-child(2) {
    width: 45px;
    height: 60px;
    left: -48px;
    bottom: 20px;
    transform: rotate(-45deg);
}

.sunflower-mature .leaf:nth-child(3) {
    width: 45px;
    height: 60px;
    right: -48px;
    bottom: 20px;
    transform: rotate(45deg) scaleX(-1);
}

.sunflower-mature .leaf:nth-child(4) {
    width: 42px;
    height: 56px;
    left: -44px;
    bottom: 50px;
    transform: rotate(-35deg);
}

.sunflower-mature .plant-flower {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #8b4513 28%, #ffd700 28%, #ffed4e 45%, #ffd700);
    border-radius: 50%;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

.sunflower-mature .plant-flower::before {
    content: '';
    position: absolute;
    width: 85px;
    height: 85px;
    background: 
        radial-gradient(circle at 50% 0%, #ffd700 10%, transparent 10%),
        radial-gradient(circle at 85% 15%, #ffd700 10%, transparent 10%),
        radial-gradient(circle at 100% 50%, #ffd700 10%, transparent 10%),
        radial-gradient(circle at 85% 85%, #ffd700 10%, transparent 10%),
        radial-gradient(circle at 50% 100%, #ffd700 10%, transparent 10%),
        radial-gradient(circle at 15% 85%, #ffd700 10%, transparent 10%),
        radial-gradient(circle at 0% 50%, #ffd700 10%, transparent 10%),
        radial-gradient(circle at 15% 15%, #ffd700 10%, transparent 10%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

/* Lily - Star-shaped flower */
.lily-seedling .plant-stem {
    width: 6px;
    height: 40px;
}

.lily-seedling .leaf:nth-child(2) {
    width: 25px;
    height: 35px;
    left: -28px;
    bottom: 5px;
    transform: rotate(-50deg);
}

.lily-young .plant-stem {
    width: 7px;
    height: 80px;
}

.lily-young .leaf:nth-child(2) {
    width: 32px;
    height: 48px;
    left: -36px;
    bottom: 12px;
    transform: rotate(-52deg);
}

.lily-young .leaf:nth-child(3) {
    width: 32px;
    height: 48px;
    right: -36px;
    bottom: 12px;
    transform: rotate(52deg) scaleX(-1);
}

.lily-mature .plant-stem {
    width: 8px;
    height: 120px;
}

.lily-mature .leaf:nth-child(2) {
    width: 38px;
    height: 58px;
    left: -42px;
    bottom: 18px;
    transform: rotate(-55deg);
}

.lily-mature .leaf:nth-child(3) {
    width: 38px;
    height: 58px;
    right: -42px;
    bottom: 18px;
    transform: rotate(55deg) scaleX(-1);
}

.lily-mature .leaf:nth-child(4) {
    width: 36px;
    height: 54px;
    left: -38px;
    bottom: 45px;
    transform: rotate(-48deg);
}

.lily-mature .plant-flower {
    width: 65px;
    height: 60px;
    background: linear-gradient(to bottom, #ffcce0 0%, #ffb6d9 50%, #ff8ec7 100%);
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    top: -68px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 -8px 12px rgba(255, 105, 180, 0.4);
}

.lily-mature .plant-flower::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 15px;
    background: #ffd700;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

/* Daisy - Simple white petals */
.daisy-seedling .plant-stem {
    width: 5px;
    height: 35px;
}

.daisy-seedling .leaf:nth-child(2) {
    width: 18px;
    height: 25px;
    left: -22px;
    bottom: 4px;
    transform: rotate(-45deg);
}

.daisy-young .plant-stem {
    width: 6px;
    height: 75px;
}

.daisy-young .leaf:nth-child(2) {
    width: 26px;
    height: 38px;
    left: -30px;
    bottom: 10px;
    transform: rotate(-48deg);
}

.daisy-young .leaf:nth-child(3) {
    width: 26px;
    height: 38px;
    right: -30px;
    bottom: 10px;
    transform: rotate(48deg) scaleX(-1);
}

.daisy-mature .plant-stem {
    width: 7px;
    height: 110px;
}

.daisy-mature .leaf:nth-child(2) {
    width: 32px;
    height: 46px;
    left: -36px;
    bottom: 15px;
    transform: rotate(-50deg);
}

.daisy-mature .leaf:nth-child(3) {
    width: 32px;
    height: 46px;
    right: -36px;
    bottom: 15px;
    transform: rotate(50deg) scaleX(-1);
}

.daisy-mature .plant-flower {
    width: 48px;
    height: 48px;
    background: radial-gradient(circle, #ffeb3b 35%, #fff 35%, #f5f5f5);
    border-radius: 50%;
    top: -58px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.daisy-mature .plant-flower::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: 
        radial-gradient(ellipse 12px 18px at 50% 0%, white 70%, transparent 70%),
        radial-gradient(ellipse 18px 12px at 100% 50%, white 70%, transparent 70%),
        radial-gradient(ellipse 12px 18px at 50% 100%, white 70%, transparent 70%),
        radial-gradient(ellipse 18px 12px at 0% 50%, white 70%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Cactus - Segmented with spines */
.cactus-seedling .plant-stem {
    width: 24px;
    height: 32px;
    background: linear-gradient(to right, #2d8b2d, #3fa03f, #2d8b2d);
    border-radius: 12px;
}

.cactus-seedling .plant-stem::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 70% 25%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 50% 50%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 30% 75%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 70% 70%, transparent 2px, #1a5c1a 2px, transparent 3px);
}

.cactus-young .plant-stem {
    width: 28px;
    height: 65px;
    background: linear-gradient(to right, #2d8b2d, #3fa03f, #2d8b2d);
    border-radius: 14px;
}

.cactus-young .plant-stem::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 15%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 75% 20%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 50% 35%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 30% 55%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 70% 60%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 45% 80%, transparent 2px, #1a5c1a 2px, transparent 3px);
}

.cactus-mature .plant-stem {
    width: 32px;
    height: 105px;
    background: linear-gradient(to right, #2d8b2d, #3fa03f, #2d8b2d);
    border-radius: 16px;
}

.cactus-mature .plant-stem::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 35px;
    background: linear-gradient(to right, #2d8b2d, #3fa03f, #2d8b2d);
    border-radius: 10px;
    top: 25px;
    left: -12px;
    transform: rotate(-20deg);
}

.cactus-mature .plant-stem::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 12%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 75% 18%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 50% 30%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 30% 45%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 70% 52%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 45% 68%, transparent 2px, #1a5c1a 2px, transparent 3px),
        radial-gradient(circle at 60% 85%, transparent 2px, #1a5c1a 2px, transparent 3px);
}

/* Fern - Delicate fronds */
.fern-seedling .plant-stem {
    width: 4px;
    height: 35px;
}

.fern-seedling .leaf:nth-child(2) {
    width: 20px;
    height: 28px;
    left: -24px;
    bottom: 8px;
    transform: rotate(-60deg);
    background: linear-gradient(135deg, #7fb387 0%, #5a9862 100%);
}

.fern-young .plant-stem {
    width: 5px;
    height: 70px;
}

.fern-young .leaf:nth-child(2) {
    width: 28px;
    height: 42px;
    left: -30px;
    bottom: 15px;
    transform: rotate(-65deg);
    background: linear-gradient(135deg, #7fb387 0%, #5a9862 100%);
}

.fern-young .leaf:nth-child(3) {
    width: 28px;
    height: 42px;
    right: -30px;
    bottom: 15px;
    transform: rotate(65deg) scaleX(-1);
    background: linear-gradient(135deg, #7fb387 0%, #5a9862 100%);
}

.fern-young .leaf:nth-child(4) {
    width: 25px;
    height: 38px;
    left: -26px;
    bottom: 35px;
    transform: rotate(-55deg);
    background: linear-gradient(135deg, #7fb387 0%, #5a9862 100%);
}

.fern-mature .plant-stem {
    width: 6px;
    height: 110px;
}

.fern-mature .leaf:nth-child(2) {
    width: 36px;
    height: 52px;
    left: -38px;
    bottom: 18px;
    transform: rotate(-68deg);
    background: linear-gradient(135deg, #7fb387 0%, #5a9862 100%);
}

.fern-mature .leaf:nth-child(3) {
    width: 36px;
    height: 52px;
    right: -38px;
    bottom: 18px;
    transform: rotate(68deg) scaleX(-1);
    background: linear-gradient(135deg, #7fb387 0%, #5a9862 100%);
}

.fern-mature .leaf:nth-child(4) {
    width: 32px;
    height: 48px;
    left: -34px;
    bottom: 42px;
    transform: rotate(-58deg);
    background: linear-gradient(135deg, #7fb387 0%, #5a9862 100%);
}

.fern-mature .leaf:nth-child(5) {
    width: 32px;
    height: 48px;
    right: -34px;
    bottom: 42px;
    transform: rotate(58deg) scaleX(-1);
    background: linear-gradient(135deg, #7fb387 0%, #5a9862 100%);
}

.fern-mature .leaf:nth-child(6) {
    width: 28px;
    height: 42px;
    left: -30px;
    bottom: 68px;
    transform: rotate(-50deg);
    background: linear-gradient(135deg, #7fb387 0%, #5a9862 100%);
}

/* Orchid - Exotic multi-petal flower */
.orchid-seedling .plant-stem {
    width: 6px;
    height: 42px;
}

.orchid-seedling .leaf:nth-child(2) {
    width: 26px;
    height: 36px;
    left: -30px;
    bottom: 6px;
    transform: rotate(-42deg);
}

.orchid-young .plant-stem {
    width: 7px;
    height: 85px;
}

.orchid-young .leaf:nth-child(2) {
    width: 34px;
    height: 50px;
    left: -38px;
    bottom: 14px;
    transform: rotate(-46deg);
}

.orchid-young .leaf:nth-child(3) {
    width: 34px;
    height: 50px;
    right: -38px;
    bottom: 14px;
    transform: rotate(46deg) scaleX(-1);
}

.orchid-mature .plant-stem {
    width: 8px;
    height: 130px;
}

.orchid-mature .leaf:nth-child(2) {
    width: 40px;
    height: 60px;
    left: -44px;
    bottom: 20px;
    transform: rotate(-48deg);
}

.orchid-mature .leaf:nth-child(3) {
    width: 40px;
    height: 60px;
    right: -44px;
    bottom: 20px;
    transform: rotate(48deg) scaleX(-1);
}

.orchid-mature .leaf:nth-child(4) {
    width: 38px;
    height: 56px;
    left: -40px;
    bottom: 52px;
    transform: rotate(-42deg);
}

.orchid-mature .plant-flower {
    width: 58px;
    height: 58px;
    background: radial-gradient(ellipse at 30% 30%, #e0a0ff, #ba55d3 45%, #9370db);
    border-radius: 50%;
    top: -72px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(147, 112, 219, 0.4);
}

.orchid-mature .plant-flower::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 32px;
    background: linear-gradient(to bottom, #f0c0ff, #d896ff);
    border-radius: 50% 50% 20% 20%;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
}

.orchid-mature .plant-flower::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.stat-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--text);
}

.stat-icon {
    font-size: 1.1rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text);
}

.progress-bar-container {
    height: 8px;
    background: var(--surface-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.progress-water {
    background: var(--water);
}

.progress-sun {
    background: var(--sun);
}

.progress-happy {
    background: var(--health);
}

/* Care requirements */
.care-requirements {
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-top: 8px;
}

.care-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.care-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.care-item {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 4px 0;
}

/* Storage */
.storage-section {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border);
}

.storage-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.storage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.storage-item {
    background: var(--surface-light);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.storage-item:hover {
    border-color: var(--primary);
    background: var(--surface);
}

.storage-item.usable {
    border-color: var(--primary);
    background: rgba(45, 95, 63, 0.05);
}

.storage-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.storage-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.storage-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--secondary);
}

.btn-tertiary {
    background: var(--surface-dark);
    color: var(--text);
}

.btn-tertiary:hover {
    background: var(--border);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #8a2828;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 4px 8px;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* CENTER PANEL - Garden */
.garden-section {
    display: flex;
    flex-direction: column;
}

.mission-banner {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mission-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
}

.mission-progress-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

/* Plant grid */
.plants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 16px;
    flex: 1;
    margin-bottom: 16px;
    max-height: 680px;
    overflow-y: auto;
    padding-right: 8px;
}

.plants-grid::-webkit-scrollbar {
    width: 6px;
}

.plants-grid::-webkit-scrollbar-track {
    background: var(--surface-dark);
    border-radius: var(--radius-sm);
}

.plants-grid::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: var(--radius-sm);
}

/* Plant cards */
.plant-card {
    background: var(--surface-light);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plant-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.plant-card.selected {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.plant-card.empty {
    background: var(--surface);
    border: 1px dashed var(--border-dark);
    cursor: default;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plant-card.empty:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-dark);
}

.plant-card.needs-care {
    border-color: var(--warning);
    background: rgba(184, 134, 11, 0.03);
}

.empty-slot-content {
    text-align: center;
    color: var(--text-muted);
}

.empty-slot-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.plant-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.plant-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.plant-action-btn {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: var(--transition);
    color: var(--text-secondary);
}

.plant-action-btn:hover {
    background: var(--surface);
}

.plant-action-btn.edit-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.plant-action-btn.remove-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.plant-icon {
    font-size: 2.5rem;
}

.plant-info {
    flex: 1;
}

.plant-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.plant-stage {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--surface-dark);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.plant-stats-mini {
    display: flex;
    gap: 6px;
}

.mini-stat {
    flex: 1;
    background: var(--surface);
    padding: 8px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.mini-stat-icon {
    font-size: 1rem;
    margin-bottom: 2px;
}

.mini-stat-value {
    font-weight: 600;
    color: var(--text);
}

/* Bottom stats */
.bottom-stats {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.goal-card {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.goal-label {
    font-size: 0.875rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.goal-progress {
    height: 24px;
    background: var(--surface-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.goal-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.5s ease;
}

.goal-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.coins-card {
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
}

.coins-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.coins-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 4px;
}

/* RIGHT PANEL - Store */
.store-section {
    display: flex;
    flex-direction: column;
    max-height: 900px;
}

.store-category {
    margin-bottom: 20px;
}

.category-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 650px;
    padding-right: 8px;
}

.store-items::-webkit-scrollbar {
    width: 6px;
}

.store-items::-webkit-scrollbar-track {
    background: var(--surface-dark);
    border-radius: var(--radius-sm);
}

.store-items::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: var(--radius-sm);
}

.store-item {
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.store-item:hover {
    border-color: var(--primary);
    background: var(--surface-light);
}

.store-item h4 {
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
}

.store-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-icon {
    font-size: 1.5rem;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* ACHIEVEMENTS */
.achievements-section {
    grid-column: 1 / -1;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.achievement-item {
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.achievement-item.unlocked {
    border-color: var(--primary);
    background: rgba(45, 95, 63, 0.05);
}

.achievement-item.locked {
    opacity: 0.5;
}

.achievement-item.unlocked:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.achievement-icon {
    font-size: 2rem;
}

.achievement-item.locked .achievement-icon {
    filter: grayscale(1);
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.achievement-progress {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.modal-body {
    margin-bottom: 24px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Activity list */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    background: var(--surface);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.activity-item:hover {
    border-color: var(--primary);
    background: var(--surface-light);
}

.activity-text {
    font-size: 0.875rem;
    color: var(--text);
}

.activity-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
}

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-entry {
    background: var(--surface);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.leaderboard-entry:hover {
    background: var(--surface-light);
}

.leaderboard-entry.current-user {
    border-color: var(--primary);
    background: rgba(45, 95, 63, 0.05);
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    background: var(--surface-dark);
    border: 1px solid var(--border);
}

.rank-badge.gold {
    background: #f4d03f;
    color: #7d6608;
    border-color: #d4af37;
}

.rank-badge.silver {
    background: #d5d5d5;
    color: #505050;
    border-color: #a8a8a8;
}

.rank-badge.bronze {
    background: #cd7f32;
    color: white;
    border-color: #a86428;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}

.carbon-amount {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Summary */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.summary-item {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
}

.summary-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.summary-chart {
    margin-top: 20px;
}

.summary-chart h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.chart-container {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chart-bar {
    flex: 1;
    background: var(--primary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 10px;
    position: relative;
    transition: var(--transition);
}

.chart-bar:hover {
    background: var(--primary-dark);
}

.chart-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    color: var(--text-muted);
}

.chart-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text);
}

/* Settings */
.settings-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.settings-group:last-child {
    border-bottom: none;
}

.settings-group h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.settings-group p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Inputs */
.text-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface-light);
    transition: var(--transition);
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.confirm-message {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
}

.confirm-message strong {
    color: var(--text);
    font-weight: 600;
}

/* Notifications */
#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.notification.error {
    border-color: var(--danger);
    background: rgba(168, 50, 50, 0.05);
}

.notification.success {
    border-color: var(--success);
    background: rgba(74, 124, 89, 0.05);
}

.notification-icon {
    font-size: 1.25rem;
}

.notification-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1400px) {
    .main-layout {
        grid-template-columns: 1fr 1fr;
    }

    .garden-section {
        grid-column: 1 / -1;
    }

    .plants-grid {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .plants-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .bottom-stats {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .plant-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Fix header border issue */
.dashboard-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-radius: 0 0 15px 15px; /* Add this line */
    border-bottom: 3px solid var(--primary-green); /* Add subtle bottom border */
}

/* Fix profile dropdown positioning */
.profile-dropdown {
    position: absolute;
    top: 80px; /* Adjust this value - increased from '100%' */
    right: 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 280px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid var(--border); /* Add border */
}

/* Make sure user-profile has relative positioning */
.user-profile {
    margin-left: 10px;
    position: relative; /* Add this */
}

/* Fix profile image display */
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* When image is loaded, show it */
.profile-image[src] {
    display: block;
}

/* Same for dropdown image */
.dropdown-profile-image[src] {
    display: block;
}
