.page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header {
    background: white;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Watchlist List Styling */
.watchlists-list {
    padding: 0;
}

.watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.watchlist-item:hover {
    background-color: #f8f9fa;
}

.watchlist-item:last-child {
    border-bottom: none;
}

.watchlist-info {
    flex: 1;
    cursor: pointer;
}

.watchlist-info:hover h6 {
    color: #007bff;
}
.watchlist-name{
    display: flex;
    justify-content: space-between;
}

.watchlist-name h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.watchlist-meta {
    display: flex;
    gap: 1.5rem;
    margin-right: 100px;
    font-size: 0.875rem;
    color: #6c757d;
}

.stock-count, .created-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.watchlist-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.watchlist-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Drag and Drop Styles */
.watchlist-item.dragging {
    opacity: 0.5;
    background-color: #e9ecef;
}

.watchlist-item.drag-over {
    background-color: #e3f2fd;
    border-top: 2px solid #2196f3;
}

.watchlist-item::before {
    content: '⋮⋮';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 16px;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.watchlist-item:hover::before {
    opacity: 1;
}

.watchlist-item.dragging::before {
    opacity: 1;
}

/* Edit Form Styles */
.edit-watchlist-form {
    width: 100%;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.edit-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.edit-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.empty-state h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

/* Create Watchlist Card */
#createWatchlistCard .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
}

#createWatchlistCard .card-header .card-title {
    margin-bottom: 0;
}

#createWatchlistCard .card-header .btn-close {
    margin-left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .watchlist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .watchlist-actions {
        align-self: flex-end;
    }
    
    .watchlist-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .edit-actions {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

/* Animation for new items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.watchlist-item {
    animation: slideIn 0.3s ease;
}