/* Neumorphism Theme - Soft UI */
:root {
    --bg-color: #e0e5ec;
    --text-primary: #4a4a4a;
    --text-secondary: #888;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --accent-color: #6d5dfc;
}

body {
    background-color: var(--bg-color);
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Neumorphic Mixin */
.neu-panel {
    border-radius: 20px;
    background: var(--bg-color);
    box-shadow: 9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
}

.neu-inset {
    border-radius: 15px;
    background: var(--bg-color);
    box-shadow: inset 6px 6px 10px var(--shadow-dark),
        inset -6px -6px 10px var(--shadow-light);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-bottom: 40px;
    border-radius: 30px;
    background: var(--bg-color);
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
}

.logo-image {
    height: 40px;
    border-radius: 10px;
}

/* Navigation */
.view-switcher-container {
    position: relative;
}

.view-menu-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--bg-color);
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    color: var(--accent-color);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.view-menu-btn:active {
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
}

.view-menu {
    position: absolute;
    top: 130%;
    right: 0;
    background: var(--bg-color);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    min-width: 220px;
    display: none;
    z-index: 100;
}

.view-menu.show {
    display: block;
}

.view-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 12px;
    transition: all 0.2s;
}

.view-link:hover {
    background: var(--bg-color);
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    color: var(--accent-color);
}

.view-link.active {
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    color: var(--accent-color);
    font-weight: bold;
}

/* Status */
.status-section {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
}

.status-label {
    color: var(--text-secondary);
}

/* Content */
.table-title {
    text-align: center;
    font-size: 2em;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 800;
}

.scrolling-text-container {
    padding: 15px;
    margin-bottom: 40px;
    border-radius: 15px;
    background: var(--bg-color);
    box-shadow: inset 6px 6px 10px var(--shadow-dark), inset -6px -6px 10px var(--shadow-light);
}

.scrolling-text span {
    margin-right: 40px;
    color: var(--text-secondary);
}

/* Cards Grid */
.table-data-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.data-row {
    border-radius: 25px;
    background: var(--bg-color);
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    position: relative;
}

.data-row:hover {
    transform: translateY(-5px);
}

.data-cell {
    display: flex;
}

/* Product Name */
.data-cell:nth-child(1) {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Buy Price */
.data-cell:nth-child(2) {
    font-size: 2em;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: center;
    justify-content: center;
}

/* Sell Price */
.data-cell:nth-child(3) {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 25px;
    justify-content: center;
}

/* High/Low */
.data-cell:nth-child(4) {
    border-radius: 15px;
    background: var(--bg-color);
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    padding: 15px;
    margin-top: auto;
}

.high-low-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9em;
}

.high-price {
    color: #ff6b6b;
}

.low-price {
    color: #1dd1a1;
}

/* Time */
.data-cell:nth-child(5) {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 0.8em;
    color: var(--text-secondary);
}

/* Merchant Info */
.merchant-info {
    margin-top: 60px;
    border-radius: 30px;
    background: var(--bg-color);
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    padding: 40px;
}

.merchant-header {
    text-align: center;
    margin-bottom: 30px;
}

.merchant-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-color);
}

.merchant-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.merchant-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.merchant-label {
    font-weight: 700;
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 10px;
    background: var(--bg-color);
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}

.qr-section {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.qr-container {
    display: flex;
    gap: 40px;
}

.qr-image {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    padding: 10px;
    background: var(--bg-color);
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
}

.qr-text {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.copyright-section {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .merchant-content {
        grid-template-columns: 1fr;
    }

    .status-section {
        display: none;
    }
}