#ws-tracker-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#ws-tracker-filter {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#ws-tracker-filter label {
    font-weight: 600;
    color: #111827;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

#tracker-range {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #111827;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

#tracker-range:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.ws-tracker-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

.ws-tracker-table thead {
    background: #f3f4f6;
    border-bottom: 2px solid #e5e7eb;
}

.ws-tracker-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.ws-tracker-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

.ws-tracker-table tbody tr:hover {
    background: #f9fafb;
}

.ws-tracker-table tbody tr:last-child td {
    border-bottom: none;
}

.tracker-ticker {
    font-weight: 600;
    color: #22c55e;
    font-family: monospace;
    font-size: 14px;
}

.tracker-ticker a {
    color: #22c55e;
    text-decoration: none;
}

.tracker-ticker a:hover {
    text-decoration: underline;
}

.tracker-company-name {
    font-weight: 500;
    color: #111827;
}

.tracker-company-name a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
}

.tracker-company-name a:hover {
    color: #22c55e;
    text-decoration: underline;
}

.tracker-price {
    text-align: right;
    font-weight: 500;
    color: #111827;
}

.tracker-change {
    text-align: right;
    font-weight: 500;
}

.tracker-change.positive {
    color: #10B981;
}

.tracker-change.negative {
    color: #EF4444;
}

.tracker-rec-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    text-align: center;
}

.tracker-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
}

.tracker-error {
    text-align: center;
    padding: 20px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    #ws-tracker-container {
        padding: 10px;
        margin: 20px auto;
    }

    #ws-tracker-filter {
        padding: 10px;
        margin-bottom: 15px;
    }

    #ws-tracker-filter label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    #tracker-range {
        font-size: 13px;
        padding: 8px 10px;
    }

    .ws-tracker-table {
        font-size: 12px;
        margin-top: 15px;
    }

    .ws-tracker-table th {
        padding: 8px;
        font-size: 11px;
    }

    .ws-tracker-table td {
        padding: 8px;
    }

    .tracker-ticker {
        font-size: 12px;
    }

    .tracker-price {
        font-size: 12px;
    }

    .tracker-change {
        font-size: 12px;
    }

    .tracker-rec-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    #ws-tracker-container {
        padding: 8px;
        margin: 15px auto;
    }

    #ws-tracker-filter {
        padding: 8px;
        margin-bottom: 12px;
    }

    #ws-tracker-filter label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    #tracker-range {
        font-size: 12px;
        padding: 6px 8px;
    }

    .ws-tracker-table {
        font-size: 11px;
        margin-top: 12px;
        border-radius: 4px;
    }

    .ws-tracker-table th {
        padding: 6px 4px;
        font-size: 10px;
    }

    .ws-tracker-table td {
        padding: 6px 4px;
    }

    .tracker-company-name {
        word-break: break-word;
        font-size: 11px;
    }

    .tracker-ticker {
        font-size: 11px;
    }

    .tracker-price {
        font-size: 11px;
    }

    .tracker-change {
        font-size: 11px;
    }

    .tracker-rec-badge {
        padding: 2px 6px;
        font-size: 9px;
    }

    /* Stack columns on very small screens */
    .ws-tracker-table thead {
        display: none;
    }

    .ws-tracker-table,
    .ws-tracker-table tbody,
    .ws-tracker-table tr,
    .ws-tracker-table td {
        display: block;
        width: 100%;
    }

    .ws-tracker-table tr {
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        overflow: hidden;
    }

    .ws-tracker-table td {
        padding: 8px;
        border: none;
        text-align: right;
        padding-left: 40%;
        position: relative;
        border-bottom: 1px solid #f3f4f6;
    }

    .ws-tracker-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 8px;
        font-weight: 600;
        color: #374151;
        width: 35%;
        text-align: left;
    }

    .ws-tracker-table td:last-child {
        border-bottom: none;
    }

    .tracker-company-name {
        text-align: left;
        padding-left: 8px;
        font-weight: 600;
    }

    .tracker-company-name::before {
        content: none !important;
    }

    .tracker-ticker {
        text-align: left;
        padding-left: 8px;
    }

    .tracker-ticker::before {
        content: none !important;
    }
}
