:root {
    --bg-color: #001f3f;
    --primary-blue: #0074D9;
    --cyan: #7FDBFF;
    --text-main: #FFFFFF;
    --text-muted: #B3D4FF;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #001122 0%, #003366 50%, #001f3f 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Bubbles */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rise infinite ease-in;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        bottom: 1080px;
        transform: translateX(-100px);
        opacity: 0;
    }
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* Header */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0, 17, 34, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(to right, #7FDBFF, #0074D9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.logo .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 300;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
}

.primary-btn {
    background: linear-gradient(135deg, #0074D9, #39CCCC);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 116, 217, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 116, 217, 0.6);
}

.delete-btn {
    background: rgba(255, 65, 54, 0.2);
    color: #FF4136;
    border: 1px solid rgba(255, 65, 54, 0.4);
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.delete-btn:hover {
    background: rgba(255, 65, 54, 0.4);
}

.edit-btn {
    background: rgba(255, 133, 27, 0.2);
    color: #FF851B;
    border: 1px solid rgba(255, 133, 27, 0.4);
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.edit-btn:hover {
    background: rgba(255, 133, 27, 0.4);
}

/* Main Container */
.container {
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.info-section {
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.info-section h2 {
    color: var(--cyan);
    margin-bottom: 15px;
    font-size: 28px;
}

.info-section p {
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Fish Grid */
.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.fish-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.fish-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(127, 219, 255, 0.2);
}

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

.fish-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fish-details h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

.detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-muted);
}

.detail-row span.icon {
    margin-right: 10px;
    font-size: 18px;
}

.detail-row strong {
    color: var(--cyan);
    margin-right: 5px;
}

.card-actions {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal {
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal {
    transform: scale(0.9);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
}

.close-btn:hover {
    color: #fff;
}

.modal h2 {
    margin-bottom: 25px;
    color: var(--cyan);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--cyan);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .container {
        padding: 20px;
    }
}