/* 公開頁面樣式 - Shadcn/ui Inspired */

:root {
    --gpm-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --gpm-radius: 0.5rem;
}

/* Container */
.gpm-price-display {
    border: 1px solid #e2e8f0;
    /* slate-200 */
    border-radius: var(--gpm-radius);
    background: #ffffff;
    padding: 24px;
    max-width: 350px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-family: var(--gpm-font-sans);
    color: #020817;
    /* slate-950 */
}

.gpm-price-display.gpm-gold {
    border-top: 4px solid #F59E0B;
    /* amber-500 */
}

.gpm-price-display.gpm-platinum {
    border-top: 4px solid #64748b;
    /* slate-500 */
}

/* Price Row */
.gpm-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    /* slate-100 */
}

.gpm-price-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gpm-label {
    font-size: 0.875rem;
    color: #64748b;
    /* slate-500 */
    font-weight: 500;
}

.gpm-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    /* slate-900 */
    letter-spacing: -0.025em;
}

.gpm-time {
    margin-top: 16px;
    font-size: 0.75rem;
    color: #94a3b8;
    /* slate-400 */
    text-align: right;
}

/* Chart Container */
.gpm-chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--gpm-radius);
    padding: 16px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

/* Controls (Tabs) */
.gpm-chart-controls {
    display: inline-flex;
    height: 40px;
    /* h-10 */
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--gpm-radius) - 2px);
    /* rounded-md */
    background-color: #f1f5f9;
    /* muted */
    padding: 4px;
    /* p-1 */
    color: #64748b;
    /* muted-foreground */
    margin-bottom: 20px;
}

.gpm-chart-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: calc(var(--gpm-radius) - 4px);
    /* rounded-sm */
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    height: 32px;
    transition: all 0.2s ease;
}

.gpm-chart-controls button:hover {
    color: #0f172a;
}

.gpm-chart-controls button.active {
    background-color: #ffffff;
    color: #0f172a;
    /* foreground */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* History Table */
.gpm-history-table-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: var(--gpm-radius);
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.gpm-history-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--gpm-font-sans);
    font-size: 0.875rem;
}

.gpm-history-table th {
    background-color: #f8fafc;
    /* secondary/muted */
    color: #64748b;
    font-weight: 500;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.gpm-history-table td {
    padding: 12px 16px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.gpm-history-table tr:last-child td {
    border-bottom: none;
}

.gpm-history-table tr:hover td {
    background-color: #f8fafc;
    /* muted/50 */
}