body {
    display: flex;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 100;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f7;
}

.watchlist-container {
    width: 500px;
    height: 500px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px 25px 20px 30px;
    border-radius: 15px;
    box-sizing: border-box;
    background: white;
    box-shadow: 0 -1px 41px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.watchlist-title {
    font-size: 28px;
    font-weight: 300;
    color: #1d1d1f;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    flex-shrink: 0;
}

/* Filters Section */
.filters-section {
    background: linear-gradient(105deg, #0010da, #06e4fb);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    position: relative;
}

.search-bar {
    margin-bottom: 12px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #fafafa;
}

.search-bar input:focus {
    outline: none;
    border-color: #007aff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.search-bar input::placeholder {
    color: #86868b;
}

.filter-dropdowns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.filter-dropdowns select {
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #fafafa;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2386868b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-dropdowns select:hover {
    border-color: #007aff;
    background: white;
}

.filter-dropdowns select:focus {
    outline: none;
    border-color: #007aff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.filter-dropdowns select.active {
    border-color: #007aff;
    background: #e8f4ff;
    font-weight: 500;
}

.results-count {
    text-align: center;
    padding: 8px 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 300;
}

.stock-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scroll-behavior: smooth;
    margin-right: -5px;
    padding-right: 5px;
}

/* Stock Item */
.stock-item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stock-item:hover {
    background: #fafafa;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
}

.stock-item:last-child {
    border-bottom: none;
}

/* Main Row */
.stock-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Left Side */
.stock-left {
    flex: 1;
}

.stock-symbol {
    font-size: 19px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.stock-name {
    font-size: 14px;
    color: #86868b;
    font-weight: 300;
    line-height: 1.3;
}

/* Right Side */
.stock-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.stock-price {
    font-size: 19px;
    font-weight: 400;
    color: #1d1d1f;
    letter-spacing: 0.2px;
}

.stock-change {
    font-size: 13px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-change.positive {
    color: #30d158;
}

.stock-change.negative {
    color: #ff3b30;
}

.stock-change.neutral {
    color: #86868b;
}

/* Status Row */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-badge:active {
    transform: translateY(0);
}

.priority-high {
    background: #d1f4e0;
    color: #1d7a4a;
}

.priority-high:hover {
    background: #b8efd0;
}

.priority-medium {
    background: #fff3cd;
    color: #8b6914;
}

.priority-medium:hover {
    background: #ffe9a3;
}

.priority-low {
    background: #e8e8ed;
    color: #6e6e73;
}

.priority-low:hover {
    background: #d8d8dd;
}

.status-compliant {
    background: #d1f4e0;
    color: #1d7a4a;
}

.status-compliant:hover {
    background: #b8efd0;
}

.status-unverified {
    background: #fff3cd;
    color: #8b6914;
}

.status-unverified:hover {
    background: #ffe9a3;
}

.status-fails {
    background: #ffe5e5;
    color: #d70015;
}

.status-fails:hover {
    background: #ffd0d0;
}

/* Expanded Details */
.stock-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.stock-item.expanded .stock-details {
    max-height: 450px;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.1s;
}

.stock-details-content {
    padding-top: 15px;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.detail-label {
    color: #86868b;
    font-weight: 300;
}

.detail-value {
    color: #1d1d1f;
    font-weight: 400;
    text-align: right;
}

.detail-value.good {
    color: #30d158;
}

.detail-value.bad {
    color: #ff3b30;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #86868b;
    font-size: 14px;
}

/* Scrollbar */
.stock-list::-webkit-scrollbar {
    width: 8px;
}

.stock-list::-webkit-scrollbar-track {
    background: transparent;
}

.stock-list::-webkit-scrollbar-thumb {
    background: #d2d2d7;
    border-radius: 4px;
}

.stock-list::-webkit-scrollbar-thumb:hover {
    background: #b8b8bd;
}

/* Responsive */
@media (max-width: 600px) {
    .watchlist-container {
        width: 95%;
        max-width: 500px;
        margin: 15px auto;
    }
}


/* Filter Notification - Simple text below dropdowns */
.filter-notification {
    text-align: center;
    padding: 10px 16px;
    background: #f6f6f6;
    border-radius: 6px;
    margin: 10px 0;
    transition: all 0.3s ease;
    display: block;
    min-height: 20px;
}

.filter-notification:empty {
    display: none;
}

.filter-notification.hidden {
    display: none;
}