/* =================================================================
   AQUARIUM SECTION STYLES
   ================================================================= */

/* Aquarium Section Layout */
#aquarium-section {
    padding: 20px;
    background: linear-gradient(180deg, #0a1f3f 0%, #051226 100%);
    min-height: 100%;
    overflow-y: auto;
}

#aquarium-area {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Main Aquarium Tank */
.aquarium-tank {
    flex: 1;
    background: linear-gradient(180deg, #87ceeb 0%, #4682b4 50%, #191970 100%);
    border: 8px solid #2c1810;
    border-radius: 15px;
    position: relative;
    min-height: 400px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 30px rgba(135, 206, 235, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Water Effects */
.aquarium-tank::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, 
        rgba(135, 206, 235, 0.6) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(135, 206, 235, 0.6) 100%);
    animation: waterSurface 3s ease-in-out infinite;
}

@keyframes waterSurface {
    0%, 100% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
}

/* Fish Container */
.fish-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Individual Fish */
.fish {
    position: absolute;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.fish:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

/* Fish Swimming Animations - Natural movement patterns */
@keyframes swimPattern1 {
    0% { 
        transform: translate(-30px, 20px) scaleX(-1);
    }
    25% { 
        transform: translate(150px, -15px) scaleX(-1); /* движется вправо - смотрит вправо */
    }
    50% { 
        transform: translate(120px, 80px) scaleX(-1); /* все еще правее центра */
    }
    75% { 
        transform: translate(-20px, 60px) scaleX(1); /* движется влево - смотрит влево */
    }
    100% { 
        transform: translate(-30px, 20px) scaleX(1); /* движется влево */
    }
}

@keyframes swimPattern2 {
    0% { 
        transform: translate(200px, 10px) scaleX(-1);
    }
    25% { 
        transform: translate(50px, 40px) scaleX(1); /* движется влево - смотрит влево */
    }
    50% { 
        transform: translate(-10px, 90px) scaleX(1); /* продолжает влево */
    }
    75% { 
        transform: translate(180px, 120px) scaleX(-1); /* движется вправо - смотрит вправо */
    }
    100% { 
        transform: translate(200px, 10px) scaleX(-1); /* движется вправо */
    }
}

@keyframes swimPattern3 {
    0% { 
        transform: translate(100px, 5px) scaleX(-1);
    }
    20% { 
        transform: translate(200px, 30px) scaleX(-1); /* движется вправо */
    }
    40% { 
        transform: translate(160px, 100px) scaleX(1); /* движется влево */
    }
    60% { 
        transform: translate(20px, 85px) scaleX(1); /* продолжает влево */
    }
    80% { 
        transform: translate(-15px, 35px) scaleX(1); /* еще влево */
    }
    100% { 
        transform: translate(100px, 5px) scaleX(-1); /* движется вправо */
    }
}

@keyframes swimPattern4 {
    0% { 
        transform: translate(80px, 110px) scaleX(-1);
    }
    25% { 
        transform: translate(220px, 25px) scaleX(-1); /* движется вправо */
    }
    50% { 
        transform: translate(40px, 15px) scaleX(1); /* движется влево */
    }
    75% { 
        transform: translate(-25px, 75px) scaleX(1); /* продолжает влево */
    }
    100% { 
        transform: translate(80px, 110px) scaleX(-1); /* движется вправо */
    }
}

@keyframes swimPattern5 {
    0% { 
        transform: translate(150px, 50px) scaleX(-1);
    }
    15% { 
        transform: translate(190px, 20px) scaleX(-1); /* движется вправо */
    }
    30% { 
        transform: translate(160px, -10px) scaleX(1); /* движется влево */
    }
    45% { 
        transform: translate(70px, 30px) scaleX(1); /* продолжает влево */
    }
    60% { 
        transform: translate(10px, 80px) scaleX(1); /* еще влево */
    }
    75% { 
        transform: translate(40px, 120px) scaleX(-1); /* движется вправо */
    }
    90% { 
        transform: translate(120px, 100px) scaleX(-1); /* продолжает вправо */
    }
    100% { 
        transform: translate(150px, 50px) scaleX(-1); /* движется вправо */
    }
}

/* Different fish animation patterns */
.fish:nth-child(1) {
    animation: swimPattern1 25s ease-in-out infinite;
    animation-delay: 0s;
}

.fish:nth-child(2) {
    animation: swimPattern2 30s ease-in-out infinite;
    animation-delay: -5s;
}

.fish:nth-child(3) {
    animation: swimPattern3 22s ease-in-out infinite;
    animation-delay: -8s;
}

.fish:nth-child(4) {
    animation: swimPattern4 28s ease-in-out infinite;
    animation-delay: -12s;
}

.fish:nth-child(5) {
    animation: swimPattern5 32s ease-in-out infinite;
    animation-delay: -16s;
}

.fish:nth-child(6) {
    animation: swimPattern2 26s ease-in-out infinite;
    animation-delay: -20s;
}

.fish:nth-child(7) {
    animation: swimPattern1 24s ease-in-out infinite;
    animation-delay: -24s;
}

.fish:nth-child(8) {
    animation: swimPattern3 29s ease-in-out infinite;
    animation-delay: -28s;
}

.fish:nth-child(9) {
    animation: swimPattern4 27s ease-in-out infinite;
    animation-delay: -32s;
}

.fish:nth-child(10) {
    animation: swimPattern5 31s ease-in-out infinite;
    animation-delay: -36s;
}

/* Decorations Container */
.decorations-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    height: 100px;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    z-index: 5;
    pointer-events: none;
}

.decorations-container .decoration-slot {
    pointer-events: all;
}

/* Decoration Slots */
.decoration-slot {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(139, 69, 19, 0.3);
    border: 2px dashed #8b4513;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    bottom: 0;
    margin: 0 5px;
    z-index: 10;
    user-select: none;
    pointer-events: all;
}

.decoration-slot:hover {
    background: rgba(139, 69, 19, 0.5);
    border-color: #cd853f;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(205, 133, 63, 0.5);
}

.decoration-slot.occupied {
    background: transparent;
    border: none;
    cursor: default;
}

.decoration-slot.occupied:hover {
    transform: none;
    box-shadow: none;
}

/* Slot hint icon */
.slot-hint {
    font-size: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.decoration-slot:hover .slot-hint {
    opacity: 1;
    transform: scale(1.1);
}

.decoration-slot.occupied .slot-hint {
    display: none;
}

/* Sell indicator for occupied slots */
.sell-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    background: rgba(218, 165, 32, 0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 15;
}

.decoration-slot.occupied:hover .sell-indicator {
    opacity: 1;
}

/* Decoration Items */
.decoration {
    font-size: 30px;
    animation: sway 4s ease-in-out infinite;
}

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

/* Aquarium Info Panel */
.aquarium-info {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #8b4513;
    border-radius: 10px;
    padding: 15px;
    color: #e0d0c0;
}

.aquarium-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.stat-icon {
    font-size: 16px;
}

.stat-value {
    font-weight: bold;
    color: #daa520;
}

/* Shop Dialogs */
.shop-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #2c1810, #1a0f0a);
    border: 3px solid #8b4513;
    border-radius: 15px;
    padding: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    color: #e0d0c0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b4513;
}

.shop-title {
    font-size: 20px;
    font-weight: bold;
    color: #daa520;
}

.close-btn {
    background: #654321;
    color: #e0d0c0;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.close-btn:hover {
    background: #8b4513;
}

/* Shop Items Grid */
.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.shop-item {
    background: rgba(139, 69, 19, 0.2);
    border: 2px solid #8b4513;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-item:hover {
    background: rgba(139, 69, 19, 0.4);
    border-color: #cd853f;
    transform: translateY(-2px);
}

.shop-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-item.disabled:hover {
    transform: none;
    background: rgba(139, 69, 19, 0.2);
    border-color: #8b4513;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-icon {
    font-size: 24px;
}

.item-name {
    font-weight: bold;
    color: #f5deb3;
}

.item-description {
    font-size: 12px;
    color: #d2b48c;
    line-height: 1.4;
}

.item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #654321;
    border-radius: 5px;
    padding: 8px;
    font-weight: bold;
    color: #daa520;
}

.item-owned {
    background: #2d5a2d;
    color: #90ee90;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    font-weight: bold;
}

/* Bubbles Animation */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    animation: bubble-rise 6s linear infinite;
}

@keyframes bubble-rise {
    0% {
        bottom: -50px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #aquarium-section {
        padding: 10px;
    }
    
    .aquarium-tank {
        min-height: 300px;
    }
    
    .decoration-slot {
        width: 40px;
        height: 40px;
    }
    
    .decoration {
        font-size: 20px;
    }
    
    .fish {
        font-size: 24px;
    }
    
    .shop-dialog {
        max-width: 90vw;
        padding: 15px;
    }
    
    .shop-items {
        grid-template-columns: 1fr;
    }
}

/* 1. Top panel selector styling (make same as upgrade-selector) */
#aquarium-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
    padding: 10px 15px;
    color: white;
}

#aquarium-selector .upgrade-btn {
    color: white;
}

#aquarium-selector .upgrade-name {
    color: white;
}

/* 4. Add sand layer at bottom of tank */
.aquarium-sand {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(0deg, #a68d5d 0%, #c2b280 60%, #e0cda5 100%);
    border-top: 3px solid #8b4513;
    z-index: 0;
}

/* Beautiful Message Modals */
.aquarium-message-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.aquarium-message-modal {
    background: linear-gradient(135deg, #2c1810, #1a0f0a);
    border: 3px solid #8b4513;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    min-width: 300px;
    text-align: center;
    color: #e0d0c0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.4s ease-out;
    position: relative;
}

.aquarium-message-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.aquarium-message-title {
    font-size: 20px;
    font-weight: bold;
    color: #daa520;
    margin-bottom: 10px;
}

.aquarium-message-text {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #d2b48c;
}

.aquarium-message-btn {
    background: linear-gradient(135deg, #654321, #8b4513);
    color: #e0d0c0;
    border: 2px solid #8b4513;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.aquarium-message-btn:hover {
    background: linear-gradient(135deg, #8b4513, #cd853f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.aquarium-message-btn:active {
    transform: translateY(0);
}

.aquarium-message-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #cd853f;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.aquarium-message-close:hover {
    color: #daa520;
}

/* Success message styling */
.aquarium-message-modal.success {
    border-color: #32cd32;
}

.aquarium-message-modal.success .aquarium-message-title {
    color: #32cd32;
}

/* Info message styling */
.aquarium-message-modal.info {
    border-color: #87ceeb;
}

.aquarium-message-modal.info .aquarium-message-title {
    color: #87ceeb;
}

/* Warning message styling */
.aquarium-message-modal.warning {
    border-color: #ffa500;
}

.aquarium-message-modal.warning .aquarium-message-title {
    color: #ffa500;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =================================================================
   SELL DIALOG STYLES
   ================================================================= */

.sell-dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.sell-dialog-modal {
    background: linear-gradient(135deg, #2c1810, #1a0f0a);
    border: 3px solid #8b4513;
    border-radius: 15px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
    color: #e0d0c0;
}

.sell-dialog-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8b4513;
}

.sell-dialog-icon {
    font-size: 32px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.sell-dialog-title {
    font-size: 20px;
    font-weight: bold;
    color: #daa520;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.sell-dialog-content {
    margin-bottom: 25px;
}

.decoration-info {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.decoration-name {
    font-size: 18px;
    font-weight: bold;
    color: #daa520;
    margin-bottom: 5px;
}

.decoration-description {
    font-size: 14px;
    color: #c0b0a0;
    font-style: italic;
}

.sell-price-info {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(184, 134, 11, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.price-label {
    font-size: 14px;
    color: #c0b0a0;
    margin-bottom: 8px;
}

.sell-price {
    font-size: 24px;
    font-weight: bold;
    color: #daa520;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.price-note {
    font-size: 12px;
    color: #a0a0a0;
    font-style: italic;
}

.sell-dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.sell-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    min-width: 120px;
}

.confirm-sell {
    background: linear-gradient(135deg, #228b22, #006400);
    color: white;
    border: 2px solid #32cd32;
}

.confirm-sell:hover {
    background: linear-gradient(135deg, #32cd32, #228b22);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(50, 205, 50, 0.3);
}

.cancel-sell {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    color: white;
    border: 2px solid #ff6347;
}

.cancel-sell:hover {
    background: linear-gradient(135deg, #ff6347, #dc143c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.sell-btn:active {
    transform: translateY(0);
}

/* =================================================================
   FISH INVENTORY STYLES
   ================================================================= */

.inventory-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #2c1810, #1a0f0a);
    border: 3px solid #8b4513;
    border-radius: 15px;
    padding: 25px;
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    overflow-y: auto;
    z-index: 1000;
    color: #e0d0c0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    animation: inventorySlideIn 0.35s ease-out;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8b4513;
}

.inventory-title {
    font-size: 20px;
    font-weight: bold;
    color: #daa520;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.inventory-stats {
    background: rgba(139, 69, 19, 0.2);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stat-row:last-child {
    margin-bottom: 15px;
}

.stat-label {
    font-size: 14px;
    color: #c0b0a0;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #daa520;
}

.capacity-bar {
    position: relative;
    height: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #8b4513;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #228b22, #32cd32);
    transition: width 0.3s ease;
    border-radius: 12px;
}

.capacity-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.inventory-content {
    max-height: 400px;
    overflow-y: auto;
}

.empty-inventory {
    text-align: center;
    padding: 40px 20px;
    color: #a0a0a0;
    font-size: 16px;
    line-height: 1.5;
}

.inventory-fish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.inventory-fish-item:hover {
    border-color: rgba(218, 165, 32, 0.5);
    background: rgba(139, 69, 19, 0.1);
}

.fish-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.fish-icon {
    font-size: 32px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.fish-details {
    flex: 1;
}

.fish-name {
    font-size: 16px;
    font-weight: bold;
    color: #daa520;
    margin-bottom: 5px;
}

.fish-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #c0b0a0;
}

.fish-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.sell-price {
    font-size: 12px;
    color: #daa520;
    font-weight: bold;
    text-align: right;
}

.sell-fish-btn, .sell-all-fish-btn {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    color: white;
    border: 2px solid #ff6347;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.sell-fish-btn:hover, .sell-all-fish-btn:hover {
    background: linear-gradient(135deg, #ff6347, #dc143c);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 20, 60, 0.3);
}

.sell-all-fish-btn {
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    border-color: #ffa500;
}

.sell-all-fish-btn:hover {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.3);
}

.sell-fish-btn:active, .sell-all-fish-btn:active {
    transform: translateY(0);
}

/* Responsive design for inventory */
@media (max-width: 768px) {
    .inventory-dialog {
        max-width: 95vw;
        padding: 20px;
    }
    
    .inventory-fish-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .fish-info {
        justify-content: center;
    }
    
    .fish-actions {
        align-items: center;
        width: 100%;
    }
    
    .sell-fish-btn, .sell-all-fish-btn {
        width: 100%;
        max-width: 200px;
    }
}

@keyframes inventorySlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Income Timer Styles */
.income-timer-container {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 2px solid #4a90e2;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 
        0 4px 15px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.timer-icon {
    font-size: 18px;
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.timer-label {
    font-size: 14px;
    font-weight: 600;
    color: #e8f4fd;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.timer-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #2196F3 0%, #21CBF3 100%);
    border-radius: 4px;
    transition: width 0.3s ease, background 0.2s ease;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.timer-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 50px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.timer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.next-income-amount {
    font-weight: bold;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.timer-note {
    font-size: 10px;
    color: #999;
    margin-left: 5px;
}

/* Income flash animation */
@keyframes incomeFlash {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Animated flash for income updates */
.timer-info.flash {
    animation: incomeFlash 1s ease-in-out;
}

/* Resource Animation */
@keyframes resourceGain {
    0% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-5px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.8; }
}

/* Updated inventory stats styling */
.inventory-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.inventory-stats .stat-icon {
    font-size: 16px;
}

.inventory-stats .stat-label {
    font-size: 13px;
    color: #e8f4fd;
}

.inventory-stats .stat-value {
    font-weight: bold;
    color: #ffffff;
    margin-left: auto;
}

/* Inventory actions styling */
.inventory-actions {
    padding: 15px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.inventory-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.inventory-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.inventory-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.inventory-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.inventory-btn:disabled:hover {
    background: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Timer Resources Display */
.timer-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    max-width: 100%;
}

.timer-resource {
    font-size: 10px;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    animation: resourceGain 2s ease-in-out infinite;
    white-space: nowrap;
}

.timer-resource:nth-child(even) {
    animation-delay: 0.5s;
}

/* Income Stats Bar */