:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #06b6d4;
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1,
h2 {
    color: var(--primary-dark);
    font-weight: 700;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

input:focus,
select:focus {
    border-color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-block {
    display: block;
    width: 100%;
}

.bottom-nav {
    position: fixed;
    bottom: 20px;
    /* Floating effect */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 12px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
    transition: transform 0.3s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-4px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
}

/* Adjust container padding to prevent content being hidden behind floating nav */
body {
    padding-bottom: 100px;
}

/* Fish Grid */
.fish-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.fish-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
}

.fish-item.selected {
    border-color: var(--primary);
}

.fish-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.fish-name {
    padding: 10px 5px;
    font-weight: 600;
}

/* Cart Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Receipt Styles (Printing) */
@media print {
    body * {
        visibility: hidden;
    }

    #receipt,
    #receipt * {
        visibility: visible;
    }

    #receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 58mm;
        /* Standard 58mm printer width */
        font-family: 'Courier New', Courier, monospace;
        font-size: 12px;
        color: black;
        background: white;
        padding: 0;
    }

    header,
    .bottom-nav,
    .btn,
    .no-print {
        display: none !important;
    }
}

#receipt {
    width: 250px;
    /* visual preview */
    margin: 0 auto;
    background: white;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', Courier, monospace;
}