/* Turtle Trading Dashboard Styles */
.turtle-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-radius: 10px;
}
h2 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Stats Cards */
.stats-cards-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}
.stats-card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}
.stats-card .title {
    font-size: 0.82em;
    color: #718096;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.stats-card .value {
    font-size: 1.6em;
    font-weight: 700;
    color: #1a202c;
}
.stats-card.buy-card {
    border-top: 4px solid #e53e3e;
}
.stats-card.buy-card .value {
    color: #e53e3e;
}
.stats-card.sell-card {
    border-top: 4px solid #3182ce;
}
.stats-card.sell-card .value {
    color: #3182ce;
}
.stats-card.floor-card {
    border-top: 4px solid #319795;
}
.stats-card.floor-card .value {
    color: #319795;
}

/* Filter Controls */
.filter-container {
    margin-bottom: 20px;
    text-align: center;
}
.filter-btn {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 16px;
    margin: 0 4px 8px 4px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.88em;
    font-weight: 500;
    transition: all 0.15s;
}
.filter-btn:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}
.filter-btn.active {
    background-color: #2b6cb0;
    color: #fff;
    border-color: #2b6cb0;
}

.search-input-container {
    max-width: 380px;
    margin: 0 auto 20px auto;
}
.search-input-container input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 20px;
    outline: none;
    font-size: 0.9em;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}
.search-input-container input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Table Design */
table.turtle-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.turtle-table th, .turtle-table td {
    padding: 10px 8px;
    font-size: 0.84rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.turtle-table th {
    background-color: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78em;
    letter-spacing: 0.05em;
}
.turtle-table tr:last-child td {
    border-bottom: none;
}
.turtle-table tr:hover {
    background-color: #f8fafc;
    transition: background-color 0.1s;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
}
.badge.badge-buy {
    background-color: #fed7d7;
    color: #c53030;
}
.badge.badge-sell {
    background-color: #ebf8ff;
    color: #2b6cb0;
}
.badge.badge-hold {
    background-color: #edf2f7;
    color: #4a5568;
}
.badge.badge-floor {
    background-color: #e6fffa;
    color: #234e52;
    border: 1px solid #b2f5ea;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Proximity colors */
.price-up {
    color: #e53e3e;
    font-weight: 600;
}
.price-down {
    color: #38a169;
    font-weight: 600;
}
.price-near {
    color: #d69e2e;
    font-weight: 600;
}

/* Hidden Rows */
.hidden-row {
    display: none !important;
}

/* Custom layout enhancements */
.col-code {
    font-weight: 700;
    color: #2b6cb0;
}
.col-name {
    font-weight: 500;
    color: #2d3748;
}
.col-price {
    font-weight: 700;
}
.help-tip {
    font-size: 0.8em;
    color: #718096;
    margin-top: 10px;
    text-align: center;
}
