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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
}

/* Enter Code Overlay */
.enter-code-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.overlay-content {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.overlay-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.overlay-subtitle {
    font-size: 16px;
    color: #8a8a8a;
    margin-bottom: 40px;
    font-weight: 400;
}

.code-input-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.code-input {
    width: 50px;
    height: 50px;
    background: rgba(30, 30, 40, 0.8);
    border: 2px solid rgba(76, 175, 80, 0.5);
    border-radius: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: rgba(76, 175, 80, 0.8);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.1);
}

.code-input.error {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.3);
    animation: pulse-red 0.3s ease-in-out;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 15px rgba(244, 67, 54, 0.3); }
    50% { box-shadow: 0 0 25px rgba(244, 67, 54, 0.6); }
    100% { box-shadow: 0 0 15px rgba(244, 67, 54, 0.3); }
}

.code-input-container.shake {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.proceed-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.proceed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.proceed-btn.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border-color: rgba(244, 67, 54, 0.8);
    animation: button-error-pulse 0.3s ease-in-out;
}

@keyframes button-error-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.get-code-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #66bb6a, #81c784);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.get-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 187, 106, 0.4);
}

/* Buy Herb Button */
.buy-herb-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 25px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.buy-herb-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    border-color: rgba(76, 175, 80, 0.8);
    background: linear-gradient(135deg, #66bb6a, #81c784);
}

/* Overlay Creator Credit */
.overlay-creator-credit {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    pointer-events: none;
}

.dashboard {
    display: flex;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
}

/* Top Right Wallet Button */
.top-wallet-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2a2a3e, #3a3a4e);
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 25px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.top-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.8);
    background: linear-gradient(135deg, #3a3a4e, #4a4a5e);
}

.top-wallet-btn i {
    font-size: 16px;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(76, 175, 80, 0.3);
    padding: 20px 0;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8a8a8a;
}

.nav-item:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.nav-item i {
    font-size: 18px;
    width: 20px;
}

.nav-item span {
    font-weight: 500;
    font-size: 14px;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.top-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.nav-tab:first-child {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    border: 1px solid rgba(156, 39, 176, 0.6);
}

.nav-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.nav-tab i {
    font-size: 16px;
}

.nav-tab span {
    font-weight: 600;
    font-size: 14px;
}

/* Resources Section */
.resources-section {
    max-width: 800px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #4caf50;
}

.section-title i {
    font-size: 28px;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.resource-card {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.6);
}

.resource-value {
    font-size: 28px;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.resource-label {
    font-size: 12px;
    font-weight: 600;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.blockchain-stats,
.growing-stats {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.stats-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-title i {
    font-size: 18px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.stat-label {
    color: #8a8a8a;
    font-weight: 500;
}

.stat-value {
    color: #4caf50;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Growing Facility */
.growing-facility {
    width: 400px;
    background: rgba(20, 20, 30, 0.95);
    border-left: 1px solid rgba(76, 175, 80, 0.3);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.facility-header {
    margin-bottom: 30px;
}

.facility-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #4caf50;
}

.facility-title i {
    font-size: 24px;
}

.facility-display {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 15px;
    padding: 30px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.isometric-view {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.planter-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    transform: rotateX(45deg) rotateY(-15deg);
}

.planter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.planter {
    width: 60px;
    height: 60px;
    background: rgba(40, 40, 50, 0.9);
    border: 2px solid rgba(76, 175, 80, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.planter.empty {
    border-color: rgba(100, 100, 100, 0.3);
    background: rgba(30, 30, 35, 0.7);
}

.planter.active {
    border-color: rgba(76, 175, 80, 0.8);
    background: rgba(76, 175, 80, 0.1);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.planter:hover {
    transform: translateZ(10px);
    border-color: rgba(76, 175, 80, 0.8);
}

.plant-sprite {
    font-size: 24px;
    filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.5));
    animation: grow 2s ease-in-out infinite alternate;
}

@keyframes grow {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .growing-facility {
        width: 300px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .overlay-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .overlay-title {
        font-size: 24px;
    }
    
    .code-input-container {
        gap: 10px;
    }
    
    .code-input {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .overlay-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .connect-wallet-btn {
        font-size: 14px;
        padding: 12px;
    }
    
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        padding: 10px 0;
    }
    
    .sidebar-content {
        flex-direction: row;
        overflow-x: auto;
        gap: 5px;
        padding: 0 10px;
    }
    
    .nav-item {
        flex-shrink: 0;
        padding: 10px 15px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .growing-facility {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid rgba(76, 175, 80, 0.3);
    }
    
    .main-content {
        padding: 20px;
    }
}