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

body {
    font-family: 'Inter', sans-serif;
    background: #162343;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.dashboard-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 24px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn-sos{
    background: rgba(255, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.8);
    border-radius: 25px;
    padding: 12px 24px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 150px);
}

/* Welcome Card */
.welcome-card {
    background-image: url('fish.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    grid-row: span 1;
    animation: slideInLeft 0.8s ease-out;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 5px;
}

.user-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #a8c8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 5px;
}

.record-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.record-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.jellyfish-container {
    width: 100
    5;
    height: auto;
}


/* Market Value Card */
.market-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    animation: slideInRight 0.8s ease-out;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.market-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.market-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.market-item:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.fish-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.fish-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

/* Population Chart Card */
.population-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    animation: slideInUp 0.8s ease-out;
}

.population-header {
    margin-bottom: 20px;
}

.population-subtitle {
    color: #00d4aa;
    font-size: 14px;
    font-weight: 500;
}

.chart-container {
    height: 200px;
    position: relative;
}

/* Bar Chart Card */
.bar-chart-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* Weather Card */
.weather-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.weather-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.weather-subtitle {
    color: #00d4aa;
    font-size: 14px;
    margin-bottom: 20px;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.weather-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.weather-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.weather-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    position: relative;
}

.weather-icon.sunny {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.weather-icon.cloudy {
    background: linear-gradient(135deg, #87ceeb, #4682b4);
}

.weather-temp {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.weather-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes jellyfishFloat {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }
    50% {
        transform: translateY(-60%) rotate(2deg);
    }
}

@keyframes jellyfishTentacle1 {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

@keyframes jellyfishTentacle2 {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-8deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .weather-card {
        grid-column: span 1;
    }

    .weather-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-buttons {
        justify-content: center;
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .dashboard-container {
        padding: 15px;
    }

    .main-grid {
        gap: 15px;
        height: auto;
    }

    .weather-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .market-grid {
        grid-template-columns: 1fr;
    }

    .jellyfish-container {
        display: none;
    }
}